Check Provider
POST
/api/oidc-providers/{provider_id}/check
const url = 'https://kelpie.example.com/api/oidc-providers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/check';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://kelpie.example.com/api/oidc-providers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/checkFetch the provider’s discovery document, to catch a wrong issuer before anyone logs in.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider_id
required
Provider Id
string format: uuid
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ProviderCheck
object
Example generated
{ "ok": true, "error": "example", "authorization_endpoint": "example", "token_endpoint": "example", "userinfo_endpoint": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}