Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Openidc with Keycloak error uthenticate(): request to the redirect_uri_path but there's no session state found, client

I am using Openresty as a server. I have the configuration file of the nginx as per the https://eclipsesource.com/blogs/2018/01/11/authenticating-reverse-proxy-with-keycloak/.

I am getting following error "openidc.lua:1053: authenticate(): request to the redirect_uri_path but there's no session state found, client"

Can someone throw some light and try to solve the problem.

Regards, Allahbaksh

like image 475
Allahbaksh Asadullah Avatar asked Mar 17 '18 15:03

Allahbaksh Asadullah


1 Answers

Your redirect URI must not be set to "/" but to some arbitrary path that is not supposed to return content (like /redirect_uri). It is a "vanity" URL that is handled by lua-resty-openidc

like image 88
Usman Shahid Avatar answered Oct 25 '22 08:10

Usman Shahid