Repository navigation
web/flow: add a “showable password” to the available PromptStage control types - #27535
Conversation
…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`
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Playwright e2eDownload 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-reportInstallation instructionsInstructions for docker-composeAdd the following block to your 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)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your 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-distrolessAfterwards, 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.
GirlBossRush
left a comment
There was a problem hiding this comment.
Minor tweaks but otherwise looks like a perfect addition! 👏🏻 👏🏻
Signed-off-by: Jens Langhammer <[email protected]>
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
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) ...
Signed-off-by: Jens Langhammer <[email protected]>
* 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) ...
* 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) ...
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:
PASSWORDprompt is checked, and make itPASSWORD || SHOWABLE_PASSWORDFront-end
ak-prompt-showable-passwordcomponent.PromptForm.PromptStageLinked issues
Closes #27050
Checklist
make all)make docs)