feat: add support for PKCE (#686) (#702)
Some checks failed
Docker / Build and Push (push) Has been cancelled
Docker / release (push) Has been cancelled
github-pages / deploy (push) Has been cancelled

This commit is contained in:
h44z
2026-05-28 20:49:13 +02:00
committed by GitHub
parent 1517041363
commit 72cfd1d8a9
10 changed files with 295 additions and 28 deletions

View File

@@ -26,11 +26,12 @@ type SessionData struct {
Lastname string
Email string
OauthState string
OauthNonce string
OauthProvider string
OauthReturnTo string
OauthIdToken string
OauthState string
OauthNonce string
OauthCodeVerifier string
OauthProvider string
OauthReturnTo string
OauthIdToken string
WebAuthnData string
@@ -80,16 +81,17 @@ func (s *SessionWrapper) DestroyData(ctx context.Context) {
func (s *SessionWrapper) defaultSessionData() SessionData {
return SessionData{
LoggedIn: false,
IsAdmin: false,
UserIdentifier: "",
Firstname: "",
Lastname: "",
Email: "",
OauthState: "",
OauthNonce: "",
OauthProvider: "",
OauthReturnTo: "",
OauthIdToken: "",
LoggedIn: false,
IsAdmin: false,
UserIdentifier: "",
Firstname: "",
Lastname: "",
Email: "",
OauthState: "",
OauthNonce: "",
OauthCodeVerifier: "",
OauthProvider: "",
OauthReturnTo: "",
OauthIdToken: "",
}
}