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

LegacyOAuthSecurityTokenHandler - Expired Token #3

Open
RedBlack-DevOps opened this issue Dec 19, 2023 · 0 comments
Open

LegacyOAuthSecurityTokenHandler - Expired Token #3

RedBlack-DevOps opened this issue Dec 19, 2023 · 0 comments

Comments

@RedBlack-DevOps
Copy link

Hi

We had an issue with the example LegacyOAuthSecurityTokenHandler and it not checking for Expired tokens. We changed it to the below which resolved the issue for us.

            var ticket = LegacyOAuthSecurityTokenHelper.GetTicket(token, _options);

            if (ticket.Properties.ExpiresUtc < DateTime.UtcNow)
                throw new SecurityTokenExpiredException();
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

1 participant