qwc-services / qwc-db-auth

QWC authentication service based on local user DB
MIT License
0 stars 14 forks source link

Accesing authentication with https #24

Open RodolfoMontenegro opened 8 months ago

RodolfoMontenegro commented 8 months ago

Hello, I´m having trouble finding a way to access https://my.domain.com/qwc_admin/ I can access it without problems with my.ip.address:8088/qwc_admin or with https://my.domain.com:8088/qwc_admin/

Since de auth pulls the url with "http" like this https://my.domain.com/auth/login?url=http://my.domain.com/qwc_admin/

This happens with /auth/login and also with /auth/logout/

I also added the following for the Authentication pluggin:

  {
    "name":"Authentication",
    "cfg":{
      "logoutTargetUrl":"my.domain.com"
    }
  },

*Update:

My logs say:

[pid: 6|app: 0|req: 60/60] 172.24.0.13 () {48 vars in 895 bytes} [Tue Feb 27 16:27:14 2024] GET /auth/login?url=https://my.domain.com/qwc_admin/ => generated 2023 bytes in 11 msecs (HTTP/1.0 200) 3 headers in 95 bytes (1 switches on core 0)

[pid: 6|app: 0|req: 61/61] 172.24.0.13 () {50 vars in 912 bytes} [Tue Feb 27 16:27:14 2024] GET /auth/static/style.css => generated 0 bytes in 3 msecs (HTTP/1.0 304) 4 headers in 178 bytes (0 switches on core 1)

As if they are getting the correct url, but the proxy redirects me still to https://my.domain.com/auth/login?url=http://my.domain.com/qwc_admin

Getting me a 403 Forbidden.

Thank you!