Skip to content

stages/authenticator_duo: clarify duplicate Duo user enrollment - #23588

Merged
dominic-r merged 1 commit into
mainfrom
sdko/duo-existing-user-error
Jul 2, 2026
Merged

dominic-r merged 1 commit into
mainfrom
sdko/duo-existing-user-error

Conversation

@dominic-r

@dominic-r dominic-r commented Jul 2, 2026 •

Copy link
Copy Markdown
Member

Duo enrollment fails with a raw API error when the Duo Auth API reports that the username already exists. This changes the flow-facing error to explain that the existing Duo authenticator must be imported by an administrator or the Duo user removed before enrollment, while preserving the detailed Duo response in the configuration error event for operators.

Closes: #22822

@dominic-r dominic-r self-assigned this Jul 2, 2026
@dominic-r
dominic-r marked this pull request as ready for review July 2, 2026 02:54
@dominic-r
dominic-r requested a review from a team as a code owner July 2, 2026 02:54
@codecov

codecov Bot commented Jul 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.19%. Comparing base (5e8b366) to head (faf74e1).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/stages/authenticator_duo/stage.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23588      +/-   ##
==========================================
- Coverage   93.22%   93.19%   -0.04%     
==========================================
  Files        1039     1039              
  Lines       60848    60865      +17     
  Branches      424      424              
==========================================
- Hits        56727    56721       -6     
- Misses       4121     4144      +23     
Flag Coverage Δ
conformance 36.30% <16.66%> (-0.01%) ⬇️
e2e 41.49% <16.66%> (-0.01%) ⬇️
integration 32.24% <16.66%> (-0.50%) ⬇️
rust 0.00% <ø> (ø)
unit 92.30% <94.44%> (+<0.01%) ⬆️
unit-migrate 92.34% <94.44%> (+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 Jul 2, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

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

@github-actions

github-actions Bot commented Jul 2, 2026

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-faf74e1ae5ff5e2862ac7e2d9a24b5aef3a4d281
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-faf74e1ae5ff5e2862ac7e2d9a24b5aef3a4d281

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 Jul 2, 2026
@dominic-r
dominic-r merged commit 1b7110a into main Jul 2, 2026
111 checks passed
@dominic-r
dominic-r deleted the sdko/duo-existing-user-error branch July 2, 2026 14:11
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Jul 2, 2026
kensternberg-authentik added a commit that referenced this pull request Jul 2, 2026
* main: (49 commits)
  core: bump goauthentik/fips-python from `e97a4f9` to `949684a` in /lifecycle/container (#23609)
  web: bump @types/node from 25.9.1 to 25.9.4 (#23613)
  web: bump semver from 7.8.1 to 7.8.5 in /web (#23615)
  website/integrations: Drupal: cleanup (#23068)
  website/docs: document Duo existing-user enrollment limit (#23589)
  stages/authenticator_duo: clarify duplicate Duo user enrollment (#23588)
  web: bump storybook from 10.4.2 to 10.4.6 in /web in the storybook group across 1 directory (#23605)
  ci: bump golangci/golangci-lint-action from 9.2.1 to 9.3.0 (#23599)
  root, web, docs: Update pnpm to 11.9.0 (#23582)
  website: bump docusaurus-theme-openapi-docs from 5.0.2 to 5.1.0 in /website (#23594)
  core: bump goauthentik/fips-python from `3b0f3fb` to `e97a4f9` in /lifecycle/container (#23595)
  core: bump arc-swap from 1.9.1 to 1.9.2 (#23598)
  ci: bump taiki-e/install-action from 2.82.5 to 2.82.6 in /.github/actions/setup (#23601)
  web: bump the eslint group across 2 directories with 4 updates (#23604)
  web/admin: maint/clean ldap source connectivity (#22941)
  web: bump the bundler group across 2 directories with 6 updates (#23606)
  ci: bump pnpm/action-setup from 4.1.0 to 6.0.9 (#23600)
  ci: bump gerlero/apt-install from 1.3.11 to 1.3.12 in /.github/actions/setup (#23603)
  ci: bump pnpm/action-setup from 4.1.0 to 6.0.9 in /.github/actions/setup (#23602)
  website/integrations: Amazon Business: cleanup (#23285)
  ...
kensternberg-authentik added a commit that referenced this pull request Jul 2, 2026
* web/css/enabling-layers: (73 commits)
  core: bump goauthentik/fips-python from `e97a4f9` to `949684a` in /lifecycle/container (#23609)
  web: bump @types/node from 25.9.1 to 25.9.4 (#23613)
  web: bump semver from 7.8.1 to 7.8.5 in /web (#23615)
  website/integrations: Drupal: cleanup (#23068)
  website/docs: document Duo existing-user enrollment limit (#23589)
  stages/authenticator_duo: clarify duplicate Duo user enrollment (#23588)
  web: bump storybook from 10.4.2 to 10.4.6 in /web in the storybook group across 1 directory (#23605)
  ci: bump golangci/golangci-lint-action from 9.2.1 to 9.3.0 (#23599)
  root, web, docs: Update pnpm to 11.9.0 (#23582)
  website: bump docusaurus-theme-openapi-docs from 5.0.2 to 5.1.0 in /website (#23594)
  core: bump goauthentik/fips-python from `3b0f3fb` to `e97a4f9` in /lifecycle/container (#23595)
  core: bump arc-swap from 1.9.1 to 1.9.2 (#23598)
  ci: bump taiki-e/install-action from 2.82.5 to 2.82.6 in /.github/actions/setup (#23601)
  web: bump the eslint group across 2 directories with 4 updates (#23604)
  web/admin: maint/clean ldap source connectivity (#22941)
  web: bump the bundler group across 2 directories with 6 updates (#23606)
  ci: bump pnpm/action-setup from 4.1.0 to 6.0.9 (#23600)
  ci: bump gerlero/apt-install from 1.3.11 to 1.3.12 in /.github/actions/setup (#23603)
  ci: bump pnpm/action-setup from 4.1.0 to 6.0.9 in /.github/actions/setup (#23602)
  website/integrations: Amazon Business: cleanup (#23285)
  ...
kensternberg-authentik added a commit that referenced this pull request Jul 2, 2026
…-3-vendoring

* web/css/enabling-layers-2: (65 commits)
  core: bump goauthentik/fips-python from `e97a4f9` to `949684a` in /lifecycle/container (#23609)
  web: bump @types/node from 25.9.1 to 25.9.4 (#23613)
  web: bump semver from 7.8.1 to 7.8.5 in /web (#23615)
  website/integrations: Drupal: cleanup (#23068)
  website/docs: document Duo existing-user enrollment limit (#23589)
  stages/authenticator_duo: clarify duplicate Duo user enrollment (#23588)
  web: bump storybook from 10.4.2 to 10.4.6 in /web in the storybook group across 1 directory (#23605)
  ci: bump golangci/golangci-lint-action from 9.2.1 to 9.3.0 (#23599)
  root, web, docs: Update pnpm to 11.9.0 (#23582)
  website: bump docusaurus-theme-openapi-docs from 5.0.2 to 5.1.0 in /website (#23594)
  core: bump goauthentik/fips-python from `3b0f3fb` to `e97a4f9` in /lifecycle/container (#23595)
  core: bump arc-swap from 1.9.1 to 1.9.2 (#23598)
  ci: bump taiki-e/install-action from 2.82.5 to 2.82.6 in /.github/actions/setup (#23601)
  web: bump the eslint group across 2 directories with 4 updates (#23604)
  web/admin: maint/clean ldap source connectivity (#22941)
  web: bump the bundler group across 2 directories with 6 updates (#23606)
  ci: bump pnpm/action-setup from 4.1.0 to 6.0.9 (#23600)
  ci: bump gerlero/apt-install from 1.3.11 to 1.3.12 in /.github/actions/setup (#23603)
  ci: bump pnpm/action-setup from 4.1.0 to 6.0.9 in /.github/actions/setup (#23602)
  website/integrations: Amazon Business: cleanup (#23285)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

DUO Authenticator Setup Stage fails if user already exists in DUO

2 participants