package
0.30.0
Repository: https://github.com/netbirdio/netbird.git
Documentation: pkg.go.dev

# Functions

NewDeviceAuthorizationFlow returns device authorization flow client.
NewOAuthFlow initializes and returns the appropriate OAuth flow based on the management configuration It starts by initializing the PKCE.If this process fails, it resorts to the Device Code Flow, and if that also fails, the authentication process is deemed unsuccessful On Linux distros without desktop environment support, it only tries to initialize the Device Code Flow.
NewPKCEAuthorizationFlow returns new PKCE authorization code flow.

# Constants

HostedGrantType grant type for device flow on Hosted.

# Structs

AuthFlowInfo holds information for the OAuth 2.0 authorization flow.
Claims used when validating the access token.
DeviceAuthorizationFlow implements the OAuthFlow interface, for the Device Authorization Flow.
PKCEAuthorizationFlow implements the OAuthFlow interface for the Authorization Code Flow with PKCE.
RequestDeviceCodePayload used for request device code payload for auth0.
TokenInfo holds information of issued access token.
TokenRequestPayload used for requesting the auth0 token.
TokenRequestResponse used for parsing Hosted token's response.

# Interfaces

HTTPClient http client interface for API calls.
OAuthFlow represents an interface for authorization using different OAuth 2.0 flows.