LoginSignup
6
4

More than 5 years have passed since last update.

[翻訳] Firebase Authentication / Introduction

Last updated at Posted at 2016-08-16

Firebase Authentication (Introduction) を翻訳してみました。
お気づきの点があればコメント頂ければと思います。

以下、関連する投稿へのリンクです。
Firebase Authentication / Introduction
Firebase Authentication / Users in Firebase Projects
Firebase Authentication / Android / Manage Users
Firebase Authentication / Android / Password Authentication
Firebase Authentication / Android / Google Sign-In
Firebase Authentication / Android / Anonymous Authentication

Firebase Authentication

Most apps need to know the identity of a user. Knowing a user's identity allows an app to securely save user data in the cloud and provide the same
personalized experience across all of the user's devices.

Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app. It supports authentication using passwords, popular federated identity providers like Google, Facebook and Twitter, and more.

Firebase Authentication integrates tightly with other Firebase services, and it leverages industry standards like OAuth 2.0 and OpenID Connect, so it can be easily integrated with your custom backend.

ほとんどのアプリは、ユーザーの身元を知っている必要があります。 ユーザーの身元を知ることで、アプリが安全にクラウドにユーザーデータを保存し、ユーザのすべてのデバイスでパーソナライズされた同じエクスペリエンスを提供することができます。

Firebase Authenticationは、あなたのアプリでユーザーを認証させるため、バックエンドサービス、使いやすいSDK、および既製のUIライブラリを提供します。 これは、パスワードを使用した認証や、Google、Facebook、Twitterなどのポピュラーなアイデンティティ・プロバイダほかをサポートしています。

Firebase Authenticationは、Firebaseの他のサービスと緊密に統合し、OAuth2.0やOpenID接続のような業界標準を活用します。 そのため簡単にあなたのカスタムバックエンドと統合できます。

Key capabilities

You can sign in users to your Firebase app either by using FirebaseUI as a complete drop-in auth solution or by using the Firebase Authentication SDK to manually integrate one or several sign-in methods into your app.



FirebaseUI (beta)

Easily add a complete sign-in system to your app. FirebaseUI provides a drop-in auth solution that handles the UI flows for signing in users with email addresses and passwords, Google Sign-In, and Facebook Login.

The FirebaseUI Auth component implements best practices for authentication on mobile devices and websites, which can maximize sign-in and sign-up conversion for your app. It also handles edge cases like account recovery and account linking that can be security sensitive and error-prone to handle correctly.

FirebaseUI can be easily customized to fit in with the rest of your app's visual style, and it is open source, so you aren't constrained in realizing the user experience you want.

iOS  Android  Web  

Email and password based authentication

Authenticate users with their email addresses and passwords. The Firebase Authentication SDK provides methods to create and manage users that use their email addresses and passwords to sign in. Firebase Authentication also handles sending password reset emails.

iOS  Android  Web  C++

Federated identity provider integration Authenticate users by integrating with federated identity providers. The Firebase Authentication SDK provides methods that allow users to sign in with their Google, Facebook, Twitter, and GitHub accounts.
Google iOS  Android  Web  C++
Facebook iOS  Android  Web  C++
Twitter iOS  Android  Web  C++
GitHub iOS  Android  Web  C++
Custom auth system integration

Connect your app's existing sign-in system to the Firebase Authentication SDK and gain access to Firebase Realtime Database and other Firebase services.

iOS  Android  Web  C++


Anonymous auth

Use Firebase features that require authentication without requiring users to sign in first by creating temporary anonymous accounts. If the user later chooses to sign up, you can upgrade the anonymous account to a regular account, so the user can continue where they left off.

iOS  Android  Web  C++

あなたは完全な代替の認証ソリューションとしてFirebase UIを使用するか、またはFirebase Authentication SDKを使用して手動で1つまたはいくつかのサインインメソッドをあなたのアプリに統合することにより、ユーザーをFirebase アプリにサインインさせることが出来ます。

FirebaseUI (beta)

アプリに簡単に完全なログインシステムを追加します。 FirebaseUIは、メールアドレスとパスワード、またはGoogleサインイン、またはFacebookログインによるユーザー認証のためのUIフローを扱う代替の認証ソリューションを提供します。

FirebaseUI Authコンポーネントは、あなたのアプリへのサインイン、サインアップのコンバージョンを最大化するモバイルデバイスとウェブサイトでの認証のベストプラクティスを実装しています。 それはまた、セキュリティ的に注意が必要で間違いを起こしがちなアカウントの復旧やアカウントのリンクのような稀なケースも正しく扱います。

FirebaseUIは簡単にアプリの残りの部分の見た目と合うようにカスタマイズできます。 そして、それはオープンソースなので、あなたが望むユーザーエクスペリエンスの実現が制限されることはありません。

iOS  Android  Web  

Email and password based authentication

ユーザーのメールアドレスとパスワードを使ってユーザー認証します。 Firebase Authentication SDKは、サインインにメールアドレスとパスワードを使用するユーザーを作成し、管理するメソッドを提供します。 また、Firebase Authenticationはパスワードリセット用のメールの送信も扱います。

iOS  Android  Web  C++

Federated identity provider integration アイデンティティ・プロバイダとの統合により、ユーザーを認証します。 Firebase Authentication SDKはユーザーのGoogle、Facebook、TwitterまたはGitHubのアカウントでサインイン出来るメソッドを提供します。

Google iOS  Android  Web  C++
Facebook iOS  Android  Web  C++
Twitter iOS  Android  Web  C++
GitHub iOS  Android  Web  C++
Custom auth system integration

あなたのアプリの既存のサインイン システムをFirebase Authentication SDKに繋ぎ、Firebase Realtime Databaseや他のFirebase servicesへのアクセス権を得ます。

iOS  Android  Web  C++

Anonymous auth

一時的な匿名アカウントの作成により、認証を必要とするFirebaseの機能をユーザーに初回のサインインを要求せずに使用します。 後でユーザーがサインアップすることを選択した場合は、匿名アカウントを通常アカウントにアップグレードできます。 なのでユーザーは中断したところから続行することができます。

iOS  Android  Web  C++

How does it work?

To sign a user into your app, you first get authentication credentials from the user. These credentials can be the user's email address and password, or an OAuth token from a federated identity provider. Then, you pass these credentials to the Firebase Authentication SDK. Our backend services will then verify those credentials and return a response to the client.

After a successful sign in, you can access the user's basic profile information, and you can control the user's access to data stored in other Firebase products. You can also use the provided authentication token to verify the identity of users in your own backend services.

Note: By default, authenticated users can read and write data to the Firebase Realtime Database and Firebase Storage. You can control the access of those users by modifying your Firebase Database Rules and Storage Security Rules.

ユーザーにあなたのアプリにサインさせるためには、まず最初にユーザーから認証証明を取得します。 これらの証明は、ユーザーのメールアドレスとパスワード、またはアイデンティティ・プロバイダのOAuthトークンになります。 そして、あなたはFirebase Authentication SDKにこれらの証明を渡します。 我々のバックエンド・サービスは、それらの証明を確認してクライアントに応答を返します。

正常にサインインしたのち、あなたはユーザーの基本的なプロフィール情報にアクセスできます。 そしてあなたは他のFirebase productsに格納されたデータへのユーザーのアクセスを制御できます。 またあなたは提供された認証トークンを、あなたの独自のバックエンドサービス内のユーザーの同一性の確認に使用できます。

注:デフォルトでは、認証されたユーザーはFirebase Realtime DatabaseとFirebase Storageへのデータの読み書きが出来ます。 あなたはFirebase Database RulesStorage Security Rulesを編集することにより、それらのユーザーのアクセスをコントロールできます。

Implementation paths

Using FirebaseUI Auth (beta)
1 Set up sign-in methods For email address and password sign-in and any federated identity providers you want to support, enable them in the Firebase console and complete any configuration required by the identity provider, such as setting your OAuth redirect URL.
2 Customize the sign-in UI You can customize the sign-in UI by setting FirebaseUI options, or fork the code on GitHub to customize the sign-in experience further.
3 Use FirebaseUI to perform the sign-in flow Import the FirebaseUI library, specify the sign-in methods you want to support, and initiate the FirebaseUI sign-in flow.
Using the Firebase Authentication SDK
1 Set up sign-in methods For email address and password sign-in and any federated identity providers you want to support, enable them in the Firebase console and complete any configuration required by the identity provider, such as setting your OAuth redirect URL.
2 Implement UI flows for your sign-in methods For email address and password sign-in, implement a flow that prompts users to type their email addresses and passwords. For federated sign-in, implement the flow required by each provider.
3 Pass the user's credentials to the Firebase Authentication SDK Pass the user's email address and password or the OAuth token that was acquired from the federated identity provider to the Firebase Authentication SDK.
Using FirebaseUI Auth (beta)
1 サインイン・メソッドをセットアップ あなたがサポートしたいと考えるメールアドレスとパスワードによるサインインと任意のアイデンティティ・プロバイダ向けに、Firebaseコンソールでそれらを有効にし、アイデンティティ・プロバイダに必要とされるOAuthリダイレクトURLなどの設定を完了させます。
2 サインインUIをカスタマイズ あなたはFirebaseUIのオプションを設定することでサインインUIをカスタマイズできます。 または、サインイン・エクスペリエンスをカスタマイズするためGitHubでコードのフォークも出来ます。
3 サインイン・フローを実行するためFirebaseUIを使用 FirebaseUIライブラリをインポートし、サポートしたいサインイン方法を指定し、FirebaseUIのサインイン・フローを 開始します。
Using the Firebase Authentication SDK
1 サインイン・メソッドをセットアップ あなたがサポートしたいと考えるメールアドレスとパスワードによるサインインと任意のアイデンティティ・プロバイダ向けに、Firebaseコンソールでそれらを有効にし、アイデンティティ・プロバイダに必要とされるOAuthリダイレクトURLなどの設定を完了させます。
2 あなたのサインイン・メソッド向けのUIフローを実装 メールアドレスとパスワードのサインインのために、ユーザーにメールアドレスとパスワードの入力を促すフローを実装します。 連携サインインのために、各プロバイダで必要とされるフローを実装します。
3 ユーザーの証明をFirebase Authentication SDKに渡す ユーザーのメールアドレスとパスワード、または連携アイデンティティ・プロバイダから得たOAuthトークンをFirebase Authentication SDKに渡します。

Next steps

Learn more about users in a Firebase project, then see the integration guides for the sign-in providers you want to support:

iOS  Android  Web

Note:Our SDKs have changed. If you are upgrading from a 2.X version of the Firebase SDK, please read our upgrade guides for iOS,
Android, and Web.

Firebase project内のユーザーについてより詳しくは、あなたがサポートしたいサインイン・プロバイダの統合ガイドを参照してください:
iOS  Android  Web

注:SDKに変更がありました。 もしFirebase SDKのバージョン2.Xからアップグレードするなら、iOS,Android, and Web向けのアップグレードガイドを参照してください。

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4