Skip to content

Support passkey in custom prompts#1462

Draft
bkiran6398 wants to merge 2 commits intomainfrom
DXCDT-1509/passkey_custom_prompt
Draft

Support passkey in custom prompts#1462
bkiran6398 wants to merge 2 commits intomainfrom
DXCDT-1509/passkey_custom_prompt

Conversation

@bkiran6398
Copy link
Contributor

🔧 Changes

Adds support for the passkeys prompt (passkey-enrollment and passkey-enrollment-local screens) across the CLI:

  • auth0 ul customize — the Partials tab now fetches, displays, and saves partials for both passkeys screens. The browser editor dropdown includes passkeys as a selectable prompt. Previously, passkeys partials were silently excluded even when configured on the tenant.
  • auth0 tf generate — now emits auth0_prompt_screen_partial.passkeys_passkey_enrollment and auth0_prompt_screen_partial.passkeys_passkey_enrollment_local Terraform resources when passkeys partials are configured.
  • Updated the embedded Universal Login branding UI (ulp-branding-app) to include passkeys in the list of partials-supported prompts, making the screens selectable in the editor dropdown.

📚 References

🔬 Testing

Automated tests:

  • Updated TestFetchUniversalLoginBrandingData and TestFetchAllPartials tests with passkey test data.

Manual — auth0 ul customize:

  • Ran auth0 ul customize and verified passkeys appears in the prompt dropdown with passkey-enrollment and passkey-enrollment-local as selectable screens.
  • Added HTML to an insertion point, save, and confirm it persists via the Management API.

Manual — auth0 tf generate:

  • Ran auth0 tf generate
  • Verified auth0_prompt_screen_partial.passkeys_passkey_enrollment_local and auth0_prompt_screen_partial.passkeys_passkey_enrollment appear in the generated Terraform resources.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

- Introduced "passkeys" to the screenPartialPromptToScreenMap in terraform_fetcher.go.
- Updated allowedPromptsWithPartials in universal_login_customize.go to include management.PromptPasskeys.
- Enhanced test cases in universal_login_customize_test.go to validate the new passkeys prompt integration.
- This change allows for better handling of passkey-related prompts in the authentication flow.
…p-branding-app

- Added passkeys in ulp-branding-app before running `make assets`
@bkiran6398
Copy link
Contributor Author

Integration test ✗ [terraform-test-cases.yaml] [local] '002.1 - it successfully runs for all default resources', on property 'Stderr' succeeds once relevant terraform provider update is released.

@bkiran6398
Copy link
Contributor Author

Updating passkey prompts using auth0-cli:

image

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.

1 participant