Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:credentials 1.6.0 and higher (minSdk 23 or higher).
  • Build config permission: Ask for user confirmation before modifying settings.gradle.kts, root build.gradle.kts, or gradle/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.kts or app/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_issuer URL, credential_configuration_ids, and grant type (pre-authorized_code with optional tx_code or authorization_code with issuer_state).
  • Files to modify: app/build.gradle.kts, issuer client or repository classes, ViewModels, and UI screens (such as MainActivity.kt).

Codebase exploration

Before modifying files, inspect the Android project:

  1. Validate baseline build and inspect configuration: Run ./gradlew assembleDebug to confirm the project compiles before making changes, and check app/build.gradle.kts and gradle/libs.versions.toml for minSdk and androidx.credentials dependencies.
  2. Locate target UI entry points: Identify the Activity or Compose screen (such as MainActivity.kt or TasksScreen.kt) where credential issuance is triggered so credentialManager.createCredential() receives an Activity Context.

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 CreateDigitalCredentialRequest or CreateDigitalCredentialResponse with @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 as urn:ietf:params:oauth:grant-type:pre-authorized_code or authorization_code).
  • Pass origin = null in standard Android issuer apps: When instantiating CreateDigitalCredentialRequest(requestJson = issuanceRequestJson, origin = null), always pass origin = null for standard Android issuer apps. Only privileged browsers holding android.permission.CREDENTIAL_MANAGER_SET_ORIGIN pass a non-null origin; passing a non-null origin from a standard app throws a SecurityException.
  • **Handle
Полный SKILL.md на GitHub

Установить credential-issuer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/android/identity/digital-credentials/credential-issuer/issue-credentials.mdreferences/android/identity/digital-credentials/credential-issuer/keystore-attestation.mdreferences/android/identity/digital-credentials/index.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить credential-issuer с