mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-20 23:59:55 +00:00
Enable IdP JWKS refresh in VNC JWT validator
This commit is contained in:
@@ -502,7 +502,7 @@ func (m *MacInputInjector) postScrollWheel(src uintptr, buttonMask uint8) {
|
||||
// emits one press+release per ~10 px, so a real gesture arrives as many
|
||||
// small events; 20 px per event keeps the resulting macOS scroll fluid
|
||||
// without overshooting on a single notch.
|
||||
const scrollPixelsPerWheelTick int32 = 20
|
||||
const scrollPixelsPerWheelTick int32 = 22
|
||||
|
||||
func (m *MacInputInjector) postMouse(src uintptr, eventType int32, x, y float64, button int32) {
|
||||
if cgEventCreateMouseEvent == nil {
|
||||
|
||||
@@ -691,11 +691,13 @@ func (s *Server) ensureJWTValidator() error {
|
||||
return fmt.Errorf("no JWT config")
|
||||
}
|
||||
|
||||
// Enable IdP key refresh so JWKS rotations don't latch the validator
|
||||
// off until daemon restart.
|
||||
s.jwtValidator = nbjwt.NewValidator(
|
||||
s.jwtConfig.Issuer,
|
||||
s.jwtConfig.Audiences,
|
||||
s.jwtConfig.KeysLocation,
|
||||
false,
|
||||
true,
|
||||
)
|
||||
|
||||
var opts []nbjwt.ClaimsExtractorOption
|
||||
|
||||
Reference in New Issue
Block a user