thefrontside / thefrontside/simulacrum
Auth0: /authorize endpoint when not logged in
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 117
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Using the auth0-spa-js when calling the method getAccessTokenSilently while not logged in the simulation server responds with "server error" and a http status of 500.
This causes the promise returned from getAccessTokenSilently to never be resolved.
When calling the real Auth0 in this scenario the endpoint returns a http status of 200 and getAccessTokenSilently promise is rejected with the error
error: "login_required"
error_description: "Login required"
message: "Login required"
Contributor guide
No contributing guide indexed for this repository
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 by locating the simulation server handler for the /authorize endpoint and the path exercised by getAccessTokenSilently when no user is logged in. Compare its response with the documented Auth0 behavior in the issue; done means the request returns HTTP 200 and the promise is rejected with the shown login_required error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100