Class InteractiveBrowserLoginOptions
Options for LoginAsync(InteractiveBrowserLoginOptions, HttpClient?, ILoggerFactory?, CancellationToken).
public sealed class InteractiveBrowserLoginOptions
- Inheritance
-
objectInteractiveBrowserLoginOptions
Properties
AuthorizeEndpoint
The authorization endpoint URL.
public required string AuthorizeEndpoint { get; init; }
Property Value
ClientId
The OAuth client ID.
public required string ClientId { get; init; }
Property Value
ClientSecret
The client secret for confidential clients, or null for public clients.
public string? ClientSecret { get; init; }
Property Value
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
RedirectPath
The path component of the loopback redirect URI.
public string RedirectPath { get; init; }
Property Value
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
SuccessHtml
The HTML page shown in the browser after a successful login.
public string SuccessHtml { get; init; }
Property Value
Timeout
How long to wait for the user to complete the login in the browser.
public TimeSpan Timeout { get; init; }
Property Value
TokenEndpoint
The token endpoint URL.
public required string TokenEndpoint { get; init; }