0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[App Engine][google-oauth] デコレーター使えば万事解決ってホントですか

Posted at

App Engineはgoogle-oauthのクラス要らない

ってホントですか。。。
頑張ってOpenID Connectとか勉強してた。

The easiest way to handle OAuth 2.0 is to use the App Engine Python decorators supplied by this library. These decorators handle all of the OAuth 2.0 steps without you having to use any Flow, Credentials, or Storage objects.

というわけで、デコレーター使えばFlow, Credentials, Storageオブジェクトすら要らないという。
考えてみれば、App Engineのセキュリティ保護ってGoogleにおまかせしてるから
認証サーバーと変わらないんだよな。
認証サーバーと内部でつなげちゃっても問題ないわけだ。

コレ考えると、認証のために色々頑張ってるのが馬鹿らしくなるな。

デコレーターの挙動がある程度つかめたら追記します。

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?