Can I offer "login with yahoo" using FusionAuth?
-
I'd like to off a "Login with Yahoo!" button. Can I use FusionAuth to do so?
-
Yes. You can use FusionAuth's OpenID Connect Identity Provider.
I did this a few weeks ago, so am writing these instructions from memory.
Prerequisites:
- A yahoo account
- A running FusionAuth instance (localhost is fine)
Steps:
- Go to the Yahoo! developer network and create an app.
- The redirect URI for Yahoo is
https://<your instance>/oauth2/callback - Save off the provided
Client ID (Consumer Key)andClient Secret (Consumer Secret). - Then go to FusionAuth and create an OpenID Connect Identity Provider: <your instance>/admin/identity-provider/add/OpenIDConnect
- Put the
Client ID (Consumer Key)andClient Secret (Consumer Secret)into theClient IdandClient secretfields, respectively. - Uncheck
Discover Endpoints. Manually configure the endpoints:- Set the
Authorization Endpointtohttps://api.login.yahoo.com/oauth2/request_auth - Set the
Token Endpointtohttps://api.login.yahoo.com/oauth2/get_token - Set the
Userinfo Endpointtohttps://api.login.yahoo.com/openid/v1/userinfo
- Set the
- Set the
Scopetoopenid email profileand any other scopes you might need. (I was unable to find an authoritative list, but here's info about the mail scopes.) - Update the
Button textandButton imageas needed. - Enable it for applications as needed.
- Save the Identity Provider.
-
D dan has marked this topic as solved on