Search Results :

×

OAuth Single Sign-On (SSO) For Laravel Using LinkedIn As OAuth Provider

OAuth Single Sign-On (SSO) For Laravel Using LinkedIn As OAuth Provider


Laravel OAuth client Single Sign-On (SSO) plugin gives the ability to enable OAuth Single Sign-On for your laravel applications. Using Single Sign-On you can use only one password to access your laravel application and services. Our plugin is compatible with all the OAuth compliant Identity providers. Here we will go through a step-by-step guide to configure Single Sign-On (SSO) between Laravel and LinkedIn considering LinkedIn as OAuth provider. To know more about other features we provide in Laravel OAuth single-sign-on-sso plugin, you can click here.

Installation Laravel Oauth Client

  • Open a Command Prompt window and change the working directory to your Laravel app's main directory.
  • Enter the below command.
    composer require miniorange/oauth-laravel-free
  • After successful installation of package, go to your Laravel app in the browser and enter {laravel-application-domain}/mo_oauth_admin
  • The package will start setting up your database for you and then redirect you to the admin registration page.
  • Register or log in with your miniOrange account to configure the plugin.
  • Laravel Single Sign On SSO plugin settings
  • After login, you will see the OAuth provider Settings option, where you will get the Redirect/Callback URL. Keep it handy as it will be required later to configure LinkedIn Single Sign-On SSO.
  • Laravel Single Sign On SSO OAuth Client Settings

Steps to configure LinkedIn Single Sign-On (SSO) Login into Laravel

1. Configure LinkedIn as OAuth Provider

  • To get started, Go to LinkedIn developers console Click Here and sign up/Login with your linkedin developer account.
  • Go to the linkedin Developers apps page and Click on Create App button to create a new application.
  • Single Sign-On (SSO) create a new application in linkedin
  • Enter the required details and click on the Create app button to save your changes.
  • Single Sign-On (SSO) between required details linkedin
  • Now, Select the Products as shown in the image below as these are necessary in order to set permissions.
  • Single Sign-On (SSO) between linkedin product permissions
  • Copy the Redirect/ Callback URl from laravel OAuth plugin and enter it under OAuth 2.0 -> Authorized Redirect URLs textbox. Click on the Add button adjacent to the text box to save it. Finally, click on the Update button to save your configurations.
  • Single Sign-On (SSO) between redirect url

2. Configure Laravel OAuth client plugin for LinkedIn

  • Go to the miniOrange Laravel OAuth SSO plugin and click on Choose LinkedIn as OAuth provider.
  • Laravel Single Sign On SSO select app
  • Enter the Client ID and Client Secret from LinkedIn Auth.
  • Laravel Single Sign On SSO save settings
  • Please refer the below table for configuring the Scope and Endpoints or else after selecting linkedin scope and Endpoints will added automatically in there respective fields :

  • Scope: r_liteprofile r_emailaddress
    Authorize Endpoint: https://www.linkedin.com/oauth/v2/authorization
    Access Token Endpoint: https://www.linkedin.com/oauth/v2/accessToken
    Get UserInfo Endpoint: https://api.linkedin.com/v2/me

  • Now, You can send the client credentials in header or body and also send state parameter accordingly also enter login attribute as per your requirement.
  • Laravel Single Sign On SSO select app
  • Click on save settings button. After that, Click on test configuration button. you will get the list of Attribute Names and Attribute Values that are sent by your OAuth provider
  • Laravel Single Sign On SSO save settings

3. SSO Options

  • You can also use a link to login via your OAuth/OpenID provider.
  • This link is in the format:
    {laravel-application-domain}/ssologin.php?option=oauthredirect

4. Support / Demo

  • Support and Trial/Demo Request tabs are available for customers to reach out to for demos and support.
  • Laravel Single Sign On SSO Single Sign On button Laravel Single Sign On SSO Single Sign On button

In this Guide, you have successfully configured LinkedIn Single Sign-On (SSO) using laravel oauth client plugin. This solution ensures that you are ready to roll out secure access to your Laravel site using LinkedIn login credentials within minutes.

Additional Resources

Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com