Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Saturday, August 20, 2016

Register Identity Provider for new OAuth Application


Introduction:
OAuth is a web authentication protocol and open standard for authorization, Nowadays Internet users to log in to third party websites using following account without exposing user registration.
  1. Google
  2. Facebook
  3. Twitter
  4. Microsoft
  5. LinkedIn
  6. Githup
  7. Flicker
  8. Yahoo
  9. DropBox
You can find below wiki for some more list of notable identity provider
How Oauth will Work:
Third party app /website can access your data stored in another website without registries.
The OAuth flow has three steps
  • Get a Request Token
  • Get the User's Authorization
  • Exchange the Request Token for an Access Token  
Register New OAuth Applications:
Before you can integrate Identity provider sign-in into your apps, you must register your application and get the corresponding client ID and client secret from below steps, which we need to call the Sign-in API
Configure Google OAuth:
Register New OAuth application follow below steps
  1. Navigate to https://console.developers.google.com and login with your google Account credentials when prompted.
  2. Select Credentials tab and Click on Create Project.
  3. Add your App/website name  and click on Create
  1. In the Credentials API Popup, select the create credentials drop-down list, and choose OAuth client ID.


  1. Select Application Type As Web Application or iOS, android and click on configure button  


  1. Fill personal details, privacy details and click on save
  2. Get the package name from your AndroidManifest.xml file then use the following command to get the fingerprint and Click on Create
8. From the resulting OAuth client dialog box, copy the Client ID. The Client ID lets your app access enabled Google APIs.


Configure Facebook OAuth:
               Register New OAuth application follow below steps
  1. Navigate to https://developers.facebook.com and login with your facebook Account credentials when prompted.
  2. Click on “ My Apps” Dropdown  and select “Add a New App”.




  1. Select a App Platform ( iOS,Android,Facebook Canvas,WebSite,etc)
  2. Give Unique App/Website Name
  1. Fill email, select app category and click on “Create APP ID”.
  2. Complete security check and click on Submit
  3. Get the package name from your AndroidManifest.xml file then add package name and class name
  1. Generate development key hash and press on Finish
  2. From the resulting OAuth client dialog box, copy the Client ID. The Client ID lets your app access enabled Facebook APIs.


Configure Twitter OAuth:
Register New OAuth application follow below steps
  1. Navigate to https://dev.twitter.com/apps/new and login with your Twitter Account credentials when prompted.
  2. Enter your Application Name, Description ,your website address and callback URL.
  1. Accept the Developer agrement and clicking the Create your Twitter Application.
  2. Copy the consumer key (API key) and consumer secret from the screenand use into your application
Configure Microsoft OAuth:
  1. Go to https://apps.dev.microsoft.com/, and login with your Microsoft Account (Hotmail, Windows Live, Messenger, Active Directory, Xbox, Skype, and OneDrive) credentials when prompted.
  2. Select My Application and click Add an App
  3. Enter the Application name and click on Create application


  1. Generate application ID and secrets and use into the application

Configure LinkedIn OAuth:
             Register New OAuth application follow below steps
  1. Navigate to http://developer.linkedin.com/ and login with your LinkedIn Account credentials when prompted
  2. Select platform (RESTAPI,Javascript ,Android SDK,iOS SDK)
  3. Click the "Add New Application" link and fill in the required fields(Company Name,Application Name,Description,Application URL,logo,Business website,email and phone) and agree Licience condition
4. Click on Submit. To retrieve your API Key and Secret Key later, click on the link for your Application Name and they will now be listed in the application's details.


Configure Githup OAuth:
             Register New OAuth application follow below steps
  1. Navigate to https://github.com/settings/developers  and login with your Github Account credentials when prompted.
  2. Click the "Register New App" link and fill in the required fields(Application Name,Description, URL and callback url) and click on”Regsiter Application
  1. Copy the Client ID and Client Secret from the screen and use into your application



Configure Dropbox OAuth
  1. Navigate to https://www.dropbox.com/developers and login with your DropBox Account credentials when prompted.
  2. Choose an API Type and Access type
  3. Enter the Application name and click on Create App
  1. Copy the App Key and App Secret from the screen and use into your application

Configure Flicker OAuth:
  1. Navigate to https://developer.yahoo.com/flickr/  and login with your Yahoo Account credentials when prompted.
  2. For getting API Key ,Clcik on “ Create an APP”.
  1. Choose if Non-Commercial or Commercial.
  2. Enter the Application name, description and click on submit


  1. Copy the App Key and App Secret from the screen and use into your application




Configure Yahoo OAuth:
             Register New OAuth application follow below steps
  1. Navigate to https://developer.yahoo.com/apps/  and login with your Yahoo Account credentials when prompted.
  2. Enter the Application name, application type and access  and click on Create App



  1. Copy the Client ID and Client Secret from the screen and use into your application



I will explain about implementation on Next article
Post a Comment