Skip to content

Option to enable automatic renew of tokens #30929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
davhdavh opened this issue Mar 15, 2021 · 2 comments
Closed

Option to enable automatic renew of tokens #30929

davhdavh opened this issue Mar 15, 2021 · 2 comments
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved

Comments

@davhdavh
Copy link
Contributor

Is your feature request related to a problem? Please describe.

The oidc-client supports a setting to automatically renew the token before it expires, but it is not supported in the C# API.
See https://github.com/IdentityModel/oidc-client-js/wiki under automaticSilentRenew.

Example: I am trying to do

         builder.Services.AddOidcAuthentication(options =>
         {
            options.ProviderOptions.AutomaticSilentRenew = true;

Describe the solution you'd like

This should be available to set, and the default should be true.

Additional context

If the access token is not renewed, and the refresh token expires before next request it may cause the problem seen in #30927

@javiercn
Copy link
Member

@davhdavh thanks for contacting us.

We automatically renew tokens silently under the hood.

@javiercn javiercn added area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question labels Mar 15, 2021
@ghost ghost added the Status: Resolved label Mar 15, 2021
@ghost
Copy link

ghost commented Mar 16, 2021

This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.

See our Issue Management Policies for more information.

@ghost ghost closed this as completed Mar 16, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 15, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants