openedx / openedx/frontend-platform
initialize() needs to abort for anonymous users if requireAuthenticatedUser is true
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 39
- Forks
- 91
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
Currently if requireAuthenticatedUser is true and the user is anonymous, we begin the login redirect process but don't actually abort initialization. Application code that depends on there being an authenticated user will then have unexpected behavior, most likely causing a flash of an error page prior to redirecting to login, which isn't a great experience.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the initialize() entry point and trace the requireAuthenticatedUser condition for anonymous users through the login redirect path. Confirm that initialization stops before application code runs while preserving the redirect behavior; the issue does not name a file or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authentication, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100