![]() |
VOOZH | about |
dotnet add package BizDoc.Core.Okta --version 6.8.1
NuGet\Install-Package BizDoc.Core.Okta -Version 6.8.1
<PackageReference Include="BizDoc.Core.Okta" Version="6.8.1" />
<PackageVersion Include="BizDoc.Core.Okta" Version="6.8.1" />Directory.Packages.props
<PackageReference Include="BizDoc.Core.Okta" />Project file
paket add BizDoc.Core.Okta --version 6.8.1
#r "nuget: BizDoc.Core.Okta, 6.8.1"
#:package BizDoc.Core.Okta@6.8.1
#addin nuget:?package=BizDoc.Core.Okta&version=6.8.1Install as a Cake Addin
#tool nuget:?package=BizDoc.Core.Okta&version=6.8.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} |
| Name | Usage |
|---|---|
| CostCenterResolver | |
| DepartmentResolver | |
| DivisionResolver | |
| OrganizationResolver |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. 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 | |
|---|---|---|---|
| 6.8.1 | 797 | 10/18/2022 | 6.8.1 is deprecated because it is no longer maintained. |
| 6.8.0 | 612 | 10/16/2022 | |
| 6.7.3 | 573 | 8/8/2022 | |
| 6.7.2 | 572 | 7/21/2022 | |
| 6.7.1 | 596 | 7/12/2022 | |
| 6.6.5 | 615 | 7/3/2022 | |
| 6.6.4 | 591 | 6/26/2022 | |
| 6.6.3 | 570 | 6/26/2022 | |
| 6.6.2 | 577 | 6/15/2022 | |
| 6.6.1 | 582 | 5/28/2022 | |
| 6.6.0 | 575 | 5/20/2022 | |
| 6.5.3 | 610 | 4/27/2022 | |
| 6.5.2 | 593 | 4/13/2022 | |
| 6.5.1 | 571 | 4/6/2022 | |
| 6.5.0 | 630 | 4/5/2022 | |
| 6.4.0 | 620 | 3/8/2022 | |
| 6.3.5 | 620 | 2/16/2022 | |
| 6.3.4 | 648 | 2/10/2022 | |
| 6.3.3 | 608 | 2/7/2022 | |
| 6.3.2 | 644 | 2/2/2022 |