![]() Go to 'Site Admin -> Server -> OAuth2 services' and click on the LinkedIn button.Īll you need now is to enter and save the client id and secret and LinkedIn will now be an option for a user on the login page. You will also find the OAuth2 scopes listed which was done as part of Scope requirements earlier.Īuthentication via LinkedIn is now a preconfigured service available for administrators. You will have to setup the authorised redirect URLs as is standard for OAuth2. Here you will find the Authentication keys required to setup your issuer in Moodle. Once the product have been successfully added, go to the 'Auth' tab. Once done, the product will be listed in the app's 'Added products' section. This package provides a full OAuth 2.0 implementation for connecting to LinkedIn as well as an option for using an OAuth 1.0a flow that can be helpful for development purposes or just accessing your own data. They will give you a Client ID (aka API Key) and a Client Secret (aka Secret Key) Step 2: Use your Client ID and Client Secret to obtain an Access Token from some user. The product will be marked as 'Review in progress' and will take a few minutes to be approved. The LinkedIn REST API now supports the OAuth 2.0 protocol for authentication. Installation In Bundler: gem 'linkedin-oauth2', '> 1.0' Otherwise: sudorvm gem install linkedin-oauth2 Usage Step 1: Register your application with LinkedIn. ![]() Go to the Products tab and select the 'Sign In with LinkedIn' product For Moodle purposes, we only require the 'Sign In with LinkedIn' product. Each product defines the various use case that the API can be used for. I have a module which initiates the LinkedIn Authentication - goes off to LinkedIn, requests oAuth permission and then upon granted redirects back to my URL. LinkedIn does this easily by defining 'Products' that an app can be associated with. LinkedIn Page - The page that this app will be associated withĪfter you're done creating the app, you will be redirected to a screen where you can manage various settings related to the app.įor the client to function properly, it needs to be granted permissions to retrieve information from a user.On the 'Create an app' page, fill in the required fields: To setup an OAuth 2 client with LinkedIn, first we need to login to the LinkedIn Developers page and create a new app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |