ging / fiware-idm

OAuth 2.0-based authentication of users and devices, user profile management, Single Sign-On (SSO) and Identity Federation across multiple administration domains.
https://keyrock-fiware.github.io
MIT License
36 stars 81 forks source link

Unable to integrate fiware keyrock with Nginx reverse proxy server #89

Open iamarnavgarg opened 5 years ago

iamarnavgarg commented 5 years ago

Hi,

I want to access fiware keyrock using nginx, i.e. https://<nginx-ip>/idm . But while doing so, I am able to open my homepage for fiware keyrock but after that If I click on sign in or forgot password or any other button on homepage, then I get 404 Not found error wherein, this happens because the URL changes fromhttps://nginx-ip/idm/sign_up to https://nginx-ip/sign_up.

However, if I manually write idm following nginx-ip like - https://nginx-ip/idm/sign_up then the page loads properly.


The snapshot 1: Loading the front page , i.e homepage of fiware keyrock using nginx-ip

image


The snapshot 2: when clicking on any button like sign up on fiware keyrock: image


Snapshot 3: when i manually write idm preceding sign_up in the URL: image

I would request the fiware keyrock community members to please guide me through this issue.

iamarnavgarg commented 5 years ago

Hi @aalonsog @apozohue10 @agaldemas , request you to please guide me on this issue.

tmontanaro commented 5 years ago

Even though it is actually an issue to be solved, I temporarily solved the problem by using the port instead of the path to redirect requests through nginx. Thus, if a new request arrives from port 3000 it is for the IdM for sure and it is redirected to the IdM (I used nginx to support https)

apozohue10 commented 5 years ago

Hi, we will check how to deploy Keyrock with NGINX

iamarnavgarg commented 5 years ago

Even though it is actually an issue to be solved, I temporarily solved the problem by using the port instead of the path to redirect requests through nginx. Thus, if a new request arrives from port 3000 it is for the IdM for sure and it is redirected to the IdM (I used nginx to support https)

@tmontanaro Can you please share your nginx conf file and any relevant changes you made at fiware keyrock end? I want to run fiware keyrock on non-root location and not on /.

tmontanaro commented 5 years ago

It is almost the default configuration:

TomWonder commented 2 years ago

Hi @iamarnavgarg , @apozohue10

Are there any updates on this?

Does keyrock support configurable context path? I could not find anything in the docs nor in the configuration file

Thank you in advance, Tom