From 5c3937491572d7b6b4bc29d613a687d67e011b72 Mon Sep 17 00:00:00 2001 From: Joshua Casey Date: Mon, 3 Feb 2025 10:28:15 -0600 Subject: [PATCH] Update code for fosite changes --- .../storage/dynamic_global_secret_config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/federationdomain/storage/dynamic_global_secret_config.go b/internal/federationdomain/storage/dynamic_global_secret_config.go index 76d599a8a..bccc5490b 100644 --- a/internal/federationdomain/storage/dynamic_global_secret_config.go +++ b/internal/federationdomain/storage/dynamic_global_secret_config.go @@ -1,4 +1,4 @@ -// Copyright 2020-2023 the Pinniped contributors. All Rights Reserved. +// Copyright 2020-2025 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package storage @@ -61,3 +61,7 @@ func (d *DynamicGlobalSecretConfig) GetRotatedGlobalSecrets(_ctx context.Context // We don't support having multiple global secrets yet, but when we do we will need to implement this. return nil, nil } + +func (d *DynamicGlobalSecretConfig) GetDeviceAndUserCodeLifespan(_ctx context.Context) time.Duration { + return d.fositeConfig.DeviceAndUserCodeLifespan +}