oneauth

package
v0.0.0-...-ba6934c Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Supported = false

Supported indicates whether this build includes OneAuth integration.

Variables

This section is empty.

Functions

func LogIn

func LogIn(authority, clientID, scope string) (string, error)

func LogInSilently

func LogInSilently(clientID string) (string, error)

func Logout

func Logout(clientID string) error

func NewCredential

func NewCredential(authority, clientID string, opts CredentialOptions) (azcore.TokenCredential, error)

func Shutdown

func Shutdown()

Types

type CredentialOptions

type CredentialOptions struct {
	// HomeAccountID of a previously authenticated user the credential
	// should attempt to authenticate from OneAuth's cache.
	HomeAccountID string
	// NoPrompt restricts the credential to silent authentication.
	// When true, authentication fail when it requires user interaction.
	NoPrompt bool
}

Jump to

Keyboard shortcuts

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