We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yahoo! JAPAN
https://auth0.com/docs/extensions/custom-social-extensions
The text was updated successfully, but these errors were encountered:
CustomSocialExtensionを使う
ドキュメントどおり NEW CONNECTION から作成
Yahoo! JAPANデベロッパーネットワークでアプリケーションを登録 https://e.developer.yahoo.co.jp/dashboard/
https://xxxxxxxxxx.auth0.com/login/callback
先に作成したアプリケーションの詳細ページに記載されている情報をそれぞれコピペ
https://auth.login.yahoo.co.jp/yconnect/v2/authorization
https://auth.login.yahoo.co.jp/yconnect/v2/token
openid email など 属性取得API(UserInfoAPI)を参考に
openid email
ドキュメントと他のカスタムコネクションを参考に
属性取得API(UserInfoAPI)
function(accessToken, ctx, cb) { request.get('https://userinfo.yahooapis.jp/yconnect/v2/attribute', { headers: { 'Authorization': 'Bearer ' + accessToken, }, json: true }, function(e, r, profile) { if (e) return cb(e); if (r.statusCode !== 200) return cb(new Error('StatusCode: ' + r.statusCode)); profile.user_id = profile.sub; cb(null, profile); }); }
ここまで設定してCustom Social Connectionsに作成したコネクションが追加されているので、有効化すればAuth0のログインフォームに追加されている。
omniauth-auth0の応答はこんな感じです
omniauth-auth0
userinfo: {"provider"=>"auth0", "uid"=>"oauth2|YahooJAPAN|XXXXXXXXXXXXXXXXXXXXXXX", ...
すでにomniauth-auth0 を導入できている場合、特にサーバアプリケーション側の変更は不要
Sorry, something went wrong.
No branches or pull requests
Yahoo! JAPAN
https://auth0.com/docs/extensions/custom-social-extensions
The text was updated successfully, but these errors were encountered: