Table of Contents

Namespace BiExcellence.OpenBi.Api.Auth

Classes

OAuthAccessToken

An OAuth2 bearer access token issued by POST /oauth/token.

OAuthPkce

A PKCE pair (RFC 7636) for the authorization code flow: the Challenge goes to GetAuthorizationUri(IOpenBiApiClient, string, string?, OAuthPkce, string?, string?, string?), the Verifier - kept by the app, never sent anywhere else - to CreateAccessTokenFromAuthorizationCodeAsync(IOpenBiApiClient, string, string?, string, string?, string, CancellationToken). The server requires one for every app, and only the S256 method.

OAuthUserInfo

The authenticated user's basic profile information, from GET /oauth/userinfo.

OpenBiApiClientAuthExtensions

Authentication for IOpenBiApiClient, backed by the REST API's OAuth2 /oauth/token endpoint. Call one of LoginAsync(IOpenBiApiClient, string, string, CancellationToken)/CreateAccessTokenAsync(IOpenBiApiClient, string, string, string?, CancellationToken) (or SetAccessToken(string?) with a token obtained elsewhere) before calling any other domain's extension methods.

Interfaces

IOAuthAccessToken

An OAuth2 bearer access token issued by POST /oauth/token.

IOAuthUserInfo

The authenticated user's basic profile information, from GET /oauth/userinfo.