nextcloud / user_oidc

OIDC connect user backend for Nextcloud
GNU Affero General Public License v3.0
82 stars 33 forks source link

Avatar not set when logging in #835

Closed Ma27 closed 2 months ago

Ma27 commented 5 months ago

So, I'm not sure if I'm misunderstanding something, but

In fact, oc_accounts shows me this:

[...] avatar":{"value":"https:\/\/host\/media\/user-avatars\/foobar.jpeg","scope":"v2-local","verified":"1"} [...]

First of all, I didn't expect the \/ escape here, but that's not what I'm up to. My problem is that the user still has the default avatar set after logging in with this configuration. I would've expected that said user has an avatar supplied from the OIDC provider now.

Am I misunderstanding something? Or is this an issue? I dug a little bit into the codebase already, so I may be able to provide a patch, but I wanted to make sure first that I'm not holding it wrong.

Nextcloud: 28.0.4 PHP: 8.2 user_oidc: 5.0.2

julien-nc commented 5 months ago

Thanks for reporting this. Avatar support cannot work in its current state.

I think supporting URLs and base64 content would be enough. What do you think?

We will properly implement it soon. I'll keep you updated.