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
{{ message }}
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
Currently our tests cover only the first part of the flow when we call /api/login/authorize to create a state and redirect to KC. We need to cover the second part when after successful authentication KC redirects back to /api/login/authorize and passing the state from the first call.
The text was updated successfully, but these errors were encountered:
We need to cover the second part when after successful authentication KC redirects back to /api/login/authorize and passing the state from the first call.
/api/authorize/login is called using state and code .
We can't really have a positive test for code because it is generated after a successful user interaction.
We already have
test for incorrect state.
test for correct state & incorrect code.
So no matter what, config.Exchange(ctx, code) would always return an error.
I don't see what tests more we can add for this second step, do you have something different in mind, @alexeykazakov ?
Currently our tests cover only the first part of the flow when we call /api/login/authorize to create a state and redirect to KC. We need to cover the second part when after successful authentication KC redirects back to /api/login/authorize and passing the state from the first call.
The text was updated successfully, but these errors were encountered: