-
Notifications
You must be signed in to change notification settings - Fork 70
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
How can I add Azure AD as auth provider in docker environment #85
Comments
You have to go to ⚙️ > Users > External. Inside the editor paste a config of the following form: {
"providers": [{
"id": "azure-oauth",
"label": "Azure SSO Login",
"provider": "azureAD",
"params": {
"tenant": "your-tenant-id",
"clientId": "your-client-id",
"clientSecret": "your-client-secret",
"callbackUrl": "your-domain/azure-oauth",
"fields": {
"username": "/email",
"groups": "/groups",
"defaultGroups": ["some-group"]
},
"scopes": ["openid"]
}
}]
} You can get the tenant ID, client ID and client secret from Azure. Note: if you do not see an editor in that tab, please update Yaade. I just published a bugfix that fixed a previous version not displaying this editor.
|
Thanks, I'll check this today. Can you maybe update the base image because trivy found some critical vulnerbilities in there. |
Thank you for pointing this out. |
It works like charm. Thanks for your assistance in this case. But how the users can work in a same team. Like the example below:
Option 1 is, that the admins create the teams and add the users to the team. Team Backend should not see the content from Team Frontend of course. Is there a option or is this a feature request? |
It should be possible to configure your groups in Active Directory. You can add your users to a specific group (e.g. "Team Backend", "Team Frontend"). https://learn.microsoft.com/en-us/azure/active-directory/hybrid/connect/how-to-connect-fed-group-claims Now what you need to do is configure your tokens in a way that they include the groups in the Now all users that belong to a group in AD will automatically have that group assigned in yaade as well. Does that solve your problem? |
Nice, do you have an config example for me, when I have more than two groups and a default group?
check the configuration above, is this right? |
and @jonrosner as I know I can't create sub-groups in azureAD so how should the application fetch sub groups by the instruction which you told to me? Thanks for your assistance. :-) |
hey, the groups field should stay the same as I posted earlier There is currently no way to configure specific external users in Yaade itself, so you will have to do it via Azure for now. |
Hey @jonrosner we do this exactly like you describe but when I'm logged in with a new session and fresh cleared browser the group wasn't show up. What we do in azures was this below:
"Default" comes from the configuration snippet. |
Please check the JWT token and make sure that the groups are actually put into the correct field that you configured using the |
Hey @jonrosner , may you have a reliable way to debug the token? How do you debug the jwt azure token? |
you can do this via Yaade and your browser directly.
{
"token_type": "Bearer",
"scope": "profile openid email User.Read",
"expires_in": 5288,
"ext_expires_in": 5288,
"access_token": "ey....",
"id_token": "ey....
}
Unfortunately, I don't know an easier way to obtain the same access token that yaade would receive... |
Thanks @jonrosner, can you told me, is this the right permissions for the application? |
I think there is "openid" missing, right? |
I will evaluate this tomorrow in the azure AD and the jwt token. |
@jonrosner we're add also "openid" in the permissions tab but still not works for us. Maybe the migration to Entra Azure is a cause for this? For your informations, this is my jwt azure token:
|
Unfortunately I don't know the exact working of Azure AD. But basically the solution to your problem is that you need to get your groups claims into this token somehow. One thing that I see is that your claim is optional. This probably means that in your client that issues those yaade tokens you need to somehow make it required. |
Closed due to inactivity. |
Hi, we are also facing an issue when trying to configure Yaade with EntraID / AzureAD. The id_token looks like this:
We want to use the
the Groups are alwasy empty. Any suggestions? Best regards |
This looks correct. Please check those two things as well:
|
Hi, thanks for the fast response!
Best regards |
Does the email field work correctly? When logging in via OIDC open the Settings and go to account. Check if the Username displayed there matches your email. |
Thanks, I was able to replicate it. I will push a fix asap. |
I added a fix for this. Can you pull the nightly container and check if it works? |
Hello Contributors,
how can I add Azure AD (https://docs.yaade.io/users-groups.html#azuread) in my running docker environment as auth provider? It's possible for you to give me a exact path and config file / snippet to configure this auth provider?
Thanks.
The text was updated successfully, but these errors were encountered: