Table of Contents

Class InteractiveBrowserLoginOptions

Namespace
BpNexT.NET.GraphQL.Client.OAuth
Assembly
BpNexT.NET.GraphQL.dll
public sealed class InteractiveBrowserLoginOptions
Inheritance
object
InteractiveBrowserLoginOptions

Properties

AuthorizeEndpoint

The authorization endpoint URL.

public required string AuthorizeEndpoint { get; init; }

Property Value

string

ClientId

The OAuth client ID.

public required string ClientId { get; init; }

Property Value

string

ClientSecret

The client secret for confidential clients, or null for public clients.

public string? ClientSecret { get; init; }

Property Value

string

OpenBrowser

Optional callback that opens the authorization URL. Defaults to launching the system browser; override e.g. to show the URL in a UI or for testing. Interactive login requires an interactive user session — in a non-interactive host (e.g. a Windows service) the default browser launch fails.

public Action<string>? OpenBrowser { get; init; }

Property Value

Action<string>

RedirectPath

The path component of the loopback redirect URI.

public string RedirectPath { get; init; }

Property Value

string

RedirectPort

The loopback port for the redirect URI. If null, a free port is picked automatically — note that the resulting http://localhost:{port}{RedirectPath} must match the redirect URI registered for the client, so a fixed port is usually required.

public int? RedirectPort { get; init; }

Property Value

int?

Scope

The requested scope.

public string Scope { get; init; }

Property Value

string

SuccessHtml

The HTML page shown in the browser after a successful login.

public string SuccessHtml { get; init; }

Property Value

string

Timeout

How long to wait for the user to complete the login in the browser.

public TimeSpan Timeout { get; init; }

Property Value

TimeSpan

TokenEndpoint

The token endpoint URL.

public required string TokenEndpoint { get; init; }

Property Value

string