devauth

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Audience   string
	ClientID   string
	Domain     string
	Scope      string
	UserPrompt func(UserCodePrompt) error
}

type Result

type Result struct {
	AccessToken  string
	RefreshToken string
	IDToken      string
	Expiration   time.Time
}

func DeviceAuthorizationFlow

func DeviceAuthorizationFlow(ctx context.Context, cfg Config) (Result, error)

DeviceAuthorizationFlow implements the Auth0 device authorization flow described at: https://auth0.com/docs/flows/call-your-api-using-the-device-authorization-flow https://auth0.com/docs/api/authentication#device-authorization-flow

type UserCodePrompt

type UserCodePrompt struct {
	UserCode        string
	VerificationURL string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL