auth

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MSALAuthProvider

type MSALAuthProvider interface {
	Login(ctx context.Context, useDeviceCode bool) error
	Logout(ctx context.Context) error
	runtime.ClientAuthInfoWriter
}

MSALAuthProvider is an AuthProvider that uses MSAL

func NewMSALAuthProvider

func NewMSALAuthProvider(radixConfig *radixconfig.RadixConfig, clientID, tenantID string) (MSALAuthProvider, error)

NewMSALAuthProvider creates a new MSALAuthProvider

type TokenCache

type TokenCache struct {
	// contains filtered or unexported fields
}

TokenCache is a token cache

func NewTokenCache

func NewTokenCache(radixConfig *radixconfig.RadixConfig) *TokenCache

NewTokenCache creates a new token cache

func (*TokenCache) Export

func (t *TokenCache) Export(ctx context.Context, cache cache.Marshaler, hints cache.ExportHints) error

Export writes the binary representation of the cache (cache.Marshal()) to external storage. This is considered opaque. Context cancellations should be honored as in Replace.

func (*TokenCache) Replace

func (t *TokenCache) Replace(ctx context.Context, cache cache.Unmarshaler, hints cache.ReplaceHints) error

Replace replaces the cache with what is in external storage. Implementors should honor Context cancellations and return context.Canceled or context.DeadlineExceeded in those cases.

Jump to

Keyboard shortcuts

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