LoginSignup
2
5

More than 3 years have passed since last update.

OAuthまとめ

Posted at

認証と認可

認証

誰であるかをチェックすること = 本人確認

認可

誰が*1 誰に*2 何の権限を与えるか

*1) 「誰が」は主に「ユーザーが」
*2) 「誰に」は主に「クライアントアプリに」

認可の「誰が」は認証処理(本人確認)になる。
つまり、認可処理の中に認証処理が含まれている。ややこしや。

OAuthのしくみ

OAuthの流れを図式化
oauth.png

赤く囲まれたところが、アクセストークンの要求とその応答を表している。
アクセストークンの要求と応答を標準化したもの = OAuth2.0

つまり、OAuthは認可の仕組みのこと。

2
5
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
2
5