Ga naar inhoud

The linked identity provider

GET
/api/v1/settings/idp
curl --request GET \
--url https://example.com/api/v1/settings/idp \
--cookie bl_%3Cslug%3E_session=%3Cbl_%3Cslug%3E_session%3E

The OpenID Connect settings, without the client secret: client_secret_set says whether there is one.

OK.

Media typeapplication/json

GET /api/v1/settings/idp: documents the JSON built in [idp_view].

object
One of:
null
configured
required

Whether an identity provider is linked; the other fields only then.

boolean
client_secret_set

A client secret is stored; it is never shown.

boolean | null

Example generated

{
"issuer": "example",
"internal_url": "example",
"client_id": "example",
"client_secret": "example",
"role_claim": "example",
"role_mapping": {
"additionalProperty": [
"example"
]
},
"offline_access": true,
"configured": true,
"client_secret_set": true
}

No valid session, DPoP-bound token or API key.

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}

The caller lacks the role this operation needs; or a change with the session cookie came from a page of another site (cross_site_request, decisions #83).

Media typeapplication/json

The body of every failed call to a management API.

object
error
required
object
code
required

Stable, machine-readable: invalid_request, unauthenticated, forbidden, not_found, conflict, upstream_unavailable, unavailable, internal, or a more specific code of the operation.

string
message
required

For people; may change between versions.

string

Example

{
"error": {
"code": "not_found",
"message": "unknown negotiation"
}
}