![]() |
VOOZH | about |
dotnet add package BizDoc.Authentication.Okta --version 9.1.1
NuGet\Install-Package BizDoc.Authentication.Okta -Version 9.1.1
<PackageReference Include="BizDoc.Authentication.Okta" Version="9.1.1" />
<PackageVersion Include="BizDoc.Authentication.Okta" Version="9.1.1" />Directory.Packages.props
<PackageReference Include="BizDoc.Authentication.Okta" />Project file
paket add BizDoc.Authentication.Okta --version 9.1.1
#r "nuget: BizDoc.Authentication.Okta, 9.1.1"
#:package BizDoc.Authentication.Okta@9.1.1
#addin nuget:?package=BizDoc.Authentication.Okta&version=9.1.1Install as a Cake Addin
#tool nuget:?package=BizDoc.Authentication.Okta&version=9.1.1Install as a Cake Tool
BizDoc supports Okta for both authentication and authorization, in one of two configurations: server flow or client flow.
Server flow redirects unauthorized users to Okta sign-in page on Okta domain, and handles the redirect. Client flow prompts unauthorized users for credentials in an hosted widget, and negotiate with Okta on the background.
dotnet add package BizDoc.Core.Okta
Okta sign-in redirect url should match "/authorization-code/callback" on server mode, and no path for client mode.
Create an API Token to allow BizDoc to retrieve users information.
For server flow, use AddOktaRedirect:
AddBizDoc(o=> {
o.ApplicationUri = "https://app-domain";
})
.AddOktaServer(o=> {
o.ApiToken = "api-token";
o.Domain = "domain-name";
o.ClientId = "client-id";
o.ClientSecret = "client-secret";
});
...
UseBizDoc().
.UseOktaServer();
For client mode, use AddOkta:
AddBizDoc(...)
.AddOkta(o=> {
o.ApiToken = "api-token";
o.Domain = "domain-name";
}).
UseIdentityProvider();
The UseIdentityProvider() method registers an identity provider which retrieve user information from Okta. To use a different provider, while still authenticating via Okta, see Implementing Identity Provider.
npm i @bizdoc/okta
Add Okta configuration in Angular app.module:
OktaModule.forRoot({
domain: 'domain-name',
clientId: 'client-id'
})
In order to map user groups to BizDoc roles for authorization purposes, add a new claim to Okta Authorization Server with the following specifications.
| Property | Value |
|---|---|
| Name | bizdoc.roles |
| Include in token type | ID Token |
| Value type | Groups |
| Filter | Matches regex, .* |
| Include in | Any scope |
Add an attribute to either application profile or all profiles and set its type to boolean. Add a claim in API server that map to the profile attribute you created.
| Property | Value |
|---|---|
| Name | bizdoc.admin |
| Include in token type | ID Token |
| Value type | Expression |
| Value | user.{attr-name-here} |
Groups.
Roles.
Staff Performance, current user is manager or sibling uner same manager.
Staff Pending, current user is manager.
Groups Performance, selected groups, or current user groups.
Departments Performance. User profile Department.
Divisions Performance. User profile Division.
Cost Centers Performance. User profile CostCenter.
Organizations Performance. User profile Organization.
Implicit user attributes for analysis axes.
| Name | Usage |
|---|---|
| CostCenter | |
| Department | |
| Division | |
| Organization | |
| EmployeeNumber | |
| Owner Additional Property | PropertyName required. |
A type must be set for attributes in Architecture tool to enable the analysis to map to an axis.
User attribues available within rule expression.
| Name | Usage |
|---|---|
| CostCenter | |
| Department | |
| Division | |
| Organization | |
| User Additional Property | PropertyName required. |
| Owner Additional Property | PropertyName required. |
Manager.
GroupRule.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.1.1 | 271 | 9/13/2025 |
| 9.1.0 | 227 | 7/27/2025 |
| 9.0.1 | 281 | 6/20/2025 |
| 9.0.0 | 347 | 5/15/2025 |
| 8.14.7 | 270 | 3/18/2025 |
| 8.13.7 | 290 | 3/12/2025 |
| 8.13.6 | 237 | 2/27/2025 |
| 8.11.6 | 226 | 2/6/2025 |
| 8.10.6 | 224 | 1/20/2025 |
| 8.9.6 | 250 | 12/15/2024 |
| 8.9.5 | 232 | 12/2/2024 |
| 8.9.4 | 255 | 11/20/2024 |
| 8.9.3 | 221 | 10/13/2024 |
| 8.9.2 | 239 | 10/8/2024 |
| 8.8.1 | 280 | 9/17/2024 |
| 8.8.0 | 248 | 8/28/2024 |
| 8.7.0 | 210 | 7/29/2024 |
| 8.6.0 | 266 | 7/10/2024 |
| 8.5.15 | 257 | 5/28/2024 |
| 8.5.14 | 252 | 5/14/2024 |