コンテンツにスキップ

Verify a tenant discovery grant.

POST
/api/auth/discovery/grant/verify
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/auth/discovery/grant/verify \
--header 'Content-Type: application/json' \
--data '{ "grant": "eyJhbGciOiJIUzI1NiJ9...", "current_url": "https://auth.example.com/login" }'

Validates a discovery grant for the current URL and returns the selected tenant login target when the grant is still valid.

Media type application/json
object
grant
required
string
current_url
required
string format: uri
Example
{
"grant": "eyJhbGciOiJIUzI1NiJ9...",
"current_url": "https://auth.example.com/login"
}

Successful JSON response.

Media type application/json
object
valid
required
boolean
tenant_id
required
string
target_url
required
string format: uri
login_hint
string
Example
{
"valid": true,
"tenant_id": "tenant_123",
"target_url": "https://acme.auth.example.com/login"
}

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"
}