Google Cloud Platform Japan Blog
最新情報や使い方、チュートリアル、国内外の事例やイベントについてお伝えします。
App Engine アプリのユーザーを Firebase で認証する
2016年10月12日水曜日
Google App Engine
が提供するユーザー サインインの方法には
いくつかの選択肢
があります。では、サーバー上のアクセス トークンの検証などを含むフルスタックの認証ソリューションが必要な場合は、どの方法を選んだらよいのでしょうか。
お勧めは
Firebase Authentication
を利用する方法です。Firebase Authentication はユーザー サインインを実現する包括的なサービスです。サインイン システムをアプリケーションに簡単に追加できるドロップイン UI、強力な SDK、そしてトークン検証を行うバックエンド サービスを提供します。
Firebase は、モバイルおよびウェブ アプリケーションの作成に利用できる、Google の “Backend as a Service”(BaaS)です。Firebase には、お客様のサーバーと Firebase Authentication を統合するための Node.js SDK と Java Server SDK が用意されています。
Firebase の Java Server SDK は、App Engine 上の Java アプリケーションで認証に使えるトークンの検証と復号化を行うための
ビルトイン メソッド
を提供します。ただし、現在のところ、App Engine で使われる他のバックエンド言語に対応するこうした SDK はありません。
サードパーティの JSON Web Token(JWT)ライブラリを使って他の言語での認証を管理することは簡単ではありません。そこで私たちは、
App Engine で Python を使用する場合に Firebase Authentication を適用するためのソリューション
を、チュートリアルとともに公開しました。これは、App Engine で使われる各言語に対応したシリーズの第 1 弾です。
このチュートリアルでは、シンプルなメモ取りアプリケーションを例に、このソリューションの使用方法を説明しています。
Firenotes と名付けられたこのサンプル アプリケーションは、ユーザーのメモを各ユーザー専用のパーソナル ノートブックに保存します。このノートブックは、Firebase が生成する固有のユーザー ID で識別されます。
Firenotes アプリケーションは資格情報を
Google Cloud Datastore
に保存しますが、任意のデータベースへの保存にも対応します。既存の資格情報管理システムと、Firebase が使用するユーザー ID ベースの管理方法を統合することも可能です。
上図に示すように、Firebase は、アクセス トークンを作成するとともに、それらを検証するための公開鍵証明書も提供します。したがって、お客様は私たちが用意した検証コードを実装するだけで済みます。
このソリューションが、ユーザー認証を手早く処理し、アプリケーションの主要部分の作成に注力したいお客様のお役に立つことを願っています。
* この投稿は米国時間 10 月 6 日、Technical Writer Intern である Tristan Vanech によって投稿されたもの(投稿は
こちら
)の抄訳です。
- Posted by Tristan Vanech, Technical Writer Intern
0 件のコメント :
コメントを投稿
60 日間のトライアル
Labels
.NET
Access Management
AlphaGo
Anvato
Apache Beam
Apache Maven
API
Apigee
APIs Explore
App Engine
App Engine Flex
AppArmor
AppScale
AR
ASP.NET
Attunity
AWS
Big Data
BigQuery
Billing Alerts
Bime by Zendesk
Bitbucket
Borg
Capacitor
Client Libraries
Cloud Bigtable
Cloud Consoleアプリ
Cloud Dataflow SDK
Cloud Dataproc
Cloud Datastore
Cloud Debugger
Cloud Deployment Manager
Cloud Identity
Cloud Machine Learning
Cloud monitoring
Cloud Natural Language API
Cloud Networking
cloud Pub/Sub
Cloud SDK
Cloud Source Repositories
Cloud Speech API
Cloud SQL
Cloud Storage
Cloud Tools for PowerShell
Cloud Virtual Network
CloudEndure
Cluster Federation
Codelabs
Colossus
Compute Engine
Compute user Accounts
Container Engine
Container Registry
Container-VM Image
CSEK
Dbvisit
deep learning
Deployment Manager
Developer Console
Developers
Disney
Drain
Dreamel
Eclipse
Evernote
FASTER
Firebase
Firebase Analytics
Firebase Authentication
Flexible Environment
gcloud
GitHub
Go 言語
Google App Engine
Google Apps
Google Cloud Console
Google Cloud Dataflow
Google Cloud Datalab
Google Cloud Datastore
Google Cloud Endpoints
Google Cloud Explorer
Google Cloud Launcher
Google Cloud Logging
Google Cloud Platform
Google Cloud Security Scanner
Google Cloud Shell
Google Cloud SQL
Google Cloud Storage
Google Cloud Storage Nearline
Google Cloud Tools for IntelliJ
Google Compute Engine
Google Container Engine
Google Data Analytics
Google Data Studio
Google Date Studio
Google Drive
Google Genomics
Google SafeSearch
Google Service Control
Google Sheets
Gradle
gRPC
Horizon
IaaS
IntelliJ
IoT
Java
Jupiter
Jupyter
Kubernetes
Looker
Managed Instance Group
Maps API
Maven
Mission Control
MongoDB
MySQL
neural networks
Next
NoSQL
OLDISM
Open Compute Project
Orbitera
Panda
Particle
Percona
Pete's Dragon
Pokémon GO
Poseidon
Protocol Buffers
Puppet
Pythian
Python
ScaleArc
Serving Websites
SQL Server
SRE
Stackdriver
Stackdriver Debugger
Stackdriver Error Reporting
Stackdriver Monitoring
Stanford
Startups
Streak
Sysbench
Tableau
Talend
Tensor Flow
TensorFlow
Translate API
Vision API
Visual Studio
Visualization
Vitess
VM
VM Image
Webyog
Windows ワークロード
Xplenty
Yellowfin
イベント
エンティティ
コンピューティング
サポート
スタートガイド
ストレージ
セミナー
ソリューション: メディア
データセンター
ビッグデータ
フルマネージド
マイクロサービス
マルチクラウド
運用管理
機械学習
月刊ニュース
資格、認定
新機能、アップデート
導入事例
料金
Archive
2016
10
9
8
7
6
5
4
3
2
1
2015
12
11
10
9
8
7
6
5
4
3
2
1
2014
12
11
10
9
8
6
5
4
3
2
Feed
月刊ニュースレターに
登録
新着ポストをメールで受け取る
Google
on
Follow @GoogleCloud_jp
0 件のコメント :
コメントを投稿