Skip to content

Android: Add simple creation and attestation of a credential#3

Merged
mariobodemann merged 2 commits into
mainfrom
android/add-credential-create
Jun 18, 2026
Merged

Android: Add simple creation and attestation of a credential#3
mariobodemann merged 2 commits into
mainfrom
android/add-credential-create

Conversation

@mariobodemann

Copy link
Copy Markdown
Collaborator

This is to smoothen the entry into the world of credentials: First create a simple one and then use extensions ...

Copilot AI 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.

Pull request overview

Adds a new Android quickstart “track” that demonstrates creating a basic WebAuthn credential and then performing an assertion, to make credential onboarding easier within the existing track-based sample app.

Changes:

  • Introduces a new CredentialTrackViewModel to run makeCredential + getAssertion and expose results to UI state.
  • Adds a new Compose UI (CredentialTrackView) to display the created options/responses.
  • Wires the new track into the track selector/navigation and adds a new string resource for the track title.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
quickstart/android/app/src/main/res/values/strings.xml Adds a new track title string for the credential creation track.
quickstart/android/app/src/main/java/com/yubico/eap/quickstart/track/credentials/CredentialTrackViewModel.kt Implements credential creation + assertion flow and exposes results via Compose state.
quickstart/android/app/src/main/java/com/yubico/eap/quickstart/track/credentials/CredentialTrackView.kt Adds UI to render the credential flow results and handle in-progress/error states.
quickstart/android/app/src/main/java/com/yubico/eap/quickstart/QuickstartVM.kt Registers the new track and shifts track indices accordingly.
quickstart/android/app/src/main/java/com/yubico/eap/quickstart/MainActivity.kt Adds the new track to the selection list and routes to its view/model.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread quickstart/android/app/src/main/res/values/strings.xml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mariobodemann mariobodemann merged commit 7d27407 into main Jun 18, 2026
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