goauthentik / authentik

The authentication glue you need.
https://goauthentik.io
Other
13.05k stars 868 forks source link

Non-standard port of the external host #9868

Closed waylonwang closed 2 months ago

waylonwang commented 4 months ago

Describe the bug The External host in the Forward auth of the Proxy Provider cannot save the non-standard port.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Providers‘
  2. Click on 'Create'
  3. Click on 'Proxy Provider'
  4. Click on 'Forward auth(single application)'
  5. Input 'https://startpage.example.com:4'
  6. Click 'Finish'
  7. See error 'Enter a valid URL.'

Expected behavior All my services are accessed externally through specific ports, such as https://startpage.example.com:4. In Docker, port 4 is mapped to Traefik's port 443. Therefore, in my Proxy Provider's Forward Auth, the External host should be set to https://startpage.example.com:4

Version and Deployment (please complete the following information):

ztelliot commented 3 months ago

In latest 2024.6.0, I meet the same problem

ztelliot commented 3 months ago

I find that URLValidator only allows ports with 2 to 5 digits. I think this was a mistake.

models.py#L91

r"(?::\d{2,5})?"  # port