Skip to content
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

Auth0 respones mode form_post #226

Open
esumerfd opened this issue Nov 9, 2022 · 1 comment
Open

Auth0 respones mode form_post #226

esumerfd opened this issue Nov 9, 2022 · 1 comment

Comments

@esumerfd
Copy link

esumerfd commented Nov 9, 2022

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?

@dagda1
Copy link
Contributor

dagda1 commented Nov 10, 2022

Hi @esumerfd ,

Thank you for raising this, but currently, we only support query and web_message.

I don't think it would be too much work to add form_post. We would need to add some middleware to decode the form fields.

Would it be possible to create some sort of reproduction repo or code sandbox on your end so I have an example to work against?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants