-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix oauth client redirect #17411
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
Fix oauth client redirect #17411
Conversation
10ac2fd to
5c8f82f
Compare
rullzer
left a comment
There was a problem hiding this 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]>
5c8f82f to
1b5d85a
Compare
|
Hello @rullzer! Thank you for quick reply, I fixed a test. |
|
Hello @ChristophWurst, can you please review this small patch? Oauth authentication doesn’t work for now in Chrome. |
|
/backport to stable17 |
|
backport to stable17 in #17438 |
|
Same error with nextcloud 20 in Chrome and new Edge browser |
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.