Skip to content

sources/saml: add audience override field for SAML sources - #25029

Merged
emilburzo merged 1 commit into
mainfrom
add-audience-override
Aug 12, 2026
Merged

emilburzo merged 1 commit into
mainfrom
add-audience-override

Conversation

@emilburzo

Copy link
Copy Markdown
Member

Should we keep the name simply as Audience?

Or should we be more specific like Audience Restriction or Audience URI?

@emilburzo emilburzo self-assigned this Aug 12, 2026
@emilburzo
emilburzo marked this pull request as ready for review August 12, 2026 15:11
@emilburzo
emilburzo requested a review from a team as a code owner August 12, 2026 15:11
Copilot AI lite review requested due to automatic review settings August 12, 2026 15:11
@emilburzo emilburzo added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Aug 12, 2026
@netlify

netlify Bot commented Aug 12, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 931d637
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a7c8d23c210b10008076622
😎 Deploy Preview https://deploy-preview-25029--authentik-docs.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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new configuration field on SAMLSource intended to support overriding the SAML Audience value used/expected for SAML source interactions.

Changes:

  • Add audience_override field to SAMLSource model.
  • Add Django migration to create the new database column.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
authentik/sources/saml/models.py Adds the audience_override model field (with help text).
authentik/sources/saml/migrations/0025_samlsource_audience_override.py Adds the database migration for audience_override.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread authentik/sources/saml/models.py Resolved
Comment on lines +98 to +102
audience_override = models.TextField(
blank=True,
default="",
help_text=_("Audience value this IdP sends for authentik."),
)
@codecov

codecov Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.46%. Comparing base (e5336c7) to head (931d637).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25029      +/-   ##
==========================================
- Coverage   91.49%   91.46%   -0.04%     
==========================================
  Files        1150     1150              
  Lines       72619    72620       +1     
  Branches     3875     3875              
==========================================
- Hits        66444    66420      -24     
- Misses       6140     6165      +25     
  Partials       35       35              
Flag Coverage Δ
conformance 34.69% <100.00%> (+<0.01%) ⬆️
e2e 39.36% <100.00%> (+<0.01%) ⬆️
integration 30.80% <100.00%> (-0.45%) ⬇️
rust 38.89% <ø> (ø)
unit 93.14% <100.00%> (+<0.01%) ⬆️
unit-migrate 93.16% <100.00%> (+<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.

@emilburzo emilburzo moved this to Needs review in authentik Core Aug 12, 2026
@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Aug 12, 2026
@emilburzo
emilburzo enabled auto-merge (squash) August 12, 2026 15:39
@emilburzo
emilburzo merged commit 3ff7cd6 into main Aug 12, 2026
146 checks passed
@emilburzo
emilburzo deleted the add-audience-override branch August 12, 2026 15:41
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Aug 12, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #25033

@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-931d63745da2d3ab1678a7855ed6ac599fa581ad
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-931d63745da2d3ab1678a7855ed6ac599fa581ad

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

emilburzo added a commit that referenced this pull request Aug 12, 2026
#25029 to version-2026.8) (#25033)

sources/saml: add audience override field for SAML sources (#25029)

Co-authored-by: Emil Burzo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants