Closed olivierboudet closed 1 year ago
I am using Izanami behind a reverse proxy, and I am trying to set authentication using Google OAuth2.
If I do not set izanami.baseURL=https://izanami.mydomain.com, redirect_uri is generated using http scheme instead of https.
izanami.baseURL=https://izanami.mydomain.com
When I set izanami.baseURL=https://izanami.mydomain.com and trying to login, I am successfully redirect to Google, but the callback url contains two slashes (https://izanami.mydomain.com//api/auth/callback?desc=izanami&code=4/0ARtbsJqPj-QSuYLXDarX94twLJIGl_3_p8zpJvz3-D-tSg6Ci3LBJJXKMVS7M2VZvgW_4w&scope=email%20profile%20openid%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email&authuser=1&hd=mydomain.com&prompt=none) The request to this callback url fails on error "redirect_uri_mismatch". If I remove manually one of the two slashes, it works correctly.
I am using Izanami behind a reverse proxy, and I am trying to set authentication using Google OAuth2.
If I do not set
izanami.baseURL=https://izanami.mydomain.com
, redirect_uri is generated using http scheme instead of https.When I set
izanami.baseURL=https://izanami.mydomain.com
and trying to login, I am successfully redirect to Google, but the callback url contains two slashes (https://izanami.mydomain.com//api/auth/callback?desc=izanami&code=4/0ARtbsJqPj-QSuYLXDarX94twLJIGl_3_p8zpJvz3-D-tSg6Ci3LBJJXKMVS7M2VZvgW_4w&scope=email%20profile%20openid%20https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email&authuser=1&hd=mydomain.com&prompt=none) The request to this callback url fails on error "redirect_uri_mismatch". If I remove manually one of the two slashes, it works correctly.