-
Notifications
You must be signed in to change notification settings - Fork 65
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
Error too many redirects when cookie is present #136
Comments
Can you tell me where you're being redirected to? Check the dev console of your browser |
I'm redirected to the root of the forum, again and again. EDIT : I changed the Session Handling config from Trust to Revalidate and it works fine now with the admin account, but when authenticating with a normal user NodeBB doesn't even load and I have an gateway timeout. |
Same here for React Native WebView browser @arkabase , are you also using react native WebView or in which browser is the redirection happening? For me it's working on Chrome Desktop etc. but not in the React native WebView.
A working request on Chrome looks like this:
|
any news on this? It's a blocking issue for us to use nodeBB |
@niklasdahlheimer Are you able to attach a debugger and see whether it is redirecting you to HTTPS? Could be http? In which case perhaps Otherwise, a little weird that it works ok in Chrome. |
sorry, can not debug this. Gonna use SSO instead. Just for reference: Cookies are a mess in react native web view: They are only applied on the first load. To reapply them, it's recommended to use "onShouldStartLoadWithRequest()", but this function is not called in Android on first load, so no chance to have persistent cookies. Debugging a react native app in an iOS simulator (this is where the redirects happen) does not work for me. |
I want to use the plugin to auth users from a wordpress site.
The cookie is created on the wordpress side, and I can see it in my domain cookies in the browser dev console.
The cookie payload is a valid JSON with at least id and username data, encoded as a JWT signed with the same secret as the one set in the plugin.
After the cookie is created, I can no longer access NodeBB, having a HTTP error : ERR_TOO_MANY_REDIRECTS
If I delete the cookie the app is loading as usual.
I can't figure where the issue is. Can you help me with this ?
Thanks
The text was updated successfully, but these errors were encountered: