用語

プロバイダーFacebookやSlackやGitHubなどのOauth認証提供側
コンシューマ上記を利用する側

連携アプリの設定

Github

Setting > Developer Setting > Oauth Apps

Facebook

Slack

関連クラス

AuthorizationServerConfigurerAdapter
@EnableOAuth2Sso自動でやってくれるがその分何やっているかわからない
@EnableOAuth2ClientEnableOAuth2Ssoを外した場合に必要
OAuth2ClientContextEnableOAuth2Ssoを外した場合に必要

Filter

OAuth2ClientAuthenticationProcessingFilterAn OAuth2 client filter that can be used to acquire an OAuth2 access token from an authorization server, and load an authentication object into the SecurityContext

認証関連クラス

WebSecurityConfigurerAdapterOauthに限らない認証設定一般
@EnableAuthorizationServer認証サーバーとしての定義
AuthorizationServerConfigurerAdapter
ResourceServerConfigurerAdapter
OAuth2ClientAuthenticationProcessingFilter

関連情報

OAuth providerサンプル

https://www.qoosky.io/techs/e279ada277

Spring Boot2でOAuth2.0

1系は依存ライブラリも古いのでやめた!

https://qiita.com/yoshikawaa/items/5bc6cabbc2e5815f011c

Spring boot line

https://koirand.github.io/blog/2018/line-login-with-springboot/

Oauth2のサーバー

https://qiita.com/kazuki43zoo/items/9cc00f0c92c7b0e1e529

https://qiita.com/shin_hayata/items/ae1a978ddc2ff7b0eeee

https://qiita.com/yoshikawaa/items/5bc6cabbc2e5815f011c


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-10-14 (金) 13:16:53