Skip to main content

Troubleshooting

Common messages​

MessageCauseWhat to do
Die Anmeldung ist ungültig oder abgelaufen.The callback does not match the flow in the session: the session expired, the state differs, or the callback was opened twice or in another browser.Start the login again. If it always happens, check that the session cookie survives the redirect back from the provider.
Die Anmeldung beim gewählten Anbieter ist fehlgeschlagen.The provider returned an error, the discovery document or the token endpoint failed, or the ID token did not pass the checks.Turn on the debug mode and look at the log.
Diese E-Mail-Adresse wird bereits verwendet.The email address of the provider account belongs to an existing xTIPP account.Log in with the existing account and link the provider under Verknüpfte Konten.
Die Registrierung neuer Konten ist derzeit deaktiviert.The provider account is not linked, and registration is off.Turn on both registration settings, or link the provider to an existing account.
Dieses …-Konto ist bereits mit einem anderen Konto auf dieser Seite verknüpft.The provider account is linked to another xTIPP account.Remove the link in the other account first.
The account is not activatedThe account exists but is inactive, for example a new registration that no admin has approved yet.Activate the user in the user management of xTIPP.

Checklist for a new provider​

  • The issuer URL is exact. The plugin loads <issuer>/.well-known/openid-configuration. Open that address in a browser: it must return JSON, and its issuer must match the issuer you entered.
  • The redirect URL registered at the provider is exactly the one from Kopieren … → Redirect-URL.
  • The scopes contain openid, plus whatever the provider needs for the email address (for example user:read:email on Twitch or email on Discord). The templates already do this.
  • Saving a provider forgets its cached discovery document and JWKS. If the provider itself changed its configuration, clear the cache under Konfiguration → System → Cache leeren.

Debug mode​

For setting up a provider or finding out why a login fails, turn on Debug-Modus (oidc_debug) under Konfiguration → Erweiterungen → OIDC-Anmeldung. While it is on, the list on /admin/oidc-anbieter shows a warning.

Every step of a login writes an entry with the level info to the log of Laravel (storage/logs/). All entries start with OIDC debug: and contain the slug of the provider. The entries need LOG_LEVEL info or debug in the .env of xTIPP.

StepLogged
Startintent (login or link), the authorization endpoint, the redirect_uri, the scopes and the extra authorize parameters
Discovery / JWKSURL, whether the result came from the cache, issuer, the endpoints, scopes_supported, claims_supported, id_token_signing_alg_values_supported and the keys of the JWKS (kid, kty, alg, use); on an error, the HTTP status and the beginning of the answer
Callbackwhether the flow of the session exists and matches (provider, state), whether a code was sent, and error / error_description of the provider
Token endpointHTTP status; on success the names of the fields and the granted scope, on an error error / error_description
ID tokenalg, kid and typ of the header; if a check fails, the expected and the received value (iss, aud, sub), or the server time next to iat, exp and nbf
Claimsall claims of the verified ID token, except the nonce
Userinfothe missing claims and the whole answer of the userinfo endpoint; on an error the HTTP status and error / error_description; or why the endpoint was not asked
Decisionlogged in, linked, registration started or completed, or the reason of a refusal (email address in use, registration disabled, account not activated, provider account already linked, …)

The client secret, the code, the state, the nonce and the tokens (ID, access and refresh token) are never logged.

Personal data

The claims contain personal data of the users (name, email address, avatar URL, …). Turn the debug mode on only while you need it, and off afterwards. Entries already written stay in the log until the log rotation removes them, or until you delete them.