Skip to content

tests/e2e: WebAuthn E2E tests#14461

Merged
BeryJu merged 6 commits intomainfrom
tests/e2e/webauthn
Jun 7, 2025
Merged

tests/e2e: WebAuthn E2E tests#14461
BeryJu merged 6 commits intomainfrom
tests/e2e/webauthn

Conversation

@BeryJu
Copy link
Member

@BeryJu BeryJu commented May 10, 2025

Details

E2E tests of WebAuthn registration and authentication

todo:

  • authentication
  • SFE

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 website)

@BeryJu BeryJu requested a review from a team as a code owner May 10, 2025 01:00
@netlify
Copy link

netlify bot commented May 10, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit b6128ea
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6843e661e911a900089dd317
😎 Deploy Preview https://deploy-preview-14461--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
Copy link

netlify bot commented May 10, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit b6128ea
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6843e661b0b720000815b071

@codecov
Copy link

codecov bot commented May 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.79%. Comparing base (b7417e7) to head (b6128ea).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14461      +/-   ##
==========================================
- Coverage   92.85%   92.79%   -0.07%     
==========================================
  Files         818      818              
  Lines       42196    42196              
==========================================
- Hits        39180    39154      -26     
- Misses       3016     3042      +26     
Flag Coverage Δ
e2e 47.72% <ø> (+0.04%) ⬆️
integration 24.45% <ø> (ø)
unit 90.68% <ø> (-0.01%) ⬇️

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.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented May 10, 2025

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

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

@BeryJu BeryJu force-pushed the tests/e2e/webauthn branch from 07ff98e to 565046e Compare May 28, 2025 11:10
@BeryJu BeryJu marked this pull request as draft May 28, 2025 11:45
BeryJu added 3 commits June 7, 2025 08:49
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu force-pushed the tests/e2e/webauthn branch from 565046e to 1d17f50 Compare June 7, 2025 06:50
BeryJu added 3 commits June 7, 2025 09:11
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu marked this pull request as ready for review June 7, 2025 07:12
@BeryJu BeryJu requested a review from a team as a code owner June 7, 2025 07:12
@BeryJu BeryJu merged commit baa4ded into main Jun 7, 2025
100 checks passed
@BeryJu BeryJu deleted the tests/e2e/webauthn branch June 7, 2025 07:31
cavefire pushed a commit to cavefire/authentik that referenced this pull request Jun 24, 2025
* a start of webauthn testing

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* separate file, just do it via localhost

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* remove unneeded stuff

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* add auth and sfe tests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* auto select device challenge if only 1

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* revert a thing

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
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.

2 participants