credential-issuer
БесплатноБез исполняемых скриптовНе проверенIssue digital credentials to user holder wallets from an Android issuer app over OpenID4VCI using Jetpack Credential Manager and hardware-backed Android…
от android★ 10 827 звёзд на GitHubОб этом скилле
Build an Android credential issuer app that provisions digital credentials into
a user's holder wallet over OpenID4VCI (openid4vci-v1) using
CreateDigitalCredentialRequest and credentialManager.createCredential(),
alongside backend hardware-backed Android Keystore attestation
(android_keystore_attestation). When reviewing digital credential
architecture, client issuance flows, or Keystore attestation requirements,
consult Digital credentials overview, Issue credentials, and
Hardware-backed attestation. When building a holder wallet app that
receives and stores issued credentials, suggest the credential-holder skill;
when requesting credentials as a verifier, suggest the credential-verifier
skill.
Prerequisites and setup
- Android version compatibility: Supported with
androidx.credentials:credentials1.6.0and higher (minSdk23 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 to the app module build script (
app/build.gradle.ktsorapp/build.gradle; when checking full dependency declarations, consult Issue credentials):
| Artifact | Key classes, constructor signatures, and package |
|---|---|
androidx.credentials:credentials:1.7.0-alpha03 (or 1.6.0+) |
CredentialManager, CreateDigitalCredentialRequest(requestJson: String, origin: String?), CreateDigitalCredentialResponse(responseJson: String), and ExperimentalDigitalCredentialApi in androidx.credentials; CreateCredentialException, CreateCredentialCancellationException, CreateCredentialInterruptedException, CreateCredentialNoCreateOptionException, CreateCredentialUnsupportedException, CreateCredentialProviderConfigurationException, CreateCredentialCustomException, and CreateCredentialUnknownException in androidx.credentials.exceptions |
androidx.credentials:credentials-play-services-auth:1.7.0-alpha03 (or 1.6.0+) |
Google Play services provider integration for Credential Manager |
Expected inputs and file scope
- Required inputs: The
credential_issuerURL,credential_configuration_ids, and grant type (pre-authorized_codewith optionaltx_codeorauthorization_codewithissuer_state). - Files to modify:
app/build.gradle.kts, issuer client or repository classes, 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.tomlforminSdkandandroidx.credentialsdependencies. - Locate target UI entry points: Identify the
Activityor Compose screen (such asMainActivity.ktorTasksScreen.kt) where credential issuance is triggered socredentialManager.createCredential()receives anActivityContext.
Critical implementation mandates
Follow the step-by-step client implementation in Issue credentials and apply these non-obvious rules:
- Opt in to experimental APIs: Annotate classes or functions referencing
CreateDigitalCredentialRequestorCreateDigitalCredentialResponsewith@OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class). - Enclose the OpenID4VCI request JSON in root
{ ... }braces: The example JSON snippet in Issue credentials starts directly with"requests": [...]without outer braces. Always wrap the root payload in{ "requests": [...] }with"protocol": "openid4vci-v1"(not"openid4vci1.0") and a"data"object specifying"credential_issuer","credential_configuration_ids"(a JSON array of one or more credential configuration IDs), and"grants"(such asurn:ietf:params:oauth:grant-type:pre-authorized_codeorauthorization_code). - Pass
origin = nullin standard Android issuer apps: When instantiatingCreateDigitalCredentialRequest(requestJson = issuanceRequestJson, origin = null), always passorigin = nullfor standard Android issuer apps. Only privileged browsers holdingandroid.permission.CREDENTIAL_MANAGER_SET_ORIGINpass a non-nullorigin; passing a non-nulloriginfrom a standard app throws aSecurityException. - **Handle
Установить credential-issuer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл credential-issuer?
Issue digital credentials to user holder wallets from an Android issuer app over OpenID4VCI using Jetpack Credential Manager and hardware-backed Android Keystore attestation. Use this skill when building an Android credential issuer app, provisioning credentials to wallets with CreateDigitalCredentialRequest and CredentialManager.createCredential, constructing OpenID4VCI (openid4vci-v1) credential offer JSON payloads, or configuring and validating android_keystore_attestation certificate chains and c_nonce challenges. Don't use for holder wallet registration (RegistryManager), requesting credentials as a verifier (GetDigitalCredentialOption), passkeys, or carrier TS.43 phone number verification.
Как установить скилл credential-issuer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл credential-issuer запускает скрипты?
Нет, скилл состоит только из инструкций (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