You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user gets redirected to the login page, they are presented with a set of providers to choose from. When they click on a provider, an XHR request is done to the /self-service/login endpoint. The backend responds with a 422 code and a URL to redirect to (the authn endpoint).
This happens because the application type we send is application/json, if the application type is changed to application/x-www-form-urlencoded, the status code should change to 303. It is not enough to add that content type to the frontend headers, as the ory go client does not allow us to set the content type when making the request (at least I couldn't figure out how to do it).
We could handle this in the backend (ie convert the 422 to a 303 as long as the response body is valid).
The text was updated successfully, but these errors were encountered:
When the user gets redirected to the login page, they are presented with a set of providers to choose from. When they click on a provider, an XHR request is done to the
/self-service/login
endpoint. The backend responds with a 422 code and a URL to redirect to (the authn endpoint).This happens because the application type we send is
application/json
, if the application type is changed toapplication/x-www-form-urlencoded
, the status code should change to303
. It is not enough to add that content type to the frontend headers, as the ory go client does not allow us to set the content type when making the request (at least I couldn't figure out how to do it).We could handle this in the backend (ie convert the 422 to a 303 as long as the response body is valid).
The text was updated successfully, but these errors were encountered: