Example failure with token endpoint:
lost access token:accessing token endpoint (https://axs.cluster-a.csd62.zone5/auth/realms/AXS/protocol/openid-connect/token) failed: closed
This usually occurs after a few days of a client being logged in. After being logged in for some time, during a token refresh, we see an error like the ones above. This results in other errors in the OIDC process, and the client gets disconnected and redirected to the login page. What is odd is that when looking at the logs from the API Gateway and Red Hat Single Sign On, we can see that the requests to the OIDC endpoints are getting processed and responded to with 200s. The failed: closed seems to happen almost instantly when the request is made.
Configuration and NGINX server log files
We are using the Kong API Gateway, with 3 instances of it being load-balanced between. Because of this, I can paste some of the config we are using below, and the NGINX config is generated based on this. Please let me know if you need more configuration information.
OIDC Config:
Also, if there is a way to increase the amount of information we get about the failure to reach the endpoint, please let me know. We are already running with debug logging enabled.
Environment
Expected behaviour
When refreshing tokens, the OIDC library should be able to reach endpoints like the discovery endpoint or the token endpoint.
Actual behaviour
OIDC Library fails to reach OIDC provider endpoints, with an error message of "closed"
Minimized example
Example failure with discovery endpoint:
Example failure with token endpoint:
lost access token:accessing token endpoint (https://axs.cluster-a.csd62.zone5/auth/realms/AXS/protocol/openid-connect/token) failed: closed
This usually occurs after a few days of a client being logged in. After being logged in for some time, during a token refresh, we see an error like the ones above. This results in other errors in the OIDC process, and the client gets disconnected and redirected to the login page. What is odd is that when looking at the logs from the API Gateway and Red Hat Single Sign On, we can see that the requests to the OIDC endpoints are getting processed and responded to with 200s. The
failed: closed
seems to happen almost instantly when the request is made.Configuration and NGINX server log files
We are using the Kong API Gateway, with 3 instances of it being load-balanced between. Because of this, I can paste some of the config we are using below, and the NGINX config is generated based on this. Please let me know if you need more configuration information. OIDC Config:
Some NGINX directives