Welcome! Log In Create A New Profile

Advanced

Error 403 return keycloak

Posted by sedeman 
Error 403 return keycloak
January 03, 2020 06:24AM
Hi!,

We need help with our new infraestructure.
We have three instances, one for our app, other for Nginx and the third for keycloak.

Nginx is between the other two instances. When we want to do logging in our APP, the request pass througth nginx to keycloak and return by nginx to APP.
But we have an issue:

195.55.133.108 - - [03/Jan/2020:12:10:32 +0100] "GET /APP/?state=de9634c8-d409-418f-9b3d-78cacd36e0fe&session_state=4f425be9-1cf1-4340-b05f-0189bf86b89b&code=8ba8c7c4-3b32-43d3-b146-91265c79add1.4f425be9-1cf1-4340-b05f-0189bf86b89b.f91920a4-3267-4de5-9788-24093a32c217 HTTP/1.1" 403 418 "https://our_domain/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0"

Could you help us, please?

We have read the keycloak documentation and the parameters are:

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
Re: Error 403 return keycloak
January 08, 2020 01:37AM
Anyone help, please?
Re: Error 403 return keycloak
February 10, 2020 01:36AM
The solution has been to separate keycloak with other Nginx instead of using one Nginx for APP and Keycloak. Now, we have 2 Nginx's and run OK keycloak with our APP.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready