HomarrH
Homarr4mo ago
3 replies
Lake

OIDC User Avatars

How can i set avatars for users created with OIDC?
I couldnt see how to set the claim for the avatar. Using PocketID, there exists a
picture
claim that provides a link to the avatar url. I couldn't figure out how to setup the OIDC to read that.

So i tried to write a simple python script, but i get the error message
{
  "message": "Profile image can not be changed for users with external providers",
  "code": "FORBIDDEN",
  "data": {
    "code": "FORBIDDEN",
    "httpStatus": 403,
    "path": "user.setProfileImage",
    "zodError": null,
    "error": null
  }


So im not sure what to do next.


Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log)


Operating system

Unraid


Exact Homarr version

Version 1.39.0


Configuration (eg. docker-compose, screenshot or similar. Use
your-text
to format)


Other relevant information (eg. your devices, your browser, ...)

OIDC is
PocketID

Example result:
{
  "display_name": "Lachee",
  "email": "lake@example.com",
  "email_verified": true,
  "family_name": "N/A",
  "given_name": "Lachee",
  "name": "Lachee",
  "picture": "https://login.lakes.house/api/users/a520ae3b-c34d-4c88-8193-5c4a96f7ce2c/profile-picture.png",
  "preferred_username": "lachee",
  "sub": "a520ae3b-c34d-4c88-8193-5c4a96f7ce2c"
}
Was this page helpful?