Portal Auth
Manage the Ares-backed authentication configuration for a portal.
Portal Auth object
Attributes
object
Enumportal.auth.sso_tenantid
Stringname
Stringstatus
Enumclient_id
Stringcounts
Objectcreated_at
Dateupdated_at
Date{"object": "portal.auth.sso_tenant","status": "pending","counts": {}}
List portal auth SSO tenants
Returns the SSO tenants configured for a portal Ares app.
URL Parameters
portal_id
StringThe unique identifier for the portal
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcurl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/sso-tenants" \-H "Authorization: Bearer metorial_sk_..."
Create portal auth SSO tenant
Creates an SSO tenant for the portal Ares app.
URL Parameters
portal_id
StringThe unique identifier for the portal
Request Body
name
Stringcurl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/sso-tenants" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name"}'
Create portal auth SSO tenant setup
Creates an Ares setup URL for finishing portal SSO tenant configuration.
URL Parameters
portal_id
StringThe unique identifier for the portal
sso_tenant_id
StringThe unique identifier for the sso_tenant
curl -X POST "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/sso-tenants/sso_Rm4Mnheq2bfEPhBhP7SY/setup" \-H "Authorization: Bearer metorial_sk_..."
List portal auth SSO tenant connections
Returns SSO connections that belong to a portal SSO tenant.
URL Parameters
portal_id
StringThe unique identifier for the portal
sso_tenant_id
StringThe unique identifier for the sso_tenant
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalcurl -X GET "https://api.metorial.com/portals/por_Rm4Mnheq2bfEPhBhP7SY/auth/sso-tenants/sso_Rm4Mnheq2bfEPhBhP7SY/connections" \-H "Authorization: Bearer metorial_sk_..."