Skip to content
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

Change severity level for logs like "IDX10223: Lifetime validation failed. The token is expired" #2614

Open
Marusyk opened this issue Feb 29, 2024 · 3 comments
Assignees

Comments

@Marusyk
Copy link

Marusyk commented Feb 29, 2024

Microsoft.Identity.Web Library

Microsoft.Identity.Web

Microsoft.Identity.Web version

2.16.1

Web app

Sign-in users and call web APIs

Web API

Protected web APIs (validating tokens)

Token cache serialization

Not Applicable

Description

Every day I got a lot of error logs like

  1. IDX10223: Lifetime validation failed. The token is expired...
  2. IDX10205: Issuer validation failed...

The 1st one is not an error and we want to ignore it: this means that some of our clients make a request with an expired token, then the 401 will be returned and the client goes to the refresh endpoint for the new token. So it's not an error on the server side, we can't fix it from the server side. Why is it treated as an error?

How to disable/ignore/change-severity them?

@jennyf19
Copy link
Collaborator

@westin-m The fix might need to happen in IdentityModel, if so, you can transfer the issue over there.

@jennyf19
Copy link
Collaborator

Could be related to this: AzureAD/microsoft-identity-web#2675

@westin-m westin-m transferred this issue from AzureAD/microsoft-identity-web Apr 22, 2024
@westin-m westin-m removed their assignment Apr 22, 2024
@kellyyangsong kellyyangsong self-assigned this Apr 30, 2024
@jennyf19 jennyf19 transferred this issue from AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet May 2, 2024
@johnwc
Copy link

johnwc commented May 20, 2024

Looking for this answer as well. Need to change logging level specifically for IDX10223.

@jennyf19 jennyf19 assigned iNinja and unassigned westin-m May 28, 2024
@iNinja iNinja transferred this issue from AzureAD/microsoft-identity-web May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants