How to integrate SSO with our own Javascript application using Node.js REST API

Saranraj Rasu 0 Reputation points

I am trying to achieve SSO using Azure Active Directory with help of Node.js REST API. i am expecting the scenario is same what google Auth is doing, Same like need to implement with REST API.

Expected Working Scenario:

Same SSO login need to implement with our REST API application. Here i am not able to find Which Graph API endpoint need to use

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
791 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,483 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce ( 60,871 Reputation points

    I assume your rest api uses jwt bearer tokens. You should be able to configure you current google oauth code, but here is a sample using msal (microsoft oauth sdk) for azure ad:

    note: you need to create an application in azure ad for your node app. if you want scopes, you define them in api portion of the defining the application