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

Can't make this example work on HTTPS #21

Open
acierto opened this issue Nov 18, 2024 · 0 comments
Open

Can't make this example work on HTTPS #21

acierto opened this issue Nov 18, 2024 · 0 comments

Comments

@acierto
Copy link

acierto commented Nov 18, 2024

This issue is for a: bug report

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

This example works well on localhost, but on production, when application is running on GCP, trying to connect to Azure, and redirect always triggers back not POST but GET endpoint.

I see in the logs that request is correct, looks like this:

https://login.microsoftonline.com/SOME_UUID/oauth2/v2.0/authorize?
client_id=clientId
scope=openid%20profile%20offline_access&
redirect_uri=https%3A%2F%2Fcrystal-acc.bol.io%2Fapi%2Fauth%2Fazure%2Fsignin&
client-request-id=YYY&
response_mode=form_post&
response_type=code&
x-client-SKU=msal.js.node&
x-client-VER=2.16.0&
x-client-OS=linux&
x-client-CPU=x64&
client_info=1&
code_challenge=SOME1&
code_challenge_method=S256&
state=MY_STATE

Even if I specify res.redirect(308, authCodeUrlResponse); it gives no effect.

What kind of configuration is in Azure to not do this VERB conversion?

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Linux, Kubernetes, GCP

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

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

1 participant