-
Notifications
You must be signed in to change notification settings - Fork 62
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
authservice fails to exchange authorization code for access token with keycloak #79
Comments
Hi @snkshukla, Thanks so much for your very detailed issue and your investigation. Your log indicates that the request was successful right up until the end, when the Authservice tried to gracefully shutdown the TLS connection, and the server on the other side did not participate fully in the graceful shutdown. It sounds like the same problem as described in this issue: boostorg/beast#824 We ran into a similar situation when we were implementing the A possible fix for your issue might be for Authservice to always ignore the specific error Would you mind helping us to confirm that such a fix would solve your issue? To build the Authservice on that branch, on either a Mac or linux machine:
Best, |
Hi @cfryanr, thank you so much for your quick reply. As you suggested, I deployed the image created from branch |
We are trying to setup an oidc provider for authZ and authN with istio in our k8s cluster. We followed this example here: Bookinfo with Authservice Example for the integration.
Below are the details on the setup:
OIDC provider: Keycloak
Grant type:
authorization_code
Istio version:
1.5
Authentication flow:
authservice
successfully redirects to Keycloak, where we're able to login successfully.This is the step where authservice fails and gives the error
IdP connection error
. The log for the request is as follows:On further checking the code, I found this error is triggered from here: Authservice oidc filter - Github
To rule out the issues with the configuration, I used OpenID Debugger to manually generate an authorization code and then called the api to exchange it for an api token. I was able to successfully retrieve it, there was no issue with that. But somehow it is failing with authservice.
Could there be something wrong on my end? Has anyone experienced this issue before? Any help appreciated. Let me know if any more details are needed.
The text was updated successfully, but these errors were encountered: