yaade icon indicating copy to clipboard operation
yaade copied to clipboard

Unable to map Keycloak Group to Admin in Yaade

Open rafaelarcanjo opened this issue 11 months ago • 2 comments

Hi!

I searched but only found information about the default group. I couldn't find any reference to the groupsFilter value in the documentation.

My configuration is as follows:

{
    "providers": [{
        "id": "keycloak-provider",
        "label": "Login with Keycloak",
        "provider": "keycloak",
        "params": {
            "clientId": "yaade-openid",
            "clientSecret": "XXX",
            "callbackUrl": "http://localhost:9339/callback-keycloak",
            "authorizeUrl": "https://XXX/realms/master/protocol/openid-connect/auth",
            "tokenUrl": "https://XXX/realms/master/protocol/openid-connect/token",
            "site": "https://XXX/realms/master",
            "fields": {
                "username": "/preferred_username",
                "groups": "/groups",
                "defaultGroups": ["users"]
            },
            "scopes": ["openid", "email", "profile"]
        }
    }]
}

I need to map the Admin group from Keycloak to admin in Yaade.

Thank you.

rafaelarcanjo avatar Feb 14 '25 13:02 rafaelarcanjo

It should work out of the box. Did you inspect your token if it actually has the admin group in your /groups field? It must be an exact match.

jonrosner avatar Feb 15 '25 17:02 jonrosner

Yup, that worked. Thank you very much!

For anybody looking for this in the future, the way I got Yaade to work with Authentik was the following config:

{
    "providers": [{
        "id": "authentik",
        "label": "Login with Authentik",
        "provider": "oidc-discovery",
        "params": {
            "clientId": "SECRET",
            "clientSecret": "VERYLONGSECRET",
            "authorizeUrl": "https://id.myhomelab/application/o/authorize/",
            "tokenUrl": "https://id.myhomelab/application/o/token/",
            "callbackUrl": "https://yaade.myhomelab/callback-authentik",
            "site": "https://id.myhomelab/application/o/yaade/",
            "fields": {
                "username": "/preferred_username",
                "email": "/email",
                "groups": "/groups",
                "defaultGroups": ["users"]
            },
            "scopes": ["openid", "email", "profile"]
        }
    }]
}

in case it's helpful for anybody else.

Here, myhomelab is the domain I use for all of my self hosted homelab apps. So id.myhomelab is the URI for my Authentik install. Likewise, yaade.myhomelab is the URI for my Yaade installation.

This can be closed now. Again, thanks very much!

chrislea avatar May 24 '25 15:05 chrislea