Skip to content

website/docs: document exchanging a token for a SAML response - #27311

Merged
dominic-r merged 3 commits into
mainfrom
dominic/docs-saml-token-exchange
Oct 29, 2026
Merged

dominic-r merged 3 commits into
mainfrom
dominic/docs-saml-token-exchange

Conversation

@dominic-r

Copy link
Copy Markdown
Member

Details

What does this PR change?

Adds a section to the token exchange docs on requesting a SAML response with requested_token_type=urn:ietf:params:oauth:token-type:saml2. It covers how audience selects the SAML provider's application, the response fields, which SAML provider settings shape the response, the Federated OAuth2/OpenID Providers trust on the SAML provider, and the errors returned when a requirement isn't met. It also lists the new requested token type and where the setting lives on a SAML provider.

Why is this change needed?

#27135 added token exchange for SAML responses, mainly so that services can call AWS AssumeRoleWithSAML, but nothing documents how to request one or how to set up the trust.

How was this tested?

Checked each statement against token_exchange.py, the token view, and test_token_exchange_saml.py, including the invalid_target and invalid_grant cases and the SAML provider form label. I did not build the docs locally.

Linked issues

refs #27135


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

@dominic-r dominic-r added this to the Release 2026.11.0 milestone Oct 28, 2026
@dominic-r dominic-r added the area:docs Features or issues related to Docusaurus label Oct 28, 2026
@dominic-r
dominic-r requested a review from a team as a code owner October 28, 2026 15:08
@dominic-r dominic-r self-assigned this Oct 28, 2026
@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.48%. Comparing base (98c4b28) to head (ffce26b).
⚠️ Report is 9 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #27311   +/-   ##
=======================================
  Coverage   92.48%   92.48%           
=======================================
  Files        1197     1197           
  Lines       81116    81153   +37     
  Branches     4497     4497           
=======================================
+ Hits        75017    75055   +38     
+ Misses       6033     6032    -1     
  Partials       66       66           
Flag Coverage Δ
conformance 31.15% <ø> (+<0.01%) ⬆️
e2e 36.01% <ø> (+<0.01%) ⬆️
integration 28.62% <ø> (+<0.01%) ⬆️
rust 45.98% <ø> (ø)
unit 94.13% <ø> (+<0.01%) ⬆️
unit-migrate 94.13% <ø> (+<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.

@netlify

netlify Bot commented Oct 28, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

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

@dewi-tik
dewi-tik requested a review from BeryJu October 28, 2026 15:19
@dominic-r
dominic-r enabled auto-merge (squash) October 28, 2026 15:27
@dominic-r
dominic-r disabled auto-merge October 28, 2026 15:28
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download this run's HTML report and traces, then open the report:

gh run download 40870614311 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-ffce26bc2fb84741fbd16d6dab580018609589a6
# Distroless image: AUTHENTIK_TAG=gh-ffce26bc2fb84741fbd16d6dab580018609589a6-distroless
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-ffce26bc2fb84741fbd16d6dab580018609589a6
        # Distroless image: tag: gh-ffce26bc2fb84741fbd16d6dab580018609589a6-distroless

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

@dominic-r
dominic-r requested a review from BeryJu October 29, 2026 12:06
@dominic-r
dominic-r enabled auto-merge (squash) October 29, 2026 12:07
@dominic-r
dominic-r merged commit 612a443 into main Oct 29, 2026
171 checks passed
@dominic-r
dominic-r deleted the dominic/docs-saml-token-exchange branch October 29, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Features or issues related to Docusaurus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants