Preview an issuer's OpenID configuration
POST
/api/v1/tenants/{tenantId}/identity/discovery-preview
const url = 'https://app.avera.io/api/v1/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/identity/discovery-preview';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"issuer":"example"}'};
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://app.avera.io/api/v1/tenants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/identity/discovery-preview \ --header 'Content-Type: application/json' \ --data '{ "issuer": "example" }'Fetches the issuer’s discovery document and shows what it publishes, before anything is saved: a mistyped issuer that happens to resolve is obvious next to the endpoints it produced.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
issuer
required
string
Example generated
{ "issuer": "example"}Responses
Section titled “Responses”OK
Media type*/*
object
issuer
required
string
authorizationEndpoint
required
string
tokenEndpoint
required
string
userInfoEndpoint
string | null
jwksUri
string | null