Discover an OIDC provider configuration.
POST
/api/admin/external-providers/discover-oidc
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/external-providers/discover-oidc \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "https://accounts.google.com" }'Fetches and sanitizes an external OIDC discovery document for a supplied HTTPS issuer, discovery URL, or RFC 7033 WebFinger resource. WebFinger responses require an exact subject match and the OpenID Connect issuer relation. The implementation blocks localhost, private/internal hosts, non-standard ports, oversized responses, unsafe redirects, and non-JSON responses.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
One of:
object
url
required
HTTPS issuer URL or full OpenID Provider Configuration URL.
string format: uri
resource
An acct URI or HTTPS URL to resolve using WebFinger.
string
key
additional properties
object
url
HTTPS issuer URL or full OpenID Provider Configuration URL.
string format: uri
resource
required
An acct URI or HTTPS URL to resolve using WebFinger.
string
key
additional properties
Example
{ "url": "https://accounts.google.com"}Responses
Section titled “ Responses ”Sanitized OIDC discovery response.
Media type application/json
object
issuer
required
string format: uri
authorization_endpoint
required
string format: uri
token_endpoint
required
string format: uri
userinfo_endpoint
string format: uri
jwks_uri
string format: uri
scopes_supported
Array<string>
discovery_source
object
method
required
string
resource
required
string
webfinger_endpoint
required
string format: uri
key
additional properties
key
additional properties
Example
{ "discovery_source": { "method": "webfinger" }}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}