[management,proxy] Rename the OIDC session code query parameter (#7981)

This commit is contained in:
Bethuel Mmbaga
2026-10-02 15:55:51 +03:00
committed by GitHub
parent f400f4bee8
commit 0712a5a5b9
9 changed files with 50 additions and 22 deletions
+8
View File
@@ -30,6 +30,14 @@ const (
SessionJWTIssuer = "netbird-management"
)
// Query parameters management uses to hand the OIDC session to the proxy. The
// proxy strips them before forwarding, so they must not collide with names the
// proxied service uses itself.
const (
SessionCodeQueryParam = "nb_session_code"
SessionTokenQueryParam = "session_token"
)
// HeaderUserID is the synthetic user id recorded for header-authenticated
// requests. Header auth validates a per-service secret and resolves no user
// record, so proxy access logs and management-minted session tokens both