Skip to content

providers/oauth2: track RP logins per session for logout - #26310

Merged
PeshekDotDev merged 1 commit into
mainfrom
track-oidc-sessions-for-logout
Sep 21, 2026
Merged

PeshekDotDev merged 1 commit into
mainfrom
track-oidc-sessions-for-logout

Conversation

@PeshekDotDev

Copy link
Copy Markdown
Contributor

Details

This change tracks every OIDC RP a user logs into during their session. This allows us to send a logout request to all RP's that were logged in during the user's session, regardless of the access token still being valid.

What does this PR change?

We currently only send logout requests to RP's that still have an active token with us. It is possible that our session token is inactive before the RP ends their session, so we still need to notify these RP's that authentik's session has ended.

Why is this change needed?

RP sessions can continue to exist after authentik has logged out.

How was this tested?

Via test suite and manual testing

Linked issues

Closes #25826


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.

@PeshekDotDev PeshekDotDev self-assigned this Sep 21, 2026
@PeshekDotDev
PeshekDotDev requested a review from a team as a code owner September 21, 2026 06:49
@netlify

netlify Bot commented Sep 21, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

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

@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.98%. Comparing base (fa2e86c) to head (4079496).
⚠️ Report is 19 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #26310      +/-   ##
==========================================
- Coverage   92.01%   91.98%   -0.03%     
==========================================
  Files        1175     1175              
  Lines       76288    76378      +90     
  Branches     4056     4056              
==========================================
+ Hits        70193    70259      +66     
- Misses       6053     6077      +24     
  Partials       42       42              
Flag Coverage Δ
conformance 33.47% <21.56%> (-0.02%) ⬇️
e2e 38.24% <20.58%> (-0.03%) ⬇️
integration 30.17% <10.78%> (-0.06%) ⬇️
rust 42.89% <ø> (ø)
unit 93.58% <100.00%> (+0.02%) ⬆️
unit-migrate 93.59% <100.00%> (+0.02%) ⬆️

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

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

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

gh run download 35570152539 -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-4079496983622e7ec94fbd465c8ae929a2cb5c26
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-4079496983622e7ec94fbd465c8ae929a2cb5c26

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

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Sep 21, 2026
@PeshekDotDev
PeshekDotDev enabled auto-merge (squash) September 21, 2026 16:57
@PeshekDotDev
PeshekDotDev merged commit f7fdbab into main Sep 21, 2026
237 of 239 checks passed
@PeshekDotDev
PeshekDotDev deleted the track-oidc-sessions-for-logout branch September 21, 2026 17:34
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Sep 21, 2026
@thorstenhornung1

Copy link
Copy Markdown

👍

kensternberg-authentik added a commit that referenced this pull request Sep 21, 2026
* main: (38 commits)
  providers/oauth2: track RP logins per session for logout (#26310)
  common/saml: Fix metadata to serve only the leaf of a PEM chain (#26273)
  website: bump the build group in /website with 3 updates (#26292)
  website/docs: rac: explain authorization reuse and disconnect behavior (#26288)
  core: bump astral-sh/uv from 0.12.16 to 0.12.17 in /lifecycle/container (#26294)
  sources/kerberos, sources/ldap: Save source connections when linking an existing user/group (#26059)
  core: bump goauthentik/fips-python from `863aded` to `05c6c36` in /lifecycle/container (#26295)
  core: bump library/node from `14bf3ea` to `d82e1d0` in /lifecycle/container (#26240)
  ci: bump the codeql group across 1 directory with 3 updates (#26304)
  ci: bump codecov/codecov-action from 7.1.0 to 7.1.1 in /.github/actions/test-results (#26307)
  ci: bump codecov/codecov-action from 7.1.0 to 7.1.1 (#26305)
  ci: bump taiki-e/install-action from 2.87.13 to 2.87.15 in /.github/actions/setup (#26306)
  core: bump debugpy from 1.8.21 to 1.8.22 (#26303)
  core: bump openid/conformance-suite from release-v5.3.0 to release-v5.3.1 in /tests/openid_conformance (#26301)
  core: bump jwcrypto from 1.6.0 to 1.6.1 (#26302)
  core: bump openid/conformance-suite/nginx from release-v5.3.0 to release-v5.3.1 in /tests/openid_conformance (#26300)
  core: bump ruff from 0.16.7 to 0.16.8 (#26299)
  core: bump sentry-sdk from 2.69.1 to 2.69.2 (#26298)
  core: bump goauthentik/selenium from 151.0-ak-0.61.0 to 152.0-ak-0.62.0 in /tests/e2e (#26293)
  website/docs: fix two word-swap typos (#26283)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Back-channel logout is only delivered while an access token for the RP is unexpired

3 participants