Expand description
OpenID Connect login (authorization code flow with PKCE), tested against Authentik but provider agnostic.
Flow:
/auth/oidc/loginstoresstate,nonceand a PKCE verifier in theoidc_statestable and redirects to the provider.- The provider redirects back to
/auth/oidc/callback?code=…&state=…. - The code is exchanged for tokens at the token endpoint (back channel, authenticated with the client secret, over TLS).
- Claims are taken from the ID token and the userinfo endpoint. Because
the ID token is received directly from the token endpoint over TLS,
TLS server validation substitutes signature validation (OpenID Connect
Core 1.0, section 3.1.3.7, step 6).
iss,aud,expandnonceare still verified. - Groups are mapped to a TeamCraft role (see
role_for_groups).
Structs§
Constants§
- BACKCHANNEL_
LOGOUT_ EVENT - The event a back-channel logout token carries (OpenID Connect Back-Channel Logout 1.0, section 2.4).
Functions§
- role_
for_ groups - Maps IdP groups to a role.
Nonemeans the user may not log in.