credential-verifier
БесплатноБез исполняемых скриптовНе проверенRequest and verify digital credentials (such as ISO mdoc mobile driver's licenses and SD-JWT credentials) from a holder wallet in an Android app or WebView…
от android★ 10 827 звёзд на GitHubОб этом скилле
Build an Android verifier (relying party) app that requests and verifies digital
credentials (mso_mdoc and dc+sd-jwt) from a user's holder wallet over
OpenID4VP (openid4vp-v1-unsigned) and Digital Credential Query Language
(dcql_query) using GetDigitalCredentialOption and
credentialManager.getCredential(), either directly in an Android app or
through a WebView JavaScript bridge. When reviewing digital credential
architecture, trust requirements, or verifier implementation snippets, consult
Digital credentials overview, About trust and safety,
Request credentials, and Request a credential through WebView. When
building a wallet app that stores and presents credentials, suggest the
credential-holder skill; when issuing credentials to a wallet, suggest the
credential-issuer skill; when implementing carrier TS.43 phone number
verification, suggest the phone-number-verification skill.
Prerequisites and setup
- Android version compatibility: Runtime support for the Verifier API requires Android 9 (API level 28) and higher (
WebViewJavaScript bridge targets API level 23 or higher, andandroidx.credentialscompiles withminSdk23 or higher). - Build config permission: Ask for user confirmation before modifying
settings.gradle.kts, rootbuild.gradle.kts, orgradle/libs.versions.toml, unless already requested by the user or running non-interactively. - Dependencies and package mapping: Add the Credential Manager artifacts (and
androidx.webkitwhen bridgingWebViewrequests) to the app module build script (app/build.gradle.ktsorapp/build.gradle; when checking full dependency snippets, consult Request credentials and Request a credential through WebView):
| Scenario | Artifact | Key classes, constructor signatures, and package |
|---|---|---|
| All verifier flows | androidx.credentials:credentials:1.7.0-alpha03 (or 1.6.0+) |
CredentialManager, GetCredentialRequest, GetCredentialResponse, GetDigitalCredentialOption(requestJson: String), DigitalCredential, and ExperimentalDigitalCredentialApi in androidx.credentials; GetCredentialException, GetCredentialCancellationException, GetCredentialInterruptedException, NoCredentialException, GetCredentialUnknownException, and GetCredentialCustomException in androidx.credentials.exceptions |
| All verifier flows | androidx.credentials:credentials-play-services-auth:1.7.0-alpha03 (or 1.6.0+) |
Google Play services provider integration for Credential Manager |
WebView bridge |
androidx.webkit:webkit:1.18.0 |
WebViewCompat, WebViewCompat.WebMessageListener, WebMessageCompat, WebViewFeature, and JavaScriptReplyProxy in androidx.webkit |
Expected inputs and file scope
- Required inputs: The credential formats (
mso_mdocwithdoctype_valueordc+sd-jwtwithvct_values) and minimum selective-disclosure claims to request, and whether verification runs directly in an Android screen or inside aWebView. - Files to modify:
app/build.gradle.kts, verifier client or repository classes,WebViewCompat.WebMessageListenerbridge classes (when usingWebView), ViewModels, and UI screens (such asMainActivity.kt).
Codebase exploration
Before modifying files, inspect the Android project:
- Validate baseline build and inspect configuration: Run
./gradlew assembleDebugto confirm the project compiles before making changes, and checkapp/build.gradle.ktsandgradle/libs.versions.tomlforminSdk,androidx.credentials, andandroidx.webkitdependencies. - Locate target UI entry points: Identify the
Activityor Compose screen (such asMainActivity.ktorTasksScreen.kt) where verification is triggered socredentialManager.getCredential()receives anActivityContext.
Critical implementation mandates
- Opt in to experimental APIs: Annotate classes or functions referencing
GetDigitalCredentialOptionorDigitalCredentialwith@OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class)(omitted from the snippet in Request credentials). - Use the exact OpenID4VP and DCQL JSON schema: Follow the single-credential (
mso_mdocordc+sd-jwt) and multi-credential (dcql_query.credentials) JSON schemas in Request credentials (`"protocol": "o
Установить credential-verifier в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл credential-verifier?
Request and verify digital credentials (such as ISO mdoc mobile driver's licenses and SD-JWT credentials) from a holder wallet in an Android app or WebView using Jetpack Credential Manager. Use this skill when building a digital credential verifier app in an Android project, constructing OpenID4VP (openid4vp-v1-unsigned) and Digital Credential Query Language (dcql_query) requests, calling CredentialManager.getCredential with GetDigitalCredentialOption, requesting multiple credentials simultaneously, or bridging WebView navigator.credentials.get requests with WebViewCompat.WebMessageListener. Don't use for holder wallet registration, issuing credentials over OpenID4VCI, passkeys, or carrier TS.43 phone number verification.
Как установить скилл credential-verifier?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл credential-verifier запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic