Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

User trapped at callback URL on verification error #53

Open
3sGgpQ8H opened this issue Nov 28, 2019 · 1 comment
Open

User trapped at callback URL on verification error #53

3sGgpQ8H opened this issue Nov 28, 2019 · 1 comment

Comments

@3sGgpQ8H
Copy link

After successful or unsuccessful OAuth 2.0 authentication, the user is redirected back to the original application at so called callback URL, where cloudfront-auth verifies response code, nonce etc. In case callback verification fails, an error message is shown to the user at callback URL. If user reloads the page, cloudfront-auth does not perform new OAuth request, but instead just verifies again the same callback parameters whose verification already failed.

The callback URL, when showing error, should output Content-Location header referring to the original URL user started with, so pressing reload will reload that original URL and restart authentication process.

@3sGgpQ8H 3sGgpQ8H changed the title User may be trapped at callback URL User trapped at callback URL on verification error Nov 28, 2019
@3sGgpQ8H
Copy link
Author

It seems that Content-Location does not work this way. Probably window.history.pushState in body onload could be used instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant