auth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGIN_HEADLESS               = "headless"
	LOGIN_WITH_BROWSER           = "browser"
	LOGIN_WITH_SERVICE_PRINCIPAL = "service_principal"
)
View Source
const (
	USERNAME      credential = "username"
	PASSWORD      credential = "password"
	CLIENT_ID     credential = "client_id"
	CLIENT_SECRET credential = "client_secret"
	MODE          credential = "mode"
)

Variables

This section is empty.

Functions

func Login

func Login(tenantName, tenantId string, saveToken bool, ctx context.Context) (string, error)

Types

type TokenStore

type TokenStore struct {
	Token     string
	ExpiresAt time.Time
}

Jump to

Keyboard shortcuts

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