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

Saranraj Rasu 0 Reputation points
2023-06-02T09:59:13.6033333+00:00

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 (SqlWork.com) 60,871 Reputation points
    2023-06-06T19:33:52.4566667+00:00

    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:

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/enable-authentication-in-node-web-app-with-api

    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