gray-machine-46287
01/05/2023, 3:57 PMlogin_verifier
, so that we get redirected to the consent URL.
But if then another accept login request comes in with the same login_challenge
, Hydra returns a 409 Conflict, which makes it impossible to get another URL with a login_verifier
, so that we could still redirect to the consent URL in the end.
Instead, we are only achieving to make the user restart entirely, get a new login challenge, having to enter credentials again.
Has someone else encoutered this? Is there a way to workaround this? š š¤refined-room-36507
01/05/2023, 4:48 PMlate-balloon-3804
01/05/2023, 5:35 PMrefined-room-36507
01/05/2023, 5:46 PMlate-balloon-3804
01/05/2023, 5:57 PMrefined-room-36507
01/05/2023, 6:13 PMrefined-room-36507
01/05/2023, 6:13 PMrefined-room-36507
01/05/2023, 10:36 PM{
"error": "Unable to insert or update resource because a resource with that value exists already",
"error_description": ""
}
Will have to look at whether there is a redirect URL from a Location header or somethingrefined-room-36507
01/05/2023, 10:39 PMredirect_to
field in the body of the 200 response. So it's not providing it in the 409 response (as of 1.11.10)gray-machine-46287
01/06/2023, 11:02 AMI'm fetching the login request again, which may result in a 410 Gone if it has already been accepted (mind you, I'm currently using 1.10) but fetching the login request again to get the redirect url might be a route to take on 409 errorsFor now, that's what we ended up doing: on a 409, fetch the login request again. If the response it a 410 Gone with a
redirect_to
, redirect to this URL.
However, this URL is actually (re)starting an OAuth2 flow. So our user experience is still degraded since they have to input their credentials again, but at least they are unblocked šrefined-room-36507
01/06/2023, 3:32 PMrefined-room-36507
01/06/2023, 4:04 PMgray-machine-46287
01/06/2023, 4:04 PMrefined-room-36507
01/06/2023, 4:43 PMrefined-room-36507
01/06/2023, 4:56 PMgray-machine-46287
01/06/2023, 4:56 PMlate-balloon-3804
01/06/2023, 5:37 PMrefined-room-36507
01/06/2023, 5:46 PMrefined-room-36507
01/06/2023, 5:47 PMlate-balloon-3804
01/06/2023, 5:48 PMlate-balloon-3804
01/06/2023, 5:52 PMrefined-room-36507
01/06/2023, 6:42 PM