OIDC with Github #1631
Replies: 9 comments 21 replies
-
Have you configured Semaphore to use a path in the web root by any chance? ie xyz.com/semaphore instead of just xyz.com? |
Beta Was this translation helpful? Give feedback.
-
@hmoffatt I don't believe so. Is there any specific snippet of the config you would like to see? Maybe can help lead you in the right direction? |
Beta Was this translation helpful? Give feedback.
-
I only asked because I noticed that OpenID Connect login is broken when you use a path component. I fixed this in #1572 I have not tried using OIDC with GitHub so I don't think I can offer any help otherwise. |
Beta Was this translation helpful? Give feedback.
-
Yes, I have:
|
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue as @Alex-Giaquinto and have only been able to properly register/authenticate via GitHub after changing the claim reading behavior which you can see at #1720. After this change I'm able to login, get a right Username and "just" a wrong mail address as GitHub doesn't respond with any mail address at all. That's why I have added the [email protected] addres as a fallback. Edit: Without the PR I was getting this while logging in from GitHub:
|
Beta Was this translation helpful? Give feedback.
-
With the latest version the GitHub authentication should be fixed :) |
Beta Was this translation helpful? Give feedback.
-
@tboerger still getting a 502. I am going to supply everything I can hopefully you can help! Upgraded to v2.9.45. Config
Github OAuth Settings Would love to stop working on this, so if you find anything. Please call it out! |
Beta Was this translation helpful? Give feedback.
-
Please try new BETA version: https://github.com/ansible-semaphore/semaphore/releases/tag/v2.9.46-beta |
Beta Was this translation helpful? Give feedback.
-
@tboerger @fiftin so I gave that version a try. I am now receiving this error.
Do I need to change my config at all? |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is the right place for this, but does anyone have a working example of how to set up OIDC authentication with Github? I saw that it is working on the demo provided in the README, but having trouble getting it up on my end. I just upgraded to version 2.9.37, the button appears when I add the OIDC config to the config.js according to the documentation. But when I click the button the page just basically refreshes and I am back on the login screen. If anyone has an idea it would be super helpful!!! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions