IIS.Administration icon indicating copy to clipboard operation
IIS.Administration copied to clipboard

Using token with expiry set to never causes exceptions

Open kimboslice99 opened this issue 11 months ago • 0 comments

The following exception occurs when attempting to use a token with expiry set to never

Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler[3]
      Exception occurred while processing message.
      System.ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset')
         at System.DateTimeOffset.ValidateDate(DateTime dateTime, TimeSpan offset)
         at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()

Other exceptions may occur, such as a NullReferenceException.

Is anyone managing this repo still active? I would like to create some PRs to resolve various bugs

kimboslice99 avatar Jan 28 '25 00:01 kimboslice99