Repository navigation
providers/oauth2: only expose URL-based avatars as picture claim (cherry-pick #26080 to version-2026.8) - #26089
Conversation
) The stock 'profile' scope mapping emitted the user's avatar as the picture claim unconditionally. With the default tenant avatar settings (gravatar,initials), any user without a Gravatar falls back to avatar_mode_generated, which returns the avatar inline as a base64 SVG data URI. Every issued ID and access token for such users carried hundreds of bytes of SVG, and there was no way to exclude it. The OIDC Core spec defines picture as the URL of the End-User's profile picture and recommends HTTPS. Only emit the claim when the avatar is an actual http(s) URL; generated data-URI avatars stay out of tokens. Gravatar and custom URL avatar modes keep working, and admins who want the data URIs can clone the mapping and customize it. Fixes #25978
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## version-2026.8 #26089 +/- ##
==================================================
+ Coverage 91.74% 91.82% +0.08%
==================================================
Files 1160 1160
Lines 74633 74633
Branches 4054 4054
==================================================
+ Hits 68471 68531 +60
+ Misses 6120 6060 -60
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-08ec6fc59461725adb75cef8fc92837bd906ee1d
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-08ec6fc59461725adb75cef8fc92837bd906ee1dAfterwards, run the upgrade commands from the latest release notes. |
Cherry-pick of #26080 to
version-2026.8branch.Original PR: #26080
Original Author: @Tyagiquamar
Cherry-picked commit: 2e85913