Microsoft Entra ID
Formerly Azure Active Directory
Declaring your Backend API
Registering Your Application
Providing the parameters to oidc-spa
// Directory (tenant) ID:
const DIRECTORY_ID = "XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
// Application (client) ID:
const CLIENT_ID = "XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
// Application ID URI: (Of the API!)
const SCOPE_FOR_API= "api://my-app-api/access_as_user";
createOidc({
issuerUri: `https://login.microsoftonline.com/${DIRECTORY_ID}/v2.0`,
clientId: CLIENT_ID,
scopes: ["profile", SCOPE_FOR_API],
// ...
});// Directory (tenant) ID:
const DIRECTORY_ID = "XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
// Application (client) ID:
const CLIENT_ID = "XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
// Application ID URI: (Of the API!)
const SCOPE_FOR_API= "api://my-app-api/access_as_user";
bootstrapOidc({
issuerUri: `https://login.microsoftonline.com/${DIRECTORY_ID}/v2.0`,
clientId: CLIENT_ID,
scopes: ["profile", SCOPE_FOR_API],
// ...
});Last updated
Was this helpful?