Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearerTokenOptions ¶
type BearerTokenOptions struct { // AuxiliaryTenants are additional tenant IDs for authenticating cross-tenant requests. // The policy will add a token from each of these tenants to every request. The // authenticating user or service principal must be a guest in these tenants, and the // policy's credential must support multitenant authentication. AuxiliaryTenants []string // Scopes contains the list of permission scopes required for the token. Scopes []string }
BearerTokenOptions configures the bearer token policy's behavior.
type ClientOptions ¶ added in v1.3.0
type ClientOptions struct { policy.ClientOptions // AuxiliaryTenants are additional tenant IDs for authenticating cross-tenant requests. // The client will add a token from each of these tenants to every request. The // authenticating user or service principal must be a guest in these tenants, and the // client's credential must support multitenant authentication. AuxiliaryTenants []string // DisableRPRegistration disables the auto-RP registration policy. Defaults to false. DisableRPRegistration bool }
ClientOptions contains configuration settings for a client's pipeline.
func (*ClientOptions) Clone ¶ added in v1.4.0
func (o *ClientOptions) Clone() *ClientOptions
Clone return a deep copy of the current options.
type RegistrationOptions ¶
type RegistrationOptions struct { policy.ClientOptions // MaxAttempts is the total number of times to attempt automatic registration // in the event that an attempt fails. // The default value is 3. // Set to a value less than zero to disable the policy. MaxAttempts int // PollingDelay is the amount of time to sleep between polling intervals. // The default value is 15 seconds. // A value less than zero means no delay between polling intervals (not recommended). PollingDelay time.Duration // PollingDuration is the amount of time to wait before abandoning polling. // The default valule is 5 minutes. // NOTE: Setting this to a small value might cause the policy to prematurely fail. PollingDuration time.Duration }
RegistrationOptions configures the registration policy's behavior. All zero-value fields will be initialized with their default values.
Click to show internal directories.
Click to hide internal directories.