Skip to content

web/flow: add a “showable password” to the available PromptStage control types - #27535

Merged
kensternberg-authentik merged 20 commits into
mainfrom
web/flow/showable-password-prompt-field
Nov 25, 2026
Merged

kensternberg-authentik merged 20 commits into
mainfrom
web/flow/showable-password-prompt-field

Conversation

@kensternberg-authentik

@kensternberg-authentik kensternberg-authentik commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

web/flow: add a “showable password” to the available PromptStage control types

Description

This commit introduces a “showable password for prompt stage prompts” component.

Server:

  • Add the type to the model
  • Hunt down where in the Prompt stage the PASSWORD prompt is checked, and make it PASSWORD || SHOWABLE_PASSWORD
  • Added tests to validate that the showable password behaves exactly the same way the regular one does, on the Django side.

Front-end

  • Add the new ak-prompt-showable-password component.
  • Add the new PromptType enum to PromptForm.
  • Add the new PromptType renderer to PromptStage

Linked issues

Closes #27050


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.

…rol types

## Description

This commit introduces a “showable password for prompt stage prompts” component.

### Server:

- Add the type to the model
- Hunt down where in the Prompt stage the `PASSWORD` prompt is checked, and make it `PASSWORD || SHOWABLE_PASSWORD`
- Added (some**¹**) tests.

**¹** The tests currently only check that the field can be instantiated. I wasn’t sure how to test if they were functionally equivalent to the regular Password fields without writing a whole collection of parallel tests, which I didn’t think was an optimal solution either.

### Front-end

- Add the new `ak-prompt-showable-password` component.
- Add the new PromptType enum to `PromptForm`.
- Add the new PromptType renderer to `PromptStage`
Comment thread authentik/stages/prompt/tests.py Fixed
Comment thread authentik/stages/prompt/tests.py Fixed
@kensternberg-authentik
kensternberg-authentik marked this pull request as ready for review November 3, 2026 16:28
@codecov

codecov Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.33%. Comparing base (006ca6b) to head (5333db2).
⚠️ Report is 12 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #27535      +/-   ##
==========================================
- Coverage   93.34%   93.33%   -0.01%     
==========================================
  Files        1251     1251              
  Lines       89819    89821       +2     
  Branches     4967     4967              
==========================================
- Hits        83839    83837       -2     
- Misses       5915     5919       +4     
  Partials       65       65              
Flag Coverage Δ
conformance 29.52% <66.66%> (+<0.01%) ⬆️
e2e 34.00% <100.00%> (-0.01%) ⬇️
integration 27.16% <66.66%> (+0.01%) ⬆️
rust 52.04% <ø> (ø)
unit 94.80% <100.00%> (+<0.01%) ⬆️
unit-migrate 94.81% <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.

Comment thread authentik/stages/prompt/models.py Resolved
Comment thread authentik/stages/prompt/tests.py Resolved
@netlify

netlify Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 5333db2
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6b071b8a1a5795aca16e056d
😎 Deploy Preview https://deploy-preview-27535--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 Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

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

gh run download 45665745438 -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-5333db25e59e6ea53dfb61401b2918530360771d
# Distroless image: AUTHENTIK_TAG=gh-5333db25e59e6ea53dfb61401b2918530360771d-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-5333db25e59e6ea53dfb61401b2918530360771d
        # Distroless image: tag: gh-5333db25e59e6ea53dfb61401b2918530360771d-distroless

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

* main: (63 commits)
  web: bump shell-quote from 1.9.0 to 1.12.0 (#27531)
  web/admin: allow adding source to identification stage after creation (#27485)
  web: bump @xmldom/xmldom from 0.8.13 to 0.8.15 in /web (#27520)
  web: bump source-map-js from 1.2.1 to 1.2.2 (#27523)
  web: bump follow-redirects from 1.16.0 to 1.16.2 (#27524)
  web: bump joi from 17.13.4 to 17.13.9 (#27525)
  web: bump smol-toml from 1.8.0 to 1.9.1 (#27526)
  web: bump markdown-it from 14.3.0 to 14.3.3 (#27528)
  web: bump fast-uri from 3.1.8 to 3.1.9 (#27529)
  web: bump image-size from 2.0.2 to 2.0.4 (#27530)
  web: bump proxy-addr from 2.0.7 to 2.0.8 (#27532)
  web: bump compression from 1.8.1 to 1.8.2 (#27533)
  web: bump fast-copy from 4.0.3 to 4.3.1 (#27534)
  web/admin: add user app entitelments screen (#24734)
  providers/saml: reject malformed requests with a 400 instead of a server error (#27153)
  common/saml: Improve certificate filtering (#27445)
  web/admin: add next steps in app wizard (#27470)
  enterprise/providers/ssf: fix credential change event sent when using authenticator during sign in (#27519)
  rbac: custom permissions (#27051)
  ci: run the distroless image tests with FIPS enabled (#27303)
  ...
…assword-prompt-field' into web/flow/showable-password-prompt-field

* refs/remotes/origin/web/flow/showable-password-prompt-field:
…e PasswordViewable fields are not being tested beyond simple instantiation.
Comment thread authentik/stages/prompt/tests.py Fixed
Comment thread authentik/stages/prompt/tests.py Fixed

@GirlBossRush GirlBossRush 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.

Minor tweaks but otherwise looks like a perfect addition! 👏🏻 👏🏻

Signed-off-by: Jens Langhammer <[email protected]>
@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 5333db2
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6b071b8aa6d5de1dbd60ef62
😎 Deploy Preview https://deploy-preview-27535--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 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 5333db2
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6b071b8adcf7c59b5fa87126
😎 Deploy Preview https://deploy-preview-27535--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.

Co-authored-by: Teffen Ellis <[email protected]>
Signed-off-by: Ken Sternberg <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
Signed-off-by: Ken Sternberg <[email protected]>
* main: (158 commits)
  website/integrations: document ezbookkeeping username format (#27831)
  core: bump twilio from 9.12.0 to 9.13.0 (#27872)
  core: bump watchdog from 7.0.0 to 7.1.0 (#27876)
  core: bump ruff from 0.17.4 to 0.17.5 (#27870)
  core: bump importlib-metadata from 10.1.0 to 10.2.0 (#27875)
  core: bump cachetools from 7.3.0 to 7.3.1 (#27873)
  core: bump goauthentik/fips-python from `4ad62df` to `96730cd` in /lifecycle/container (#27868)
  core: bump goauthentik/fips-debian from `2c0f8e5` to `56dbb46` in /lifecycle/container (#27867)
  web: enable Danish (da-DK) locale (#26776)
  website/docs: add expiring users to release notes (#27860)
  enterprise/endpoints/connectors/agent: fix Platform SSO web login (#27858)
  providers/saml: show users a generic error message and log details; make translatable (#27013)
  core: bump psycopg[c,pool] from 3.3.8 to 3.3.9 (#27848)
  core: bump watchdog from 6.0.0 to 7.0.0 (#27846)
  core: bump hyper-unix-socket from 0.7.0 to 0.8.0 (#27845)
  core: bump library/node from 26.13.0-trixie-slim to 26.13.1-trixie-slim in /lifecycle/container (#27839)
  ci: bump getsentry/action-release from 3.7.2 to 3.8.0 (#27842)
  core: bump goauthentik/fips-python from `f4eb865` to `4ad62df` in /lifecycle/container (#27837)
  core: bump jsonpatch from 1.43 to 1.44 (#27843)
  core: bump types-ldap3 from 2.9.13.20260827 to 2.9.13.20261107 in the types group (#27836)
  ...
* main:
  website/integrations: add Radarr (#27882)
  ci: ignore unmaintained chrono and humantime advisories (#27886)
Signed-off-by: Jens Langhammer <[email protected]>

@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.

backend approve

* main: (157 commits)
  web/maint: upgrade ak-label (#24265)
  web: bump jquery from 3.7.1 to 3.8.0 in /web (#28106)
  core: bump goauthentik/selenium from 155.0-ak-0.73.0 to 156.0-ak-0.73.1 in /tests/e2e (#28092)
  core: bump goauthentik/fips-python from `35f881a` to `bd582ea` in /lifecycle/container (#28096)
  core: bump goauthentik/fips-debian from `137514c` to `afdcf15` in /lifecycle/container (#28093)
  web/maintenance: remove Patternfly background-image CSS (#27760)
  Web/bugs/icon maintenance 2 (#27889)
  Web/spike/icon identification (#27888)
  root: tidy the generated release changelog (#28079)
  ci: leave rust build-warnings setting default (#28080)
  outposts: close docker client connection on exit (#28067)
  core: bump goauthentik/fips-debian from `7c0cb03` to `137514c` in /lifecycle/container (#28043)
  ci: bump the codeql group across 1 directory with 3 updates (#28045)
  core: bump coverage[toml] from 7.17.3 to 7.17.4 (#28047)
  core: bump pyyaml from 6.0.3 to 6.0.4 (#28048)
  web: bump styleframe from 3.9.1 to 3.9.2 (#28055)
  web: bump @styleframe/theme from 3.8.1 to 3.10.0 (#28058)
  web: bump launch-editor from 2.14.1 to 2.14.2 (#28070)
  web: bump launch-editor from 2.14.1 to 2.14.2 in /website (#28072)
  web: bump uuid from 14.0.1 to 14.0.3 in /website (#28073)
  ...
@kensternberg-authentik
kensternberg-authentik merged commit a2149b6 into main Nov 25, 2026
291 of 293 checks passed
@kensternberg-authentik
kensternberg-authentik deleted the web/flow/showable-password-prompt-field branch November 25, 2026 19:07
kensternberg-authentik added a commit that referenced this pull request Nov 25, 2026
* main: (35 commits)
  web/elements: expansion toggle and summary/disclosure component that uses it (#26175)
  web: bump mdast-util-from-markdown from 2.0.3 to 2.1.0 (#28103)
  web: bump maplibre-gl from 6.18.0 to 6.19.0 in /web (#28105)
  core, web: update translations (#28090)
  core: bump goauthentik/platform-ssh from 26.04-ak-0.73.0 to 26.04-ak-0.73.1 in /tests/e2e (#28094)
  core: bump astral-sh/uv from 0.13.9 to 0.13.10 in /lifecycle/container (#28095)
  ci: bump taiki-e/install-action from 2.90.6 to 2.90.8 in /.github/actions/setup (#28097)
  core: bump geoip2 from 5.3.0 to 5.4.0 (#28098)
  core: bump selenium from 4.52.0 to 4.53.0 (#28099)
  core: bump watchdog from 7.1.0 to 7.1.1 (#28100)
  core: bump gunicorn from 26.2.0 to 27.0.0 (#28101)
  security: automated internal backport of patch 2244-notification-hyperlink-scheme.sec.patch to authentik-main (#28140)
  security: automated internal backport of patch 2243-event-email-preview.sec.patch to authentik-main (#28139)
  blueprints: fix default invalidation flow title (#28149)
  web/elements: Make the AttributeView “Copy This” icon theme-responsive (#28145)
  web/flow: add a “showable password” to the available PromptStage control types (#27535)
  security: automated internal backport of patch 2349-sms-override.sec.patch to authentik-main (#28142)
  security: automated internal backport of patch 1987-nginx-forward-auth-path-normalisation.sec.patch to authentik-main (#28136)
  security: automated internal backport of patch 2044-jwt-federation-user-matching.sec.patch to authentik-main (#28137)
  security: automated internal backport of patch 1819-forward-auth-allowlist.sec.patch to authentik-main (#28134)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option for hide/show button on password field in prompt stage

3 participants