diff options
author | 2023-11-06 04:27:35 +1030 | |
---|---|---|
committer | 2023-11-05 18:57:35 +0100 | |
commit | 62ef8ed57aab9f2b05a64b153d231ae4f42769f4 (patch) | |
tree | acc33ab1fd02113f8fc93751e593dc67ff504a84 /internal/ui/middleware.go | |
parent | 62188b49f072ea3c2bf30a8ed42f8b9303840191 (diff) | |
download | v2-62ef8ed57aab9f2b05a64b153d231ae4f42769f4.tar.gz v2-62ef8ed57aab9f2b05a64b153d231ae4f42769f4.tar.zst v2-62ef8ed57aab9f2b05a64b153d231ae4f42769f4.zip |
Add WebAuthn / Passkey integration
This is a rebase of #1618 in which @dave-atx added WebAuthn support.
Closes #1618
Diffstat (limited to '')
-rw-r--r-- | internal/ui/middleware.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/ui/middleware.go b/internal/ui/middleware.go index 7cfa5b34..d9682532 100644 --- a/internal/ui/middleware.go +++ b/internal/ui/middleware.go @@ -120,7 +120,7 @@ func (m *middleware) handleAppSession(next http.Handler) http.Handler { ctx = context.WithValue(ctx, request.UserThemeContextKey, session.Data.Theme) ctx = context.WithValue(ctx, request.PocketRequestTokenContextKey, session.Data.PocketRequestToken) ctx = context.WithValue(ctx, request.LastForceRefreshContextKey, session.Data.LastForceRefresh) - + ctx = context.WithValue(ctx, request.WebAuthnDataContextKey, session.Data.WebAuthnSessionData) next.ServeHTTP(w, r.WithContext(ctx)) }) } @@ -159,7 +159,9 @@ func (m *middleware) isPublicRoute(r *http.Request) bool { "sharedEntry", "healthcheck", "offline", - "proxy": + "proxy", + "webauthnLoginBegin", + "webauthnLoginFinish": return true default: return false |