本文へスキップ
Skillpedia
セキュリティ10k · #11917

verified-email

できること

このスキルは、Credential Managerを使ってAndroidのサインアップの流れに、確認済みのメールの手順を追加する方法を導きます。利用者はコードを入力する代わりに、暗号的に検証されたメールアドレスを共有します。サインアップ時の手間を減らしたいAndroid開発者向けです。

使う場面

  • ✓新しい利用者に、ワンタイムコードを入力させずにサインアップさせたいとき。
  • ✓Googleなどの信頼できるプロバイダーから、アプリで確認済みのメールを要求する必要があるとき。
  • ✓手動のメール確認によるサインアップ中の離脱を減らしたいとき。

スキルのリンク

https://github.com/android/skills/blob/main/identity/verified-email/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/android/skills/blob/main/identity/verified-email/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Androidアプリに確認済みメールでのサインアップを追加して、利用者がメールのコードの手順を飛ばせるようにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、Credential Manager APIでデジタル認証情報のリクエストを設定し、信頼できるプロバイダーから確認済みのメールを求めます。アプリは、その応答から確認済みのメールを受け取ります。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Fundamentals

  • Overview of Digital Credentials: Learn about cryptographically verifiable documents and the role of Credential Manager.
  • Glossary : Definitions for dcql_query, UserInfoCredential, and GetDigitalCredentialOption.

Standards & Examples

Requirements

  • SDK Version: Minimum SDK 28 (Android 9) is required.
  • GMS Version: Google Play services version 25.49.x or higher.

Use Cases

Email verification is applicable for the following use cases:

  • Account Creation/Sign-up: Remove friction by skipping manual email verification.
  • Account Recovery: Securely verify email ownership during recovery flows.
  • Re-authentication: Versatile verification for high-risk actions, independent of the initial sign-in method.

Limitations & Nuances

  • Workspace Accounts: Google does not issue verifiable credentials for Google Workspace Accounts.
  • Freshness: For non-@gmail.com addresses, Google verifies the email at account creation but there is no freshness claim; implement an additional challenge like an OTP.

Scope & Pre-requisites

Crucial : This skill focuses exclusively on the Android client-side integration . It does not implement the app's server-side cryptographic validation logic. Server-side validation of the returned credential is required for security and must be implemented in your backend.

Codebase exploration for Use Cases

Get started with the following queries in project source code to find relevant screens with different use cases to implement verified email:

  • SignUpScreen
  • "Email address"
  • "Recover Account"
  • "Account Recovery"
  • "Forgot password?"
  • "Delete Account"

Identifying Integration Points

To implement this feature effectively, you must first locate the relevant flows in your codebase. To initiate, start with the following strategies to cater to different use cases using verified email:

1. Search for Navigation Routes

If your app uses Navigation, search for routes or destinations related to authentication:

Look for:

  • Keywords : signup, registration, create_account, forgot_password, recovery, verify_email.
  • Code Pattern : Search for NavHost or composable destinations using these strings.

2. Locate Authentication ViewModels

Find the business logic handling user attributes and account creation, account recovery:

  • Keywords : SignUpViewModel, AuthViewModel, RegistrationRepository.
  • Code Pattern : Look for methods like onCreateAccount, onRecoverAccount, or validateEmail.

3. Find instances of reauthentication for sensitive actions

For reauthentication use cases, find areas where users perform sensitive actions:

  • Keywords : ChangePassword, UpdatePayment, DeleteAccount, UpdateDetails, EditUserDetails

Important pointers for Implementation

  • Construct a Digital Credential Request and present it to the user.
  • Make sure to follow the request JSON structure as mentioned in documentation.
  • While presenting the request to the user, check if result credential is DigitalCredential and credential.credentialJson as responseJsonString
  • Parse the response from the client.
  • Offer a passkey creation option if one is not already present.
  • Assume a local SdJwtParser to parse raw SD-JWT and return a JSONObject.
  • Use a VerifiedUserInfo data class to store the parsed name and email.
  • Leave a TODO for developers to handle the app's server-side validation and parsing.
  • Direct users to the home screen after API call succe
よくある質問

必要なAndroidのバージョンは何ですか?

アプリはAndroid 9(API 28)以上で動き、Google Play servicesのバージョン25.49以上が必要です。

リクエストはどの標準を使いますか?

デジタル認証情報のリクエストには、OpenID4VP標準を使います。

テストする方法はありますか?

はい。プラットフォームをまたいだテストのために、このスキルはデジタル認証情報のデモサイトを案内します。

詳細

作者による元の説明

Provides a complete workflow for implementing verified email retrieval on Android Credential Manager API. Use this skill to integrate a secure, OTP-less email verification flow into an Android app. This skill solves the problem of high-friction sign-up processes by leveraging cryptographically verified credentials from trusted providers like Google.

repo: android/skills

人気

GitHubのスター
10k
ランキング
#11917
ライセンス
Apache-2.0
更新日
2026/10/29

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル