Closed lei-9 closed 2 months ago
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? I recommend you to design your application without Ocelot first! After that start integration of Ocelot!!!
Also, if you use .NET 8 then keep in mind #1876 !!!
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? I recommend you to design your application without Ocelot first! After that start integration of Ocelot!!!
I know "The token is expired.". I dog this error, and set error code to http response header.but no response
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? I recommend you to design your application without Ocelot first! After that start integration of Ocelot!!!
I know "The token is expired.". I dog this error, and set error code to http response header.but no response
I can return the http response header added in OnAuthenticationFailed in my application Integrating ocelot into OnAuthenticationFailed, I also added httpresponse header. But no return
I found out, normally it is JwtBearerEvents.OnAuthenticationFailed You will then enter OnChallenge. But now when using ocelot, the OnChallenge event is not entered.
I found out, normally it is JwtBearerEvents.OnAuthenticationFailed You will then enter OnChallenge. But now when using ocelot, the OnChallenge event is not entered.
@raman-m please help me...
@lei-9 commented 3 hours ago But now when using ocelot, the OnChallenge event is not entered.
OK. What .NET SDK do you use? .NET 8 or lower?
Again, my recommendation is 👇
@lei-9 commented 3 hours ago But now when using ocelot, the OnChallenge event is not entered.
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. Also, could you tests the same app for .NET 7 and .NET 8 please?
Please, upload complete solution to GitHub for verification!
ocelot app :http://localhost:5500![ocelot1](https://github.com/ThreeMammals/Ocelot/assets/28752083/23119b88-2656-4cef-8191-d0d6520eebbd)
ocelot full log