-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
OIDC Login Flow Issue with Semaphore & Authentik #2666
Comments
I have the same issue with zitadel oidc #2659 |
Weird, when I ran the problem by ChatGPT, it said that semaphore was unable to handle the response request. It sounds like this is a bug that needs to be fixed within semaphore and not necessarily a configuration issue. Have you tried putting a redirect on the response URL in traffic or NPM to a "example.com/" Not sure if that would work because the response would have to come through that URL not be redirected as well. |
Same issue with authentik for me. Authentication is completed, but redirection to the main page with dashboard doesn't happen. |
Hello @TDX44, @flyingfishflash @ed-bogd , could you please see if the workaround in issue #2681 solves your issue. |
Worked for me, I haven't had this "web_host" key initially. Just added with a value of "/" as you mentioned and now it works. Thanks a lot @MatthewHana ! |
The workaround also works on my instance. |
Problem solved. Thank you! |
OIDC Login Flow Issue with Semaphore & Authentik
Description
When attempting to log in to Semaphore using OIDC with Authentik as the identity provider, the user is successfully redirected to the authentication page, authenticated, and returned to the configured redirect_url. However, upon redirection to /api/auth/oidc/authentik/redirect/, Semaphore returns a 404 Not Found error, and the login process does not complete. Manually navigating to the Semaphore root URL (e.g., https://semaphore.example.com/) after authentication displays the logged-in dashboard.
###Environment Details
Semaphore Version:
v2.11.2-0e9490c-173521
Deployment Environment:
Docker-based deployment using docker-compose.
Traefik initially used as a reverse proxy but later removed to simplify testing.
OIDC Provider: Authentik
Authentik version: 2024.6
OIDC configuration:
Redirect URL: https://semaphore.example.com/api/auth/oidc/authentik/redirect/
Scopes: openid, profile, email
Claims: preferred_username for both username_claim and name_claim.
Steps to Reproduce
Navigate to the Semaphore login page.
Click "Login with Authentik."
Authenticate via Authentik successfully.
Observe redirection to https://semaphore.example.com/api/auth/oidc/authentik/redirect/.
The page displays a 404 Not Found error.
Manually remove /api/auth/oidc/authentik/redirect/ from the URL to access the Semaphore dashboard, where the user is already logged in.
Expected Behavior
After authenticating via Authentik, the user should be redirected to Semaphore's dashboard without encountering a 404 Not Found error.
Observed Behavior
The redirection to /api/auth/oidc/authentik/redirect/ results in a 404 Not Found error, requiring manual intervention to navigate to the Semaphore root URL.
Impact
Web-Frontend (what users interact with)
Installation method
Docker
Database
MySQL
Browser
Firefox, Chrome, Safari, Microsoft Edge
Semaphore Version
Manual installation - system information
Traefik, but also replicated without reverse proxy.
Configuration
/
Additional information
Docker Configuration:
The text was updated successfully, but these errors were encountered: