mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-03 12:09:09 +02:00
[management,proxy] Rename the OIDC session code query parameter (#7981)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user