0.1.3 • Published 2 years ago
@bizdoc/auzre v0.1.3
Auzre for BizDoc
Azure Active Directory authentication for BizDoc.
This library expects BizDoc.Core.Azure Nuget on the server side.
Setting up
npm i @bizdoc/azure
In app.module:
import { AzureModule } from '@bizdoc/core';
imports: [
BizDocModule.forRoot(...),
AzureModule.forRoot({
clientId: "client-id"
})
]
Server side
Create Azure application.
startup.cs:
services.AddBizDoc(...).
AddAzureActiveDirectory(o => {
options.ApplicationIdURI = "api://my-domain/my-app-id";
options.ClientId = "client-id";
options.TenantId = "tenent-id";
options.ClientSecret = "client-secret";
});