Skip to content

providers/oauth2: only expose URL-based avatars as picture claim (cherry-pick #26080 to version-2026.8) - #26089

Merged
BeryJu merged 1 commit into
version-2026.8from
cherry-pick/26080-to-version-2026.8
Sep 14, 2026
Merged

BeryJu merged 1 commit into
version-2026.8from
cherry-pick/26080-to-version-2026.8

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

Cherry-pick of #26080 to version-2026.8 branch.

Original PR: #26080
Original Author: @Tyagiquamar
Cherry-picked commit: 2e85913

)

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
@netlify

netlify Bot commented Sep 13, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 08ec6fc
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6aa6b94da30b80000888b85f
😎 Deploy Preview https://deploy-preview-26089--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Sep 13, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 08ec6fc
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6aa6b94d2185aa0008a6d9b9
😎 Deploy Preview https://deploy-preview-26089--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.82%. Comparing base (18fb619) to head (08ec6fc).
✅ All tests successful. No failed tests found.

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              
Flag Coverage Δ
conformance 33.89% <ø> (ø)
e2e 38.55% <ø> (+0.20%) ⬆️
integration 30.53% <ø> (+<0.01%) ⬆️
rust 42.92% <ø> (ø)
unit 93.37% <ø> (+<0.01%) ⬆️
unit-migrate 93.39% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

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)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-08ec6fc59461725adb75cef8fc92837bd906ee1d

Afterwards, run the upgrade commands from the latest release notes.

@BeryJu
BeryJu merged commit b4392ba into version-2026.8 Sep 14, 2026
138 checks passed
@BeryJu
BeryJu deleted the cherry-pick/26080-to-version-2026.8 branch September 14, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants