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

After restarting IIS(OIDC Server), I receive an error as State not valid #1318

Open
ozanmanav opened this issue Mar 4, 2024 · 6 comments
Open

Comments

@ozanmanav
Copy link

Issue and Steps to Reproduce

After restarting IIS, I receive an error as follows when users first log in. After redirect login and try again it works.

Versions

7.19.0

Screenshots

image

After refresh in same page:
image

Expected

It should work for first login.

Actual

It is getting error after reset IIS session.

@guillaume-chervet
Copy link
Contributor

hi @ozanmanav ,

Thank you again for your issue :)
Are you restarting your Application Server or your OIDC Server?
Do you have the all newtork history? to understand what's happening?

@ozanmanav
Copy link
Author

1- Our OIDC IIS Server
2- I don't have any network history only have this link and these console messages:

/auth-callback?code=RkdVAiHe-dC0CoDQkQCIvP747mXZPlhFnxuC1IxiBj8&state=5bNZgSMAwLxFAvqR&iss=XXXXX

image

@ozanmanav
Copy link
Author

ozanmanav commented Mar 19, 2024

@guillaume-chervet We realized that it was related to service worker and had to turn off this mode. :/

@guillaume-chervet
Copy link
Contributor

Thank you @ozanmanav for the feedback. It is a strange bug. I cannot reproduce it.

@guillaume-chervet
Copy link
Contributor

guillaume-chervet commented Mar 22, 2024

I found the problem I think and fixed it here : 44d15be

It took me time to find it @ozanmanav but it already fix the HTTP 401 on the userinfo endpoint on the first connection.

@ozanmanav
Copy link
Author

This still seems to be the case, we get an error on the first login when we reset iis on the server side. @guillaume-chervet :/

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

2 participants