diff options
author | Pranav K <prkrishn@hotmail.com> | 2022-01-27 07:08:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 07:08:03 +0300 |
commit | 00eb2f790647fe754813fd85750647d76b559ad7 (patch) | |
tree | 866e79a48400cf6f05a16472976d1c67947a08f5 /src/Security | |
parent | a736191bd0bb078a0b40e9b8baef9338099237ee (diff) |
Update JwtBearerOptions and OpenIdConnectOptions (#39782)
Fixes #39725
Diffstat (limited to 'src/Security')
-rw-r--r-- | src/Security/Authentication/JwtBearer/src/JwtBearerOptions.cs | 10 | ||||
-rw-r--r-- | src/Security/Authentication/OpenIdConnect/src/OpenIdConnectOptions.cs | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/src/Security/Authentication/JwtBearer/src/JwtBearerOptions.cs b/src/Security/Authentication/JwtBearer/src/JwtBearerOptions.cs index 33185321b8..8b4964a821 100644 --- a/src/Security/Authentication/JwtBearer/src/JwtBearerOptions.cs +++ b/src/Security/Authentication/JwtBearer/src/JwtBearerOptions.cs @@ -138,12 +138,18 @@ public class JwtBearerOptions : AuthenticationSchemeOptions } /// <summary> - /// 1 day is the default time interval that afterwards, <see cref="ConfigurationManager" /> will obtain new configuration. + /// Gets or sets how often an automatic metadata refresh should occur. /// </summary> + /// <value> + /// Defaults to <see cref="ConfigurationManager{OpenIdConnectConfiguration}.AutomaticRefreshInterval" />. + /// </value> public TimeSpan AutomaticRefreshInterval { get; set; } = ConfigurationManager<OpenIdConnectConfiguration>.DefaultAutomaticRefreshInterval; /// <summary> - /// The minimum time between <see cref="ConfigurationManager" /> retrievals, in the event that a retrieval failed, or that a refresh was explicitly requested. 30 seconds is the default. + /// Gets or sets the minimum time between retrievals, in the event that a retrieval failed, or that a refresh was explicitly requested. /// </summary> + /// <value> + /// Defaults to <see cref="ConfigurationManager{OpenIdConnectConfiguration}.DefaultRefreshInterval" />. + /// </value> public TimeSpan RefreshInterval { get; set; } = ConfigurationManager<OpenIdConnectConfiguration>.DefaultRefreshInterval; } diff --git a/src/Security/Authentication/OpenIdConnect/src/OpenIdConnectOptions.cs b/src/Security/Authentication/OpenIdConnect/src/OpenIdConnectOptions.cs index e18acb2cf2..52d23fccdd 100644 --- a/src/Security/Authentication/OpenIdConnect/src/OpenIdConnectOptions.cs +++ b/src/Security/Authentication/OpenIdConnect/src/OpenIdConnectOptions.cs @@ -329,13 +329,19 @@ public class OpenIdConnectOptions : RemoteAuthenticationOptions } /// <summary> - /// 1 day is the default time interval that afterwards, <see cref="ConfigurationManager" /> will obtain new configuration. + /// Gets or sets how often an automatic metadata refresh should occur. /// </summary> + /// <value> + /// Defaults to <see cref="ConfigurationManager{OpenIdConnectConfiguration}.AutomaticRefreshInterval" />. + /// </value> public TimeSpan AutomaticRefreshInterval { get; set; } = ConfigurationManager<OpenIdConnectConfiguration>.DefaultAutomaticRefreshInterval; /// <summary> - /// The minimum time between <see cref="ConfigurationManager" /> retrievals, in the event that a retrieval failed, or that a refresh was explicitly requested. 30 seconds is the default. + /// Gets or sets the minimum time between retrievals, in the event that a retrieval failed, or that a refresh was explicitly requested. /// </summary> + /// <value> + /// Defaults to <see cref="ConfigurationManager{OpenIdConnectConfiguration}.DefaultRefreshInterval" />. + /// </value> public TimeSpan RefreshInterval { get; set; } = ConfigurationManager<OpenIdConnectConfiguration>.DefaultRefreshInterval; /// <summary> |