BizDoc.Authentication.Azure
8.60.2
dotnet add package BizDoc.Authentication.Azure --version 8.60.2
NuGet\Install-Package BizDoc.Authentication.Azure -Version 8.60.2
<PackageReference Include="BizDoc.Authentication.Azure" Version="8.60.2" />
paket add BizDoc.Authentication.Azure --version 8.60.2
#r "nuget: BizDoc.Authentication.Azure, 8.60.2"
// Install BizDoc.Authentication.Azure as a Cake Addin #addin nuget:?package=BizDoc.Authentication.Azure&version=8.60.2 // Install BizDoc.Authentication.Azure as a Cake Tool #tool nuget:?package=BizDoc.Authentication.Azure&version=8.60.2
Azure for BizDoc
Add Azure authentication and storage for BizDoc.
dotnet add package BizDoc.Authentication.Azure
program.cs
using System.Security.Claims;
builder.Services.AddBizDoc(options => {
options.IdentityClaimType = ClaimTypes.Name;
}).
AddAzure(options => {
options.ApplicationId = "{application-id-here}";
options.TenantId = "{tenant-id-here}";
options.ClientId = "{client-id-here}";
options.ClientSecret = "{client-secret-here}";
options.SystemGroupName = "{system-id-here}";
});
s
app.UseAzure();
You can use the appsettings.json file.
{
"Azure": {
"ApplicationId": "{application-id-here}",
"TenantId": "{tenant-id-here}",
"ClientId": "{client-id-here}",
"ClientSecret": "{client-secret-here}",
"SystemGroupName": "{system-id-here}"
}
}
And provide the section name to AddAzure().
builder.Services.AddBizDoc(options => {
...
}).
AddAzure(builder.Configuration.GetSection("Azure"), configure => {
...
});
The ApplicationId should be set to the application Object ID and the ClientId to the Application (client) ID.
IdentityClaimType needs to be set to one of:
Claim | Usage |
---|---|
ClaimConstants.ObjectId | |
ClaimTypes.Name or ClaimTypes.Upn | |
ClaimTypes.Sid | |
ClaimTypes.Email | |
AzureClaimTypes.EmployeeId | |
AzureClaimTypes.OnPremisesSecurityIdentifier | |
AzureClaimTypes.OnPremisesSamAccountName | |
AzureClaimTypes.OnPremisesUserPrincipalName |
AzureClaimTypes (EmployeeId, etc.) are supported only on SAML. Add Attributes & Claims matching the claim name.
The SystemGroupName maps to BizDoc admin group.
Use Password-Based Single sign-on
AddAzure(options => {
...
}, configure =>
configure
.UsePasswordBasedSignOn()
.UseIdentityProvider());
Uee SAML
Set Reply URL to /signin-oidc, and Logout Url to /signout-callback-oidc.
AddAzure(options => {
...
options.ClientCertificates = [ new CertificateDescription {
SourceType= CertificateSource.StoreWithThumbprint,
CertificateStorePath= "CurrentUser/My",
CertificateThumbprint = "{certificate-thumbprint-here}"
} ];
}, configure =>
configure
.UseSAML()
.UseIdentityProvider());
Set mode
to SAML in app.module.ts.
You can use the appsettings.json file.
{
"Azure": {
"ClientCertificates": [
{
"SourceType": "StoreWithThumbprint",
"CertificateStorePath": "CurrentUser/My",
"CertificateThumbprint": "{certificate-thumbprint-here}"
}
],
...
}
}
Download certificate and set CertificateThumbprint.
Use blob storage
Set a storage for attachments.
AddBizDoc().
AddAzure(
options => ...,
configure => configure
.UseBlobFileStore(o => o.ConnectionString = "{connection-string-here}"));
Use mail
Set EmailAddress.
builder.Services.AddBizDoc().
AddAzure(
options => ...,
configure => configure
.UseEmailer() /* replaces SMTP */
.UseMailFeedback(o => o.EmailAddress = "{bizdoc-address-here}"));
app.UseBizDoc().UseMailFeedback();
Configure
Check ID tokens and switch Allow public client flows to yes.
API Permissions
User.Read.All
UserTeamwork.Read.All
Group.Read.All
GroupMember.Read.All
Organization.Read.All
Place.Read.All
Contacts.Read
OrgContact.Read.All
Sites.Read.All
Team.ReadBasic.All
TeamMember.Read.All
In addition, Mail.ReadWrite
and Mail.Send
is required when UseEmailer() or UseMailFeedback().
Workflow
Manager, document owner manager in Azure.
Directory Role.
Widgets
My Group Peers.
My Team Peers.
Direct Reporters Pending.
Teams Performance.
Groups Performance.
Departments Performance.
Administrative Units Performance.
Source
Name | Usage |
---|---|
DirectoryGroups | |
DirectoryRoles | |
BookingBusinesses | |
Contacts | |
DirectoryRoles | |
Places | |
Organizations | |
AdministrativeUnits | |
EducationSchools | |
EducationClasses | |
Sites | |
Teams | |
Plans | |
Departments | User department |
Attributes
Name | Usage |
---|---|
OwnerCountry | |
OwnerTeamworkData | require property name |
OwnerEmployeeOrgData | require property name |
OwnerAdditionalData | require property name |
OwnerPlannerData | require property name |
OwnerEmployeeId | |
OwnerEmployeeType | |
OwnerDepartment | |
OwnerEmployeeDivision | |
OwnerEmployeeCostCenter | |
OwnerMySite |
Rules
Name | Usage |
---|---|
OwnerDepartment | |
OwnerEmployeeDivision | |
OwnerEmployeeCostCenter | |
OwnerEmployeeType | |
OwnerCompanyName | |
UserEmployeeDivision | |
UserEmployeeCostCenter | |
UserEmployeeType | |
OwnerTeams | |
UserAdditionalData | require property name |
UserTeamworkAdditionalData | require property name |
OwnerTeamworkAdditionalData | require property name |
UserEmployeeOrgData | require property name |
OwnerAdditionalData | require property name |
Resolvers
Name | Usage |
---|---|
DivisionResolver | |
CostCenterResolver |
Angular
Install the module.
npm i @bizdoc/azure
Import the module in app.module.
imports: [AzureModule.forRoot({
clientId: '{client-id-here}',
mode: 'SAML|Password-Based',
})]
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Azure.Core (>= 1.44.1)
- Azure.Identity (>= 1.13.1)
- Azure.Storage.Blobs (>= 12.23.0)
- BizDoc.Core (>= 8.32.4)
- Microsoft.AspNetCore.Authentication.Certificate (>= 8.0.10)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.10)
- Microsoft.AspNetCore.Authentication.OpenIdConnect (>= 8.0.10)
- Microsoft.Graph (>= 5.62.0)
- Microsoft.Identity.Web (>= 3.4.0)
- Microsoft.Identity.Web.DownstreamApi (>= 3.4.0)
- Microsoft.Identity.Web.MicrosoftGraph (>= 3.4.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BizDoc.Authentication.Azure:
Package | Downloads |
---|---|
BizDoc.Social.Teams
Teams for BizDoc |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.60.2 | 43 | 11/18/2024 |
8.59.2 | 49 | 11/13/2024 |
8.59.1 | 82 | 10/17/2024 |
8.58.1 | 81 | 10/13/2024 |
8.57.1 | 88 | 10/8/2024 |
8.56.0 | 119 | 9/17/2024 |
8.54.0 | 99 | 8/28/2024 |
8.53.0 | 99 | 8/26/2024 |
8.52.0 | 74 | 7/29/2024 |
8.50.0 | 109 | 7/10/2024 |
8.49.4 | 117 | 6/23/2024 |
8.47.4 | 100 | 6/9/2024 |
8.46.3 | 110 | 5/28/2024 |
8.46.2 | 108 | 5/26/2024 |
8.45.2 | 89 | 5/21/2024 |
8.45.1 | 104 | 5/19/2024 |
8.44.4 | 117 | 4/23/2024 |
8.43.3 | 115 | 4/14/2024 |
8.42.3 | 122 | 4/8/2024 |
8.41.3 | 130 | 4/6/2024 |
8.41.2 | 121 | 3/2/2024 |
8.41.0 | 109 | 3/1/2024 |
8.40.5 | 108 | 2/29/2024 |
8.40.4 | 107 | 2/29/2024 |
8.40.2 | 107 | 2/29/2024 |
8.40.1 | 104 | 2/28/2024 |
8.40.0 | 106 | 2/28/2024 |
8.39.6 | 101 | 2/28/2024 |
8.39.5 | 116 | 2/27/2024 |
8.38.5 | 116 | 2/20/2024 |
8.37.4 | 142 | 2/7/2024 |
8.36.4 | 123 | 2/2/2024 |
8.35.4 | 132 | 1/17/2024 |
8.35.3 | 136 | 1/12/2024 |
7.35.3 | 122 | 1/6/2024 |
7.34.5 | 150 | 12/23/2023 |
7.34.3 | 114 | 12/30/2023 |
7.34.2 | 124 | 12/30/2023 |
7.34.1 | 121 | 12/29/2023 |
7.33.5 | 141 | 12/12/2023 |
7.33.4 | 133 | 11/28/2023 |
7.32.4 | 123 | 11/26/2023 |
7.32.3 | 131 | 11/23/2023 |
7.31.3 | 123 | 11/22/2023 |
7.30.3 | 111 | 11/22/2023 |
7.30.2 | 121 | 11/21/2023 |
7.30.1 | 122 | 11/21/2023 |
7.30.0 | 124 | 11/17/2023 |
7.28.0 | 122 | 11/15/2023 |
7.27.0 | 121 | 11/9/2023 |
7.25.0 | 131 | 11/5/2023 |
7.23.3 | 137 | 10/30/2023 |
7.22.3 | 145 | 10/21/2023 |
7.20.3 | 151 | 9/26/2023 |
7.19.3 | 137 | 9/23/2023 |
7.18.3 | 142 | 9/17/2023 |
7.17.3 | 155 | 9/10/2023 |
7.16.3 | 156 | 9/6/2023 |
7.15.3 | 152 | 8/31/2023 |
7.14.3 | 153 | 8/22/2023 |
7.13.3 | 156 | 8/14/2023 |
7.12.3 | 156 | 7/28/2023 |
7.10.3 | 166 | 7/9/2023 |
7.9.3 | 193 | 7/6/2023 |
7.8.3 | 462 | 6/24/2023 |
7.7.1 | 172 | 6/18/2023 |
7.6.1 | 165 | 6/13/2023 |
7.5.1 | 178 | 6/8/2023 |
7.5.0 | 167 | 5/28/2023 |
7.4.0 | 164 | 5/22/2023 |
7.3.0 | 166 | 5/4/2023 |
7.0.1 | 209 | 3/30/2023 |
7.0.0 | 333 | 11/28/2022 |
6.8.9 | 345 | 11/8/2022 |
6.8.8 | 370 | 11/6/2022 |
6.8.7 | 364 | 10/31/2022 |
6.8.6 | 371 | 10/27/2022 |
6.8.5 | 409 | 10/24/2022 |
6.8.4 | 455 | 10/20/2022 |
6.8.3 | 432 | 10/20/2022 |