-
Notifications
You must be signed in to change notification settings - Fork 112
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 when handling callback #5
Comments
Make sure you are using https instead of http when making the request. When you're using the HTTP version (http://redux-oidc-example.herokuapp.com/) it won't work but with SSL it works. I haven't yet tried logging in |
I see, is it Google that enforces the request to come from HTTPS? So I need to use HTTPS in my Express server when developing as well? |
Yes. Google requires a callback URI with SSL enabled. |
Made Express use https now, but I get the same error :( Here is what I do when logged out of Google in incognito with empty localStorage:
This time I also got: Thank you for helping out! |
I've just tried this with the example app but couldn't reproduce the issue. Have you tried clearing the cache and refreshing (Shift + F5)? From what I've researched this could be the reason for the second error message you've received. |
I can also see that your localhost port (8000) is not matching the example app's port (8080). If you're using my |
I am using my own I tried a hard clear of cache, hard refresh and using incognito mode. Doesn't work. I can try changing to port 8080 and using your |
Changing to your |
If you're using Google you will have to use your |
I disabled all my security like CORS/CSP, headers etc., and I got through. I will try to figure out exactly what triggered it. Btw: In your wikipage https://github.com/maxmantz/redux-oidc/wiki/2.-Configuration, you give the following example of a successCallback. I used this initially, but the user.state object is
|
This is an error in the wiki. Thank you for pointing this out. The
Then you can access the |
Thanks, that worked. |
Glad I could help. |
I am trying out the lib and based my code on the redux-oidc-example app with Google auth.
I get the following error when returning to the callback:
redux-oidc.js:1Uncaught (in promise) Error: Error handling redirect callback: signature validation failed
I was also wondering how I could turn on logging on the
oidc-client
lib to further investigate? I tried doing ìmport Oidc from 'oidc-client'; Oidc.Log.logger = console;` both in my Root React component and in my express server, but nothing shows.The text was updated successfully, but these errors were encountered: