Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) GetAccessToken ¶
type AzureClientSecret ¶
type AzureClientSecret struct {
Authority string
// contains filtered or unexported fields
}
func NewAzureClientSecret ¶
func NewAzureClientSecret(cache cache.Cache, authority string) *AzureClientSecret
func (*AzureClientSecret) Authenticate ¶
func (p *AzureClientSecret) Authenticate(ctx context.Context, azureClientId, azureClientSecret string, scopes []string) (AccessToken, error)
func (*AzureClientSecret) GetAccessToken ¶
func (p *AzureClientSecret) GetAccessToken(ctx context.Context, scopes []string) (AccessToken, error)
type AzureFederatedCredentials ¶
type AzureFederatedCredentials struct {
// contains filtered or unexported fields
}
func NewAzureFederatedCredentials ¶
func NewAzureFederatedCredentials(cache cache.Cache) *AzureFederatedCredentials
func (*AzureFederatedCredentials) Authenticate ¶
func (p *AzureFederatedCredentials) Authenticate(ctx context.Context, azureClientId, federatedTokenFile string, scopes []string) (AccessToken, error)
func (*AzureFederatedCredentials) GetAccessToken ¶
func (p *AzureFederatedCredentials) GetAccessToken(ctx context.Context, scopes []string) (AccessToken, error)
type AzureGithub ¶
type AzureGithub struct {
// contains filtered or unexported fields
}
func NewAzureGithub ¶
func NewAzureGithub(cache cache.Cache, authority string) *AzureGithub
func (*AzureGithub) Authenticate ¶
func (p *AzureGithub) Authenticate(ctx context.Context, azureClientId string, scopes []string) (AccessToken, error)
func (*AzureGithub) GetAccessToken ¶
func (p *AzureGithub) GetAccessToken(ctx context.Context, scopes []string) (AccessToken, error)
type GetAccessTokener ¶
type GetAccessTokener interface {
// GetAccessToken returns a valid token
GetAccessToken(ctx context.Context, scopes []string) (AccessToken, error)
}
type MsalDeviceCode ¶
type MsalDeviceCode struct {
// contains filtered or unexported fields
}
func NewMsalDeviceCode ¶
func NewMsalDeviceCode(cache msalcache.ExportReplace, authority string) *MsalDeviceCode
func (*MsalDeviceCode) Authenticate ¶
func (p *MsalDeviceCode) Authenticate(ctx context.Context, scopes []string) (AccessToken, error)
func (*MsalDeviceCode) GetAccessToken ¶
func (p *MsalDeviceCode) GetAccessToken(ctx context.Context, scopes []string) (AccessToken, error)
type MsalInteractive ¶
type MsalInteractive struct {
// contains filtered or unexported fields
}
func NewMsalInteractive ¶
func NewMsalInteractive(cache msalcache.ExportReplace, authority string) *MsalInteractive
func (*MsalInteractive) Authenticate ¶
func (p *MsalInteractive) Authenticate(ctx context.Context, scopes []string) (AccessToken, error)
func (*MsalInteractive) GetAccessToken ¶
func (p *MsalInteractive) GetAccessToken(ctx context.Context, scopes []string) (AccessToken, error)
type MsalTokenCache ¶
type MsalTokenCache struct {
// contains filtered or unexported fields
}
MsalTokenCache is a token azurecache
func NewMsalTokenCache ¶
func NewMsalTokenCache(cache cache.Cache, key string) *MsalTokenCache
NewMsalTokenCache creates a new token azurecache
func (*MsalTokenCache) Export ¶
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 ¶
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.