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

Custom redirects - what were the issues ? #24

Open
kuahyeow opened this issue Dec 6, 2014 · 2 comments
Open

Custom redirects - what were the issues ? #24

kuahyeow opened this issue Dec 6, 2014 · 2 comments

Comments

@kuahyeow
Copy link
Contributor

kuahyeow commented Dec 6, 2014

Hi, we would like to resurrect the code and submit a PR based on 66b485f to enable redirects back to the URL before auth was required.

However, It seems that code was removed due to "some issues". Are you able to share a bit more ?

@mnutt
Copy link
Member

mnutt commented Dec 7, 2014

It's been a few years, and I actually can't remember the exact issue. I believe what happened was:

  1. user was on a page and their session expired
  2. page made an (expired) ajax call, req.session.redirectTo set to the ajax URL
  3. user reloads the page, sees the doorman login
  4. user logs in, gets redirect to the ajax URL.

I think this may be able to be remedied by only setting redirectURL for responses of type text/html.

@kuahyeow
Copy link
Contributor Author

kuahyeow commented Dec 8, 2014

Okay thanks for the info. I'll patch something up and try to submit a PR if
its looking good
On 8 Dec 2014 10:35, "Michael Nutt" [email protected] wrote:

It's been a few years, and I actually can't remember the exact issue. I
believe what happened was:

  1. user was on a page and their session expired
  2. page made an (expired) ajax call, req.session.redirectTo set to the
    ajax URL
  3. user reloads the page, sees the doorman login
  4. user logs in, gets redirect to the ajax URL.

I think this may be able to be remedied by only setting redirectURL for
responses of type text/html.


Reply to this email directly or view it on GitHub
#24 (comment).

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