Yahoo! OAuth 2.0 social login guide
Yahoo! is an American web services provider that serves content to over 1 billion users each month. Yahoo! Mail alone has an estimated 225 million users.
Before you begin
To use Yahoo! OAuth 2.0 for social login you must:
-
Obtain a Yahoo! developer account from https://developer.yahoo.com.
-
Do one of the following:
- Open a previously-created Yahoo! OAuth 2.0 app and copy the client ID and client secret.
- Create a new app and copy the client ID and client secret.
-
Use the Social Login Dashboard and your Yahoo! client ID and client secret to configure Yahoo! OAuth 2.0 as a social login provider.
Create a Yahoo! OAuth 2.0 app for social login
To create a Yahoo! app that uses OAuth 2.0 authentication, complete the following procedure:
-
Log on to the Yahoo! Developer Network (https://developer.yahoo.com.
-
Click Apps from the Developer Network home page:
-
On the My Apps page, click Create an App:
-
On the Create Application page, select Web Application and then enter the following information for your new app:
- Enter the name of your app in the Application Name field.
- Enter a brief description of your app in the Description field.
- Enter the URL of your website in the Homepage URL field.
- Enter your redirect URI in the Redirect URI(s) field. (If you have more than one redirect URI, click the +button to add additional values.) By default, your redirect URI is your rpxnow.com domain followed by/yahoo-oauth2/callback: https://greg-stemp.rpxnow.com/yahoo-oauth-2/callback.
For example:
-
If you’d like to return user profile information following a successful social login, select OpenID Connect Permissions and then select Email and/or Profile as needed: :
-
After your app has been created, copy the Client ID and Client Secret and save those values:
Both the client ID and the client secret are needed in order to configure Yahoo! as a social login provider.
-
Log off from the Yahoo! Developer Network.
Use an existing Yahoo! OAuth 2.0 app for social login
If you already have a Yahoo! social login application, complete the following steps to retrieve the application’s client ID and client secret:
-
Log on to the Yahoo! Developer network (https://developer.yahoo.com) and click Apps:
-
On the My Apps page, click the name of the app you want to use for social login:
-
On the home page for your app, in the Web Settings section, copy the Client ID and the Client Secret shown at the top of the page:
Both the client ID and client secret are required in order to configure Yahoo! as a social login provider. -
Log off from the Yahoo! Developers Network.
Configure Yahoo! OAuth 2.0 as a social login provider
To configure Yahoo! as a social login provider, make sure you have your Yahoo! client ID and client secret, and then complete the following procedure:
-
Log on to your Social Login Dashboard (https://dashboard.janrain.com).
-
From the Dashboard home page, click the Manage Engage Dashboard icon.
-
From the Engage Dashboard home page, in the Widgets and SDKs section, click Sign-Ins.
-
From the Sign-in page, verify that Widget is selected and then expand Providers:
-
From the list of Providers, click Yahoo! OAuth2:
-
In the Yahoo OAuth2 dialog box, click Next until you reach the screen requesting the Yahoo! Client ID and Client Secret:
-
Enter your Yahoo! client ID in the Client ID field, enter your Yahoo! client secret in the Client Secret field, click Save, and then click Close. Yahoo! appears in your social login widget:
-
When you are finished, select Save. Note that it might take as long as one hour before Yahoo! appears as a social login option on your web site.
Test Yahoo! social login
To test Yahoo! social login, complete the following procedure:
-
Do one of the following:
- If you have just published your widget settings, click the Test your widget link that appears after the widget has been saved.
- If you previously published your widget settings then, from the Engage Dashboard Sign-in page, click Launch a test widget.
-
From the Test page, click the Yahoo! icon:
-
In the sign-in window, enter a valid Yahoo! account name (email address) in the Email address field and then click Next:
-
Enter your Yahoo! password in the Password field and then click Sign in:
-
In the authorization window, click Agree:
If login succeeds, information returned from the Yahoo! profile is displayed in the API response preview field:
Note that you might also receive an email similar to the following, acknowledging that your Yahoo! account was used along with your social login app:
Assign a different Yahoo! OAuth 2.0 app for social login
If you want to use a different Yahoo! OAuth 2.0 app or if you need to change your existing app, you must update the Yahoo! OAuth 2.0 provider configuration settings. To do that, complete the following procedure:
-
From the Social Login Dashboard home page, click the Manage Providers icon:
-
On the Configure Providers page, click Yahoo! OAuth 2.0.
-
Click the green Configured button to display the Yahoo OAuth 2 is currently enabled dialog box:
-
To change the Yahoo! configuration, click Modify these settings.
-
In the Yahoo dialog box, change the Client ID and/or Client Secret as needed, and then click Save:
Although you can modify your Yahoo! OAuth 2.0 settings, you cannot delete these settings. If you delete the settings and try to save your changes, you’ll see the error message Please enter both the Client ID and secret.
This means that you cannot “unconfigure” the provider: once configured, the Yahoo! OAuth 2.0 icon will always be shown as green (i.e., configured) in the Social Login Dashboard.
Remove Yahoo! OAuth 2.0 App as a social login provider
If you no longer want to use Yahoo! OAuth 2.0 for social login, you can remove Yahoo! as a social login provider by completing the following procedure:
-
Log on to your Social Login Dashboard (https://dashboard.janrain.com).
-
From the Dashboard home page, click the Manage Engage Dashboard icon.
-
From the Engage Dashboard home page, in the Widgets and SDKs section, click Sign-Ins.
-
From the Sign-in page, verify that Widget is selected and then expand Providers.
-
In the widget, click the X in the upper right corner of the Yahoo! OAuth 2.0 icon.
-
Scroll to the bottom of the page, select Save and Publish, and then click Publish. Yahoo! OAuth 2.0 no longer appears in the sign-on widget.
You must always have at least one social login provider in the widget. If you delete all the providers and then click Publish, you’ll see the error message Couldn’t save configuration: No providers.
Updated almost 3 years ago