GET Customer Identity Provider Configuration
Tells you whether the brand hands customer identity to an external provider (SSO) instead of using MENU accounts. Read it before showing any sign-in screen.
When is_enabled is true, MENU's own customer auth endpoints — login, registration, social and token login — are blocked with 403. Hide them, obtain a token from the brand's identity provider, and send that as the customer Authorization token instead.
When it is false, or no configuration exists, use the normal MENU customer auth endpoints.
client_id and public_key_certificate are the provider's public values, needed to drive the SSO handshake. No secret is returned.
Path Parameters
- Type: integerbrand
_id requiredBrand ID
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringX
- Request - I D requiredUnique request identifier
Responses
- application/json
- 403
A signed-in user account may not view this brand.
- 404
Unknown brand, or the brand is not visible to this application.
curl https://api-public-demo.menu.app/api/brands/57/customer-identity-provider-configuration \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937'
{
"status": "OK",
"code": 200,
"data": {
"customer_identity_provider_configuration": {
"id": 1,
"brand_id": 57,
"is_enabled": true,
"client_id": "abc-client",
"public_key_certificate": "-----BEGIN CERTIFICATE-----…"
}
}
}