-
-
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
Help with OIDC Azure AD configuration/debugging #1434
Comments
faced exactly same issue with you @danieladarve , any updates regarding this ? , can you check in your ends the logs sudo cat /var/log/syslog | grep semaphore I've checked mine, but I got level=error msg="404 Not Found: " which is strange, eventhough my semaphore run behind port-forwarding, should be no issue re that |
Very similar issue but with Okta. |
Facing a similar issue with Authentik. |
I was encountering similar issues but I now have a working configuration.
config.json includes the following:
Note of course that the redirect_uri should match what is set in AzureAD as a valid (Web) redirect uri: My instance is behind an Nginx reverse proxy, but that config is pretty vanilla like in this documentation here: https://docs.ansible-semaphore.com/administration-guide/security But for the record, my Nginx configuration for this site is is like:
|
This example worked for me, so I created a PR in the docs repo to add it there. Thanks @xfact-joseph-p ! |
There is also a config including all scopes at #2031 (comment) which should be added to the docs. |
I am having the same issue and have configured my oidc provider as in #2031. I get the following error:
Is it really the case that semaphore server uses duplicate authorization codes? I am running the docker-compose sample setup from the repository. |
It turns out , you need |
Hello @danieladarve, could you please see if the workaround in issue #2681 solves your issue. |
Hello everyone,
I am running a dpkg install of Ansible Semaphore v2.8.92 in ubuntu 22.04 behind a nginx reverse proxy configured as suggested in the security section
I am able to click on the SSO button, login into microsoft but when the user is redirected back to the oidc return url, nothing happens, the page just seems to reload and it removes all parameters from the URL... I have tested using a different return url and i can see the token being returned in the parameters.
https://ansible-semaphore.test/api/auth/oidc/provider-name/redirect/?code=XXXXX&state=XXXXX&session_state=XXXXX
Here is what my oidc_providers config looks like:
I can see the correct scopes, and claims
Here is what my /v2.0/.well-known/openid-configuration looks like:
Ansible Semaphore Config
Nginx Configuration
In the Azure side I have tested with both
I was wondering if anyone has had success configuring Azure AD and could point me in the right direction. Additionally, I'd like to understand if there's a way for me to debug what happens after the user is redirected and lands back on the Semaphore redirect URL.
Thank you!
The text was updated successfully, but these errors were encountered: