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

Auth fails in client due to empty oauth.state in redirectUri when using iframe #938

Open
Ray4R opened this issue Feb 22, 2022 · 1 comment

Comments

@Ray4R
Copy link

Ray4R commented Feb 22, 2022

i'm using OAuth client with Nextclouds OAuth. Everything is working great.
But when starting OAuth out of an iFrame ( i embed my site as nextloud externel site) no state is giving after grant access to my site.
Authorization code is set but state is empty.

https://...myserver/nextcloudlogin?state=&code=6a8Vk6cSEIhVcXZEcKBjGLWj4sIbmMhn...

Any help would be appreciated

@Ray4R Ray4R changed the title Auth fails in client due to empty oauth.state in redirectUri Auth fails in client due to empty oauth.state in redirectUri when using iframe Feb 22, 2022
@edsonhoraciojunior
Copy link

Do your iframe load correctly? Some services will fail OAuth requests - when it was originated from within an iframe - for security reasons. The response headers/body should contain more info as to why they failed.
I faced this when trying to use Google OAuth inside an iframe.

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