Skip to content

Conversation

@kinolaev
Copy link
Member

@kinolaev kinolaev commented Oct 4, 2019

Problem: Chrome prevents redirect to oauth redirect url because of CSP 'form-action' on grant page. Firefox allows redirect from form submission responses but Chrome doesn't (see MDN, W3C).
Solution: allow oauth redirect url in CSP.

@kinolaev kinolaev force-pushed the fix-oauth2-redirect branch from 10ac2fd to 5c8f82f Compare October 4, 2019 17:08
@kesselb kesselb added this to the Nextcloud 18 milestone Oct 4, 2019
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!
For bonus point tests would be cool! 😉

Signed-off-by: Sergej Nikolaev <[email protected]>
@kinolaev kinolaev force-pushed the fix-oauth2-redirect branch from 5c8f82f to 1b5d85a Compare October 4, 2019 18:09
@kinolaev
Copy link
Member Author

kinolaev commented Oct 4, 2019

Hello @rullzer! Thank you for quick reply, I fixed a test.

@kinolaev
Copy link
Member Author

kinolaev commented Oct 7, 2019

Hello @ChristophWurst, can you please review this small patch? Oauth authentication doesn’t work for now in Chrome.

@rullzer rullzer merged commit a02a626 into nextcloud:master Oct 7, 2019
@rullzer
Copy link
Member

rullzer commented Oct 7, 2019

/backport to stable17

@backportbot-nextcloud
Copy link

backport to stable17 in #17438

@JamesDAdams
Copy link

Same error with nextcloud 20 in Chrome and new Edge browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants