Skip to content

Commit

Permalink
adjust refresh token lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Jan 23, 2024
1 parent 26ee43b commit 74f8cd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Identity/IdentityServer/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ApiClient(
ClientId = id;
AllowedGrantTypes = new[] { GrantType.ResourceOwnerPassword, GrantType.AuthorizationCode, WebAuthnGrantValidator.GrantType };
RefreshTokenExpiration = TokenExpiration.Sliding;
RefreshTokenUsage = TokenUsage.ReUse;
RefreshTokenUsage = TokenUsage.OneTimeOnly;
SlidingRefreshTokenLifetime = 86400 * refreshTokenSlidingDays;
AbsoluteRefreshTokenLifetime = 0; // forever
UpdateAccessTokenClaimsOnRefresh = true;
Expand Down
4 changes: 2 additions & 2 deletions src/Identity/IdentityServer/StaticClientStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public StaticClientStore(GlobalSettings globalSettings)
{
ApiClients = new List<Client>
{
new ApiClient(globalSettings, BitwardenClient.Mobile, 90, 1),
new ApiClient(globalSettings, BitwardenClient.Web, 30, 1),
new ApiClient(globalSettings, BitwardenClient.Mobile, 60, 1),
new ApiClient(globalSettings, BitwardenClient.Web, 7, 1),
new ApiClient(globalSettings, BitwardenClient.Browser, 30, 1),
new ApiClient(globalSettings, BitwardenClient.Desktop, 30, 1),
new ApiClient(globalSettings, BitwardenClient.Cli, 30, 1),
Expand Down

0 comments on commit 74f8cd5

Please sign in to comment.