question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Information in the JwtBearer comments is not up-to-date

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

In this class:

https://github.com/dotnet/aspnetcore/blob/main/src/Security/Authentication/JwtBearer/src/JwtBearerOptions.cs

The default values that the comments refer to has changed to 12 hours and 5 minutes respectively.

    /// <summary>
    /// 1 day is the default time interval that afterwards, <see cref="ConfigurationManager" /> will obtain new configuration.
    /// </summary>
    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.
    /// </summary>
    public TimeSpan RefreshInterval { get; set; } = ConfigurationManager<OpenIdConnectConfiguration>.DefaultRefreshInterval;

Perhaps worth updating?

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

Latest (6.0.1)

Anything else?

nope

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Tratchercommented, Jan 26, 2022

@rbipin yes, please.

0reactions
rbipincommented, Jan 26, 2022

hello, can I give this a try? this is my first-time contribution. I felt like this is the least risky one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is JWTBearer in .net 6 not working? It keeps coming ...
First you always have to authentication to know who the user is. After that you do authorization to figure out if the user...
Read more >
JWT Bearer Authentication Breaks after .NET 6 Upgrade
NET 5 to .NET 6 found here, my .NET 6 web app refuses to authenticate requests using JWT bearer tokens. I had no...
Read more >
The auth is not working in .net core web api?
Make sure that the settings are correct and up-to-date. Ensure that the user's identity is being set correctly by checking the HttpContext.User.
Read more >
JWT Validation and Authorization in ASP.NET Core
NET Core – how to validate JWT tokens and use them to authenticate users ... No identity or user information is managed by...
Read more >
JWT Bearer Authentication and Authorization for ASP.NET ...
An introduction on how to configure JWT Bearer authentication and authorization (based on scopes) for your ASP.NET Core 5 APIs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found