GET /v1/sso/profile
Served by the broker on the auth host only; the api host answers not_implemented.
- Scope
sso:profile- Auth
- Access token
- Since
- 1.0
Headers
Section titled “Headers”
Minor version; defaults to the environment’s pin.OhAuthCat-Versionstring
Responses
Section titled “Responses”- 200 OK Profile
- 400 Invalid request. Codes: parameter_invalid, parameter_missing, version_unsupported and resource-specific codes from the catalogue. Error
- 401 Codes: authentication_required, api_key_invalid. Error
- 403 Codes: api_key_scope_missing, ip_not_allowed, plan_limit_reached. Error
- 429 Code: rate_limited. Retry-After is set. Error
- 503 Code: service_unavailable. Retry-After is set; writes are paused. Error
- default Any other error, including internal_error. Every code is in the error catalogue. Error
Errors share one shape; see the error code catalogue.
curl -X GET \ "https://auth.ohauthcat.com/v1/sso/profile" \ -H "Authorization: Bearer $OHAUTHCAT_ACCESS_TOKEN"const response = await fetch("https://auth.ohauthcat.com/v1/sso/profile", { method: "GET", headers: { Authorization: `Bearer ${process.env.OHAUTHCAT_ACCESS_TOKEN}`, },});const data = await response.json();import osimport requests
response = requests.get( "https://auth.ohauthcat.com/v1/sso/profile", headers={"Authorization": f"Bearer {os.environ['OHAUTHCAT_ACCESS_TOKEN']}"},)data = response.json(){ "claims": {}, "risk": { "score": 0, "reasons": [ "impossible_travel" ], "degraded": true }, "custom_attributes": {}, "policy_hints": { "force_sso": true, "force_sso_excluded": true, "max_age_seconds": 1, "idp_initiated_allowed": true, "guest": true }, "access_policy": "guest", "email_verified": true, "idp_groups_verified": true, "id": "prof_01J9ZQ4M7K2X8V3N5B6C1D0E9F", "object": "profile", "organization_id": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5", "connection_id": "conn_01J9Z3K5V7W8X9Y0Z1A2B3C4D5", "connection_type": "saml", "idp_id": "0oa1b2c3d4E5F6g7h8i9", "email": "jane@acme.com", "email_domain_verified": true, "first_name": "Jane", "last_name": "Doe", "groups": [ "Engineering" ], "role": "admin", "attributes": {}, "raw_attributes": {}, "legacy_ids": { "workos": "org_01H8ZQ4M7K2X8V3N5B6C1D0E9F" }}