Skip to content

providers/saml: generate issuer url when provider is set on app - #18022

Merged
PeshekDotDev merged 25 commits into
mainfrom
generate-issuer-api
Apr 28, 2026
Merged

PeshekDotDev merged 25 commits into
mainfrom
generate-issuer-api

Conversation

@PeshekDotDev

Copy link
Copy Markdown
Contributor

…created

Details

Currently, the default saml provider Entity ID/issuer is authentik. This PR updates the default Entity ID to https://domain.com/application/saml/<app_slug>/


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@netlify

netlify Bot commented Nov 8, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 516d226
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69af99fd595e700008417ca9
😎 Deploy Preview https://deploy-preview-18022--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.

@netlify

netlify Bot commented Nov 8, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 293578e
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/69f119d67f1da00008336915
😎 Deploy Preview https://deploy-preview-18022--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 Nov 8, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 516d226
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69af99fd9fa68900086cb4d1
😎 Deploy Preview https://deploy-preview-18022--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.

Comment thread authentik/core/api/applications.py Resolved
@codecov

codecov Bot commented Nov 13, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.18919% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.15%. Comparing base (aed6347) to head (2f27ff3).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/providers/saml/views/sp_slo.py 0.00% 6 Missing ⚠️
authentik/providers/saml/api/providers.py 91.66% 1 Missing ⚠️
...hentik/providers/saml/processors/logout_request.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18022      +/-   ##
==========================================
- Coverage   93.17%   93.15%   -0.02%     
==========================================
  Files        1016     1016              
  Lines       58091    58143      +52     
  Branches      327      327              
==========================================
+ Hits        54126    54165      +39     
- Misses       3965     3978      +13     
Flag Coverage Δ
conformance 36.67% <17.56%> (-0.02%) ⬇️
e2e 42.56% <29.72%> (-0.01%) ⬇️
integration 33.63% <17.56%> (-0.02%) ⬇️
rust 0.00% <ø> (ø)
unit 91.97% <86.48%> (-0.01%) ⬇️
unit-migrate 92.00% <86.48%> (-0.02%) ⬇️

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

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

@github-actions

github-actions Bot commented Nov 13, 2025 •

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-2f27ff3ce489c6a8e4c34e781a15fe3f669c228b
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-2f27ff3ce489c6a8e4c34e781a15fe3f669c228b

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

Comment thread authentik/providers/saml/models.py Resolved
Comment thread authentik/providers/saml/models.py Resolved
@PeshekDotDev PeshekDotDev moved this from Todo to Needs review in authentik Core Dec 19, 2025
Comment thread authentik/providers/saml/models.py Resolved
@PeshekDotDev PeshekDotDev moved this from Needs review to In review in authentik Core Jan 6, 2026
@github-project-automation github-project-automation Bot moved this from In review to In Progress in authentik Core Feb 5, 2026
@PeshekDotDev PeshekDotDev moved this from In Progress to In review in authentik Core Feb 6, 2026
operations = [
migrations.AddField(
model_name="samlsession",
migrations.RemoveField(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should be migrations.RenameField

@BeryJu BeryJu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

aside from the migrations LGTM

@github-project-automation github-project-automation Bot moved this from In review to In Progress in authentik Core Mar 9, 2026
@BeryJu BeryJu added this to the Release 2026.5.0: Nice to have milestone Mar 9, 2026

@BeryJu BeryJu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

1 nit

return self.issuer
if self.provider.issuer_override:
return self.provider.issuer_override
return "authentik"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

common/saml/constants.py DEFAULT_ISSUER

@PeshekDotDev
PeshekDotDev merged commit a2ca19d into main Apr 28, 2026
108 of 109 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Apr 28, 2026
@PeshekDotDev
PeshekDotDev deleted the generate-issuer-api branch April 28, 2026 22:31
kensternberg-authentik added a commit that referenced this pull request Apr 29, 2026
* main: (782 commits)
  web: bump knip from 6.4.1 to 6.6.0 in /web (#21957)
  core: bump github.com/getsentry/sentry-go from 0.45.1 to 0.46.0 (#21955)
  core: bump uvicorn[standard] from 0.44.0 to 0.45.0 (#21956)
  core: bump rustls from 0.23.39 to 0.23.40 (#21958)
  core: support hashed password in users API + automated install (#18686)
  core, web: update translations (#21952)
  providers/saml: generate issuer url when provider is set on app (#18022)
  root: fix rust build with uv-installed Python (#21858)
  core: add support for hiding applications from the user dashboard (#21530)
  core: bump ruff from 0.15.11 to 0.15.12 (#21871)
  packages/ak-axum/router: add X-Powered-By to all responses (#21940)
  core: bump microsoft-kiota-serialization-form from 1.9.8 to v1.10.1 (#21909)
  core: bump pytest-randomly from 4.0.1 to 4.1.0 (#21873)
  core: users/groups reduce number of database queries (#20431)
  core: bump types-channels from 4.3.0.20260408 to 4.3.0.20260421 (#21872)
  ci: bump taiki-e/install-action from 2.75.21 to 2.75.22 in /.github/actions/setup (#21877)
  core, web: update translations (#21870)
  sources/oauth: ensure user ID is returned as str (#21880)
  translate: Updates for project authentik and language no_NO (#21862)
  core: bump maxminddb from 3.0.0 to v3.1.1 (#21907)
  ...
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.

2 participants