Documentation
¶
Index ¶
- Constants
- func LogIn(authority, clientID, scope string) (string, error)
- func LogInSilently(clientID string) (string, error)
- func Logout(clientID string) error
- func NewCredential(authority, clientID string, opts CredentialOptions) (azcore.TokenCredential, error)
- func Shutdown()
- type CredentialOptions
Constants ¶
View Source
const Supported = false
Supported indicates whether this build includes OneAuth integration.
Variables ¶
This section is empty.
Functions ¶
func LogInSilently ¶
func NewCredential ¶
func NewCredential(authority, clientID string, opts CredentialOptions) (azcore.TokenCredential, error)
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
}
Click to show internal directories.
Click to hide internal directories.