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