-
Notifications
You must be signed in to change notification settings - Fork 712
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
Properly redirect on authentication failure #12414
Conversation
Check user_id not id for forbidden redirects.
Build Artifacts
|
This is now fixed in all steps of the quiz creation process, and it redirects properly upon session end (tested in Firefox on Ubuntu). redirect.mp4@pcenov Could you do some additional checks with Chrome on other coach user workflows? Thank you! |
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.
Quiz creation redirect when session ends is a go! 👏🏽
Let's test redirects on some more coach workflows before we give a final approval 🙂
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.
The code changes here seem correct to me, and my own manual QA when running the dev server did properly redirect me out of coach when doing quiz creation.
I'll wait for some final checks from Peter though, per Radina's comment.
Hi @marcellamaki - I noticed two possible follow-up issues if we want to dig deeper in this:
learner.mp4
coach.mp4 |
I think issue 2 has been independently resolved by @nucleogenesis elsewhere. Issue 1 can be filed as a follow up. |
Summary
References
Fixes #11773
Reviewer guidance
Delete your session cookie while on the quiz creation page, make sure you get properly redirected there and back again.
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)