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 (*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 (*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 (*AzureGithub) GetAccessToken ¶ added in v1.30.0
func (p *AzureGithub) GetAccessToken(ctx context.Context) (string, error)
type GetAccessTokener ¶ added in v1.30.0
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
func (t *MsalTokenCache) Export(ctx context.Context, cache azurecache.Marshaler, hints azurecache.ExportHints) error
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
func (t *MsalTokenCache) Replace(ctx context.Context, cache azurecache.Unmarshaler, hints azurecache.ReplaceHints) error
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
Click to show internal directories.
Click to hide internal directories.