Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentik documentation states to add slug without trailing slash, but Authentik requires trailing slash #12512

Open
gibbyb opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@gibbyb
Copy link

gibbyb commented Jan 16, 2025

Provider type

Authentik

Environment

  System:
    OS: Linux 6.12 Fedora Linux 41 (Workstation Edition)
    CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
    Memory: 10.27 GB / 31.24 GB
    Container: Yes
    Shell: 5.2.32 - /bin/bash
  Binaries:
    Node: 22.11.0 - /usr/bin/node
    npm: 10.9.0 - /usr/local/bin/npm
    pnpm: 9.15.4 - ~/.local/share/pnpm/pnpm
    bun: 1.0.25 - ~/.bun/bin/bun
  npmPackages:
    next: ^14.2.23 => 14.2.23 
    next-auth: 5.0.0-beta.19 => 5.0.0-beta.19 
    react: ^18.3.1 => 18.3.1 

Reproduction URL

https://github.com/gibbyb/Tech_Tracker_Web

Describe the issue

Currently the documentation says that you add the URL with the slug without a trailing slash explicitly, but it is actually the opposite in my experience. Authentik will not work without the trailing slash. You will receive this error:

OperationProcessingError: "response" body "issuer" does not match "expectedIssuer"

until you add that trailing slash. This is directly from my console.log I used for testing:

Configured issuer: https://auth.gibbyb.com/application/o/techtracker
Authentik returned issuer: https://auth.gibbyb.com/application/o/techtracker/

Once I added the trailing slash, Authentik worked perfectly.

How to reproduce

Add authentik provider, add environment variables including slug without the trailing slash, then try to sign in with authentik.

Expected behavior

The documentation should not explicitly state that the trailing slash should be removed, and perhaps should even say the opposite, depending on the experience others have had, but at least in my case, with Next.js App Router, the trailing slash was required. In my authentik web admin panel, it also lists the issuer with a trailing slash.

@gibbyb gibbyb added bug Something isn't working providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Jan 16, 2025
@LucaDangeloS
Copy link

Finally, I have just set up a project with AuthJS and Authentik and I was confused because of this same behavior. How come this only have been pointed out 2 weeks ago?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working providers triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants