auth

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RadixCliClientID    = "ed6cb804-8193-4e55-9d3d-8b88688482b3"
	AzureTenantID       = "3aa4a235-b6e2-48d5-9195-7fcf05b459b0"
	AccessTokenCacheKey = "access_token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureClientSecret added in v1.30.0

type AzureClientSecret struct {
	Authority string
	// contains filtered or unexported fields
}

func NewAzureClientSecret added in v1.30.0

func NewAzureClientSecret(cache cache2.Cache, authority string) *AzureClientSecret

func (*AzureClientSecret) Authenticate added in v1.30.0

func (p *AzureClientSecret) Authenticate(ctx context.Context, azureClientId, azureClientSecret string) (string, error)

func (*AzureClientSecret) GetAccessToken added in v1.30.0

func (p *AzureClientSecret) GetAccessToken(_ context.Context) (string, error)

type AzureFederatedCredentials added in v1.30.0

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

func NewAzureFederatedCredentials added in v1.30.0

func NewAzureFederatedCredentials(cache cache.Cache) *AzureFederatedCredentials

func (*AzureFederatedCredentials) Authenticate added in v1.30.0

func (p *AzureFederatedCredentials) Authenticate(ctx context.Context, azureClientId, federatedTokenFile string) (string, error)

func (*AzureFederatedCredentials) GetAccessToken added in v1.30.0

func (p *AzureFederatedCredentials) GetAccessToken(ctx context.Context) (string, error)

type AzureGithub added in v1.30.0

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

func NewAzureGithub added in v1.30.0

func NewAzureGithub(cache cache2.Cache, authority string) *AzureGithub

func (*AzureGithub) Authenticate added in v1.30.0

func (p *AzureGithub) Authenticate(ctx context.Context, azureClientId string) (string, error)

func (*AzureGithub) GetAccessToken added in v1.30.0

func (p *AzureGithub) GetAccessToken(ctx context.Context) (string, error)

type GetAccessTokener added in v1.30.0

type GetAccessTokener interface {
	// GetAccessToken returns a valid token
	GetAccessToken(context.Context) (string, error)
}

type MsalDeviceCode added in v1.30.0

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

func NewMsalDeviceCode added in v1.30.0

func NewMsalDeviceCode(cache cache.ExportReplace, authority string) (*MsalDeviceCode, error)

func (*MsalDeviceCode) Authenticate added in v1.30.0

func (p *MsalDeviceCode) Authenticate(ctx context.Context) (string, error)

func (*MsalDeviceCode) GetAccessToken added in v1.30.0

func (p *MsalDeviceCode) GetAccessToken(ctx context.Context) (string, error)

type MsalInteractive added in v1.30.0

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

func NewMsalInteractive added in v1.30.0

func NewMsalInteractive(cache cache.ExportReplace, authority string) (*MsalInteractive, error)

func (*MsalInteractive) Authenticate added in v1.30.0

func (p *MsalInteractive) Authenticate(ctx context.Context) (string, error)

func (*MsalInteractive) GetAccessToken added in v1.30.0

func (p *MsalInteractive) GetAccessToken(ctx context.Context) (string, error)

type MsalTokenCache added in v1.30.0

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

MsalTokenCache is a token azurecache

func NewMsalTokenCache added in v1.30.0

func NewMsalTokenCache(cache cache.Cache, key string) *MsalTokenCache

NewMsalTokenCache creates a new token azurecache

func (*MsalTokenCache) Export added in v1.30.0

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

func (*MsalTokenCache) Replace added in v1.30.0

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

type Provider added in v1.30.0

type Provider interface {
	Login(ctx context.Context, useInteractiveLogin, useDeviceCode, useGithubCredentials bool, azureClientId, federatedTokenFile, azureClientSecret string) error
	Logout() error
	runtime.ClientAuthInfoWriter
}

Provider is an Provider that uses MSAL

func New added in v1.30.0

func New() (Provider, error)

New creates a new Provider

Jump to

Keyboard shortcuts

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