How to log in
GET
/auth/config
const url = 'https://example.com/auth/config';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/auth/configWhether an identity provider is linked and which one, and whether token login and the setup code of a fresh installation are available. The login page reads this before anyone is logged in.
Authorizations
Section titled “Authorizations”- None
Responses
Section titled “Responses”OK.
Media typeapplication/json
GET /auth/config: documents the JSON built in [auth_config].
object
oidc
required
An identity provider is linked.
boolean
issuer
string | null
token_login
required
Login with BL_ADMIN_TOKEN is available.
boolean
setup
required
The installation is fresh: the setup code works.
boolean
idp_name
The last segment of the issuer URL, e.g. the Keycloak realm.
string | null
Example generated
{ "oidc": true, "issuer": "example", "token_login": true, "setup": true, "idp_name": "example"}