Overview
Thesso client manages OpenID Connect (OIDC) single sign-on configuration. Set up SSO so your organization’s members can log in through your identity provider (IdP) instead of using API keys directly.
Access the SSO client via client.sso.
Create Config
Create or update the OIDC SSO configuration for your developer organization:CreateSsoConfigParams
| Field | Type | Required | Description |
|---|---|---|---|
issuer_url | str | Yes | The OIDC issuer URL (e.g. https://accounts.google.com). |
client_id | str | Yes | The OIDC client ID from your IdP. |
client_secret | str | Yes | The OIDC client secret from your IdP. |
redirect_uri | str | Yes | The redirect URI registered with your IdP. |
Get Config
Retrieve the current SSO configuration. The client secret is not included in the response:SsoConfig
| Field | Type | Description |
|---|---|---|
issuer_url | str | The OIDC issuer URL. |
client_id | str | The OIDC client ID. |
redirect_uri | str | The registered redirect URI. |
created_at | str | ISO 8601 creation timestamp. |
updated_at | str | ISO 8601 last-updated timestamp. |
Delete Config
Remove the SSO configuration:Get Login URL
Generate the OIDC authorization URL to redirect a user to for SSO login:Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org | str | Yes | The organization identifier for SSO lookup. |
SsoLoginResponse
| Field | Type | Description |
|---|---|---|
authorize_url | str | The OIDC authorization URL to redirect the user to. |
Handle Callback
Exchange the OIDC authorization code for user information after the IdP redirects back to your application:Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
code | str | Yes | The authorization code from the OIDC callback. |
state | str | Yes | The state parameter for CSRF verification. |
SsoCallbackResponse
| Field | Type | Description |
|---|---|---|
developer_id | str | The Grantex developer ID for the authenticated user. |
email | str | None | The user’s email address (if provided by IdP). |
name | str | None | The user’s display name (if provided by IdP). |
sub | str | None | The OIDC subject identifier. |