admin
oauth-client
Create a new custom OIDC/OAuth provider
Creates a new custom OAuth 2.0 or OIDC provider configuration. Required fields differ based on provider_type. Only available when custom OIDC/OAuth providers are enabled. For OIDC providers, the server fetches and validates the OpenID Connect discovery document from the issuer's well-known endpoint (or the provided discovery_url) at creation time. This ensures the issuer is reachable and correctly configured before the provider is stored.
post/admin/custom-providers
Request body
Example request
{
"identifier": "mycompany",
"name": "My Company SSO",
"scopes": [
"email",
"profile"
],
"attribute_mapping": {
"email": "user_email",
"name": "full_name"
},
"custom_claims_allowlist": [
"groups",
"org_id"
],
"authorization_params": {
"prompt": "consent"
},
"issuer": "https://accounts.google.com",
"authorization_url": "https://provider.com/oauth/authorize",
"token_url": "https://provider.com/oauth/token",
"userinfo_url": "https://provider.com/oauth/userinfo"
}Response
Custom OIDC/OAuth provider created successfully
Example response
{
"identifier": "custom:mycompany",
"name": "My Company SSO",
"scopes": [
"openid",
"email",
"profile"
],
"attribute_mapping": {
"email": "user_email",
"name": "full_name"
},
"custom_claims_allowlist": [
"groups",
"org_id"
],
"authorization_params": {
"prompt": "consent"
},
"issuer": "https://accounts.google.com"
}