Articles on: Authentication

How to configure Microsoft login for my PluginLab Portal?

Introduction



PluginLab provides you many sign-in providers to authenticate your users.

Microsoft is one of them and may be helpful if you target corporate people.

In this article, we'll show you how you can configure your OAuth app on your Microsoft Account to connect it with PluginLab Portal.


Important



For this integration to work properly, it's crucial to give access to the Microsoft Graph API to your OAuth app. So don't rush off and read every section thoughtfully :)

Getting Started



Go to your Azure Portal
Click on Azure Active Directory
On the left menu, select App Registration
Click on New registration










Don't close the Azure Portal window and go to PluginLab > Members > OAuth Schema > OAuth
Choose Microsoft and open the wizard
Copy the Redirect URI given by PluginLab
Fill the OAuth form on your Azure Portal and paste your Redirect URI

Here make sure to give access to all accounts of any AD Directory + Personal account. You also have to select Web as redirect URI method.




Copy the redirect URI

Fill out the form



Save your app.
On the app page, create a new Client Secret by clicking on Add a certificate or secret
Select a long enough secret expiration.
Copy the Client Value and the Client Id and paste them into the PluginLab modal



Create a secret

New secret

Set a long expiration

Copy the secret value

Copy the client id

Paste them into pluginlab



YOU ARE NOT DONE YET. We mostly finished to configure our app. However the following steps are crucial to make sure our integration works properly.

Go to API Permissions in the left menu
Click on Add a permission
In the slider, click on Microsoft Graph and choose Delegated permissions
Select the following permissions: email, openid, profile.
Save everything.
















NOW YOU'RE DONE! CONGRATS!

Congrats, now you can complete the PluginLab modal if not already, your Microsoft Azure App is configured properly!

Your users will see the following button in your Portal:



If you installed the plugin with OAuth on ChatGPT already, no extra change is required.

If you've never installed your plugin with OAuth on ChatGPT, then you must install it. You can check this tutorial to learn how to do.


Feeling lost?



Feel free to reach out to us anytime. We'll be more than happy to help and hop on a call with you if needed

Updated on: 29/07/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!