Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Task<string> GetCurrentAsync()
// if MTLS is configured with domain like "foo", then the request will be for "foo.acme.com",
// so the issuer we use is from the parent domain (e.g. "acme.com")
//
// Host.Value is used to get unicode hostname, instread of ToUriComponent (aka punycode)
// Host.Value is used to get unicode hostname, instead of ToUriComponent (aka punycode)
origin = request.Scheme + "://" + request.Host.Value.Substring(_options.MutualTls.DomainName.Length + 1);
}
}
Expand Down
11 changes: 9 additions & 2 deletions src/Storage/Models/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,17 @@ public ICollection<string> AllowedGrantTypes
public bool RequirePushedAuthorization { get; set; } = false;

/// <summary>
/// ReUse: the refresh token handle will stay the same when refreshing tokens
/// Specifies if tokens should be rotated when they are used. Defaults to
/// reusable tokens.
/// <para>
/// ReUse: the refresh token handle will stay the same when refreshing
/// tokens
/// </para>
/// <para>
/// OneTime: the refresh token handle will be updated when refreshing tokens
/// </para>
/// </summary>
public TokenUsage RefreshTokenUsage { get; set; } = TokenUsage.OneTimeOnly;
public TokenUsage RefreshTokenUsage { get; set; } = TokenUsage.ReUse;

/// <summary>
/// Specifies whether the access token (and its claims) should be updated on a refresh token request.
Expand Down