OIDC State cookie not found #1050
Replies: 4 comments 17 replies
-
Firstly, you should not run over plain HTTP... |
Beta Was this translation helpful? Give feedback.
-
it looks like a mismatch in hostname used for accessing the application and the redirect URI; there should also be a warning about that in the logs; what is the URL that you're using in the browser to access the protected application? |
Beta Was this translation helpful? Give feedback.
-
upon hitting the protected website there's a redirect with an authentication request returned, including a |
Beta Was this translation helpful? Give feedback.
-
Hey James, I am also facing same issue.Can you tell whether you have got solution or not? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I'm attempting to use mod_auth_openidc but I'm seeing 'no state cookie found' errors. After login, the state cookie goes missing, and mod_auth_openidc redirects me back to the homepage, which redirects me back to the OIDC provider and a loop ensues, broken by a 'too many redirects' error in the browser.
Snapshot of apache debug logs, just before the error (client IP & hostname redacted):
Relevant config file (hostname replaced with {server_hostname}, OIDC provider replaced with {provider}):
Some things that seem weird to me:
From the wiki on state cookies:
Two possibilities in my mind:
I'm struggling to identify the cause of the error, any help would be greatly appreciated 🙂
Beta Was this translation helpful? Give feedback.
All reactions