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

Add Azure (EntraID) OIDC Example #40

Merged
merged 1 commit into from
Jun 30, 2024
Merged

Conversation

RyanGelinas
Copy link
Contributor

Add example for Azure OIDC login, as documented by @xfact-joseph-p in semaphoreui/semaphore#1434, which worked for me

Copy link
Collaborator

@tboerger tboerger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is incomplete, it should also require scopes.

@RyanGelinas
Copy link
Contributor Author

That's the exact config I used in my working setup. I suspect there is a default scope that is enough for Semaphore. The examples for Authelia, Gitlab, Keycloak and Okta don't include a scopes definition either.

@tboerger
Copy link
Collaborator

I had to define this configuration for getting everything working properly:

        "azuread": {
            "icon": "microsoft",
            "display_name": "Sign in with EntraID",
            "client_id": "REDACTED",
            "client_secret": "REDACTED",
            "redirect_url": "http://localhost:3000/api/auth/oidc/azuread/redirect",
            "endpoint": {
                "issuer": "https://login.microsoftonline.com/*tenantid*/v2.0",
                "auth": "https://login.microsoftonline.com/*tenantid*/oauth2/v2.0/authorize",
                "token": "https://login.microsoftonline.com/*tenantid*/oauth2/v2.0/token",
                "userinfo": "https://graph.microsoft.com/oidc/userinfo",
                "jwks": "https://login.microsoftonline.com/*tenantid*/discovery/v2.0/keys"
            },
            "scopes": [
                "openid",
                "email",
                "profile",
                "User.Read"
            ]
        }

@fiftin fiftin merged commit d03c75c into semaphoreui:main Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants