oneauth

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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