Authentik
Provider
-
In Authentik, create an OAuth2/OpenID provider with an application for xTIPP.
-
In xTIPP, create a provider with the template Authentik.
-
Replace
<YOUR_DOMAIN>and<SLUG>in the issuer with the domain of your Authentik instance and the slug of the application in Authentik:https://<YOUR_DOMAIN>/application/o/<SLUG>/ -
Copy client ID and client secret of the Authentik provider into xTIPP and save.
-
Copy the redirect URL with Kopieren … → Redirect-URL and add it to the redirect URIs of the Authentik provider.
Launch URL
Authentik shows the applications of a user on its dashboard (My applications). A click on the tile opens the launch URL of the application. OpenID Connect has no login that is started by the provider, so the tile has to open the start of the normal flow of the plugin:
https://your-site/oidc/<slug>/login
- In xTIPP, copy it with Kopieren … → Login-URL in the list of providers.
- In Authentik, enter it under Applications → your application → Launch URL.
When the user clicks the tile, the plugin sends them to Authentik, which already knows them and sends them straight back, and they are logged in without any further click. Users who are already logged in to xTIPP land on the start page, and no new login is started.
This only works without a click if the authorization flow of the provider in Authentik does not ask for consent, for
example default-provider-authorization-implicit-consent. With explicit consent, Authentik asks once.
Users without a linked account are handled like on the login page: registration if it is allowed, otherwise an error.