Skip to content

How to get the login_challenge value? #276

Answered by Benehiko
cosmin-z asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cosmin-z

The login_challenge isn't set by you, it is set by Ory Hydra. How this works, is you initialize an oauth flow to Hydra which redirects to Ory Kratos (with the login_challenge). Kratos then redirects to the Login UI (your app / Account Experience) with login_challenge in the URL as well as in the flow data.

Ory OAuth2 and OpenID Connect appends a login_challenge query parameter to the URL. The value is an ID which should later be used by the login endpoint to fetch important information about the request.

https://www.ory.sh/docs/oauth2-oidc/custom-login-consent/flow#login

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cosmin-z
Comment options

@Benehiko
Comment options

Answer selected by cosmin-z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants