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

[Question]: Is it possible to not validate the code parameters when requesting authorize (authorization endpoint) from the API? #1962

Open
danielalmeidagoncalves opened this issue Jun 11, 2024 · 0 comments
Labels

Comments

@danielalmeidagoncalves
Copy link

danielalmeidagoncalves commented Jun 11, 2024

What Version of the library are you using?
17.0.0

Question
Is it possible not to validate the code parameter from a response given by the authorize endpoint of a identity provider?
On our use case our identity and authorization provider requires to call /authorize in order to perform silent authentication (auto login) on our products.
The thing is that after getting the response for the IdP we are presented with a console error stating:

Error: no code in url

This is because on the response url, our IdP only returns

Location: https://your_apps/DESTINATION?error=login_required&state=xyzABC123

That has only the state parameters and has no code parameter. This library actually validates that and throws a console error.

How can we avoid such scenario? Did anyone had this use case?

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

No branches or pull requests

1 participant