authentik icon indicating copy to clipboard operation
authentik copied to clipboard

API browser not available

Open atrauzzi opened this issue 1 year ago • 2 comments

Describe the bug When I try to navigate to the API browser as per instructions, I end up getting a not found screen:

image (ignore the SSL error, just a self-signed cert)

Version and Deployment (please complete the following information):

  • authentik version: 2024.8.0
  • podman

Additional context

I've got nginx in front of it, though it's a very basic reverse proxy setup locally on my workstation. Authentik otherwise seems to work great:

server {
        listen 443 ssl;
        server_name ~^auth(\..*)?\.localdev\.com$;

        location @websocket {
            proxy_pass http://authentik:8079;
        }

        location / {
            proxy_read_timeout 30s;
            proxy_http_version 1.1;
            proxy_redirect off;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $host;
            proxy_pass http://authentik:8079;
        }
    }

atrauzzi avatar Sep 05 '24 15:09 atrauzzi

The url you're accessing is missing a trailing slash.

BeryJu avatar Sep 05 '24 16:09 BeryJu

Would love that, I never put or expect slashes at the end of my URLs.

atrauzzi avatar Sep 05 '24 18:09 atrauzzi

The API browser is documented here with a trailing slash and the link in the authentik frontend goes to the correct URL with a trailing slash too

BeryJu avatar Oct 31 '24 17:10 BeryJu

Erm... Why is it required?

atrauzzi avatar Oct 31 '24 19:10 atrauzzi