BizDoc.Authentication.Okta 6.8.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package BizDoc.Authentication.Okta --version 6.8.6
NuGet\Install-Package BizDoc.Authentication.Okta -Version 6.8.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BizDoc.Authentication.Okta" Version="6.8.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BizDoc.Authentication.Okta --version 6.8.6
#r "nuget: BizDoc.Authentication.Okta, 6.8.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BizDoc.Authentication.Okta as a Cake Addin
#addin nuget:?package=BizDoc.Authentication.Okta&version=6.8.6

// Install BizDoc.Authentication.Okta as a Cake Tool
#tool nuget:?package=BizDoc.Authentication.Okta&version=6.8.6

Okta for BizDoc

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.

  1. For both modes, install BizDoc Nuget package:
dotnet add package BizDoc.Core.Okta
  1. Add Okta application. If using server mode, choose Web Application. If using client mode, choose ODIC - OpenID Connect, and select SPA.

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.

  1. In startup.cs, add Okta service.

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.

  1. Client mode only, install Angular package:
npm i @bizdoc/okta

Add Okta configuration in Angular app.module:

OktaModule.forRoot({
  domain: 'domain-name',
  clientId: 'client-id'  
})

Roles

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
System

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}

Widgets

Staff Performance, current user is manager.

Staff Pending, current user is manager.

Groups Performance, selected groups, or current user groups.

Attributes

Implicit user attributes for analysis axes.

Name Usage
CostCenter
Department
Division
Organization

A type must be set for attributes in Architecture tool to enable the analysis to map to an axis.

Rules

User attribues available within rule expression.

Name Usage
CostCenter
Department
Division
Organization
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.5.13 72 4/23/2024
8.4.13 89 2/22/2024
8.4.12 83 2/20/2024
8.4.11 90 2/7/2024
8.4.10 81 2/2/2024
8.4.9 91 1/18/2024
8.4.8 91 1/12/2024
7.4.8 112 1/1/2024
7.4.7 107 1/1/2024
7.4.6 104 1/1/2024
7.4.5 116 12/31/2023
7.4.4 154 11/26/2023
7.4.3 115 11/22/2023
7.4.2 109 11/22/2023
7.3.2 125 8/14/2023
7.2.2 156 6/24/2023
7.1.2 138 6/2/2023
7.1.1 131 5/11/2023
7.1.0 133 5/4/2023
7.0.2 175 4/11/2023
7.0.1 199 3/30/2023
7.0.0 289 11/28/2022
6.8.11 309 11/8/2022
6.8.10 321 11/6/2022
6.8.8 334 10/31/2022
6.8.7 335 10/28/2022
6.8.6 342 10/27/2022
6.8.5 341 10/27/2022
6.8.4 370 10/24/2022
6.8.3 402 10/20/2022
6.8.2 386 10/20/2022