Documentation ¶
Index ¶
- func AddAzureAuthentication(clientOpts *sdkhttpclient.Options, authOpts *AuthOptions, ...)
- func AzureMiddleware(authOpts *AuthOptions, credentials azcredentials.AzureCredentials) httpclient.Middleware
- type AuthOptions
- func (opts *AuthOptions) AddRateLimitSession(enable bool)
- func (opts *AuthOptions) AddTokenProvider(authType string, factory AzureTokenProviderFactory)
- func (opts *AuthOptions) AllowUserIdentity()
- func (opts *AuthOptions) AllowedEndpoints(endpoints []string) error
- func (opts *AuthOptions) Scopes(scopes []string)
- type AzureTokenProviderFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAzureAuthentication ¶
func AddAzureAuthentication(clientOpts *sdkhttpclient.Options, authOpts *AuthOptions, credentials azcredentials.AzureCredentials)
func AzureMiddleware ¶
func AzureMiddleware(authOpts *AuthOptions, credentials azcredentials.AzureCredentials) httpclient.Middleware
Types ¶
type AuthOptions ¶
type AuthOptions struct {
// contains filtered or unexported fields
}
func NewAuthOptions ¶
func NewAuthOptions(settings *azsettings.AzureSettings) *AuthOptions
func (*AuthOptions) AddRateLimitSession ¶ added in v2.0.2
func (opts *AuthOptions) AddRateLimitSession(enable bool)
func (*AuthOptions) AddTokenProvider ¶
func (opts *AuthOptions) AddTokenProvider(authType string, factory AzureTokenProviderFactory)
func (*AuthOptions) AllowUserIdentity ¶
func (opts *AuthOptions) AllowUserIdentity()
func (*AuthOptions) AllowedEndpoints ¶
func (opts *AuthOptions) AllowedEndpoints(endpoints []string) error
func (*AuthOptions) Scopes ¶
func (opts *AuthOptions) Scopes(scopes []string)
type AzureTokenProviderFactory ¶
type AzureTokenProviderFactory = func(*azsettings.AzureSettings, azcredentials.AzureCredentials) (aztokenprovider.AzureTokenProvider, error)
Click to show internal directories.
Click to hide internal directories.