thefrontside / thefrontside/simulacrum

Auth0 respones mode form_post

Open
#226 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
117
Forks
23
PR merge metrics
No merged PRs in 30d

Description

I am testing with this against my dotnet mvc server for integration testing.

PORT=4000 npx auth0-simulator --standalone

The error

Error: Assert condition failed: unknown response_mode form_post

and the code

            let responseMode = ((_a = req.query.response_mode) !== null && _a !== void 0 ? _a : 'query');
            (0, assert_ts_1.assert)(['query', 'web_message'].includes(responseMode), `unknown response_mode ${responseMode}`);
            let handler = authorizeHandlers[responseMode];

seems to imply that this simulator doesn't support form_post as a response mode for authorization_code flow?

Is there something I am doing wrong here?

Contributor guide

No contributing guide indexed for this repository

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 the standalone simulator with PORT=4000 npx auth0-simulator --standalone and trace authorization handling from the response_mode query parameter to authorizeHandlers. Confirm the expected behavior for form_post and add support if required, with coverage for authorization-code requests using that response mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.