authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Non-standard port of the external host

Open waylonwang opened this issue 1 year ago • 2 comments

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):

  • authentik version: 2024.4.2
  • Deployment: docker-compose

waylonwang avatar May 26 '24 11:05 waylonwang

In latest 2024.6.0, I meet the same problem

ztelliot avatar Jun 27 '24 15:06 ztelliot

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

ztelliot avatar Jun 28 '24 03:06 ztelliot