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

Ability to display avatar/thumbnail using UserAvatarResolver extension #512

Open
jonesbusy opened this issue Jan 21, 2025 · 0 comments
Open

Comments

@jonesbusy
Copy link

What feature do you want to see added?

Hi,

This is a feature request but I'm not sure if it's something that must be implemented on this plugin or an other plugin depending on oic-auth

I'm using oic-auth with keycloak IDP and it works perfectly.

Keycloak is setup with a LDAP federation that synchronize the users and groups. Each user as LDAP attribute thumbnailPhoto which is mapped on the IDP with a user attribute thumbnailPhoto (binary, base64) which is then mapped on the user profile API as thumbnail. It's not added on the access

The user profile API return then something like

https:///realms//protocol/openid-connect/userinfo

{
    "email": "*****",
    "email_verified": true,
    "family_name": "DELAYE",
    "given_name": "Valentin",
    "groups": [
        "group1",
        "group2"
    ],
    "name": "Valentin DELAYE",
    "preferred_username": "****",
    "sub": "***",
    "thumbnail": "<base64encoded PNG>"
}

Is it possible to use the thumbnail attribute to display and avatar on the profile?

Jenkins provide provide an extension point https://www.jenkins.io/doc/developer/extensions/jenkins-core/#useravatarresolver

It's currently implemented by 2 plugins only (gravatar and avatar (which looks abandonned))

Also more details on UI here : jenkinsci/jenkins#10180

Thanks!

Upstream changes

No response

Are you interested in contributing this feature?

Yes, why not. But not sure if on this plugin or an other extension

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

No branches or pull requests

1 participant