Add OIDC login, sessions and CSRF protection #2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/auth"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Everything in Notenwart depends on knowing who is asking. There are no local passwords by design, so the OIDC flow has to work before groups and roles can exist. CSRF protection comes along now so that no state-changing route is ever written without it.
What
sub, profile fields refresh on every loginBOOTSTRAP_ADMIN_EMAILSandemail_verifiedis true, re-evaluated on every loginHttpOnly,SameSite=Lax,Securederived fromBASE_URLcompose.dev.yaml)httpx2instead ofhttpx: Authlib and Starlette deprecated the old packageVerification
make lintandpytestpass (59 tests)