mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
[client] Fix SSH JWT auth failure with Azure Entra ID iat backdating (#5471)
Increase DefaultJWTMaxTokenAge from 5 to 10 minutes to accommodate identity providers like Azure Entra ID that backdate the iat claim by up to 5 minutes, causing tokens to be immediately rejected. Fixes #5449 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -46,8 +46,10 @@ const (
|
|||||||
cmdSFTP = "<sftp>"
|
cmdSFTP = "<sftp>"
|
||||||
cmdNonInteractive = "<idle>"
|
cmdNonInteractive = "<idle>"
|
||||||
|
|
||||||
// DefaultJWTMaxTokenAge is the default maximum age for JWT tokens accepted by the SSH server
|
// DefaultJWTMaxTokenAge is the default maximum age for JWT tokens accepted by the SSH server.
|
||||||
DefaultJWTMaxTokenAge = 5 * 60
|
// Set to 10 minutes to accommodate identity providers like Azure Entra ID
|
||||||
|
// that backdate the iat claim by up to 5 minutes.
|
||||||
|
DefaultJWTMaxTokenAge = 10 * 60
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
Reference in New Issue
Block a user