-
Notifications
You must be signed in to change notification settings - Fork 1.6k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Use Ocelot / Identity Server4 JwtBearerEvents.OnAuthenticationFailed addHeaders not work #1913
Comments
What's the question? 😉 [17:38:39 INF] TWMSAuth was not authenticated. Failure message: IDX10223: Lifetime validation failed. The
token is expired. ValidTo: 'System.DateTime', Current time: 'System.DateTime'. The root cause is "The token is expired." Leo, if you use expired tokens why do you create issues in the repo? |
Also, if you use .NET 8 then keep in mind #1876 !!! |
I know "The token is expired.". |
I can return the http response header added in OnAuthenticationFailed in my application |
I found out, normally it is JwtBearerEvents.OnAuthenticationFailed |
@raman-m please help me... |
OK. What .NET SDK do you use? .NET 8 or lower? Again, my recommendation is 👇 Have you designed your infrastructure and services apps including identity management without Ocelot? |
SDK:Net 6 It is normal to use it in a service application |
Well... If it doesn't work in .NET 6 then we have to fix after verification. Please, upload complete solution to GitHub for verification! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
ocelot app :http://localhost:5500
ocelot full log
The text was updated successfully, but these errors were encountered: