Skip to content

Add a fallback case when parsing the avatar attribute#1433

Merged
julien-nc merged 1 commit intomainfrom
enh/1423/unprefixed-base64-avatar
Apr 29, 2026
Merged

Add a fallback case when parsing the avatar attribute#1433
julien-nc merged 1 commit intomainfrom
enh/1423/unprefixed-base64-avatar

Conversation

@julien-nc
Copy link
Copy Markdown
Member

@julien-nc julien-nc commented Apr 29, 2026

When the avatar attribute is not a URL and is not prefixed with data:image/{jpeg,png};base64,, try to decode it as base64.

Some IdP just send non-prefixed base64 payloads.

closes #1423

… it as base64

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc requested a review from CarlSchwan April 29, 2026 09:33
@julien-nc julien-nc added enhancement New feature or request 3. to review labels Apr 29, 2026
@julien-nc
Copy link
Copy Markdown
Member Author

Approved and verified by the issue author: #1423 (comment)

@julien-nc julien-nc merged commit 219044b into main Apr 29, 2026
45 checks passed
@julien-nc julien-nc deleted the enh/1423/unprefixed-base64-avatar branch April 29, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to set avatar for user

2 participants