openedx / openedx/frontend-platform

initialize() needs to abort for anonymous users if requireAuthenticatedUser is true

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.