Login in your Drupal site’s admin console and click on Extend/Module from the top navigation bar.
Select the Install new module option to install a new module on your Drupal site.
Upload the downloaded zip file of the Module and click on the Install button to continue.
Click on Extend/Modules from the top navigation bar again and scroll down till you find miniOrange OAuth Client. Click on the checkbox next to it and click on the Install button to enable the module.
Now click on Configuration in Drupal dashboard then click on Drupal OAuth Client Configuration.
In Configure OAuth Application:
Select application from dropdown list.
Copy the CallBack/Redirect URL and save it on your OAuth Provider.
Fill in the following details:
Custom app name
Client ID which is application ID from Step 1.
Client Secret which is key value from step 1.
Access Token Endpoint
Then click on Save Configuration
Now click on the Test Configuration button. This Test Configuration link will give you the list of the attributes that are coming from your OAuth Provider.
Copy the email and the name attributes and save them under the Attribute & Role Mapping tab in the Email Attribute and Name Attribute text field respectively. Please note: This step is mandatory for your login to work. Click on the Save Configuration button to save your attribute configurations.
Now logout and go to your Drupal 8 site’s login page, you will automatically find a Login with there. If you want to add your login link to other pages as well, please follow the steps given in the below image:
If you want to check out our complete list of features and our various licensing plans, you can go to the Upgrade Plans tab in the module.
Congratulations, you have successfully configured the miniOrange Drupal OAuth Client module.