Non-standard port of the external host
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:
- Go to 'Providers‘
- Click on 'Create'
- Click on 'Proxy Provider'
- Click on 'Forward auth(single application)'
- Input 'https://startpage.example.com:4'
- Click 'Finish'
- 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):
- authentik version: 2024.4.2
- Deployment: docker-compose
In latest 2024.6.0, I meet the same problem
I find that URLValidator only allows ports with 2 to 5 digits. I think this was a mistake.
r"(?::\d{2,5})?" # port