Documentation ¶
Index ¶
- func GetServicePrincipalToken(adEndpointFromSpec, tenantID, clientID, secret, resource string, ...) (_ []*adal.Token, err error)
- func GetServicePrincipalTokenFromMSI(resource string) (_ *adal.Token, err error)
- func GetServicePrincipalTokenFromMSIWithUserAssignedID(clientID, resource string) (_ *adal.Token, err error)
- func GetServicePrincipalTokenWithCertificate(adEndpointFromSpec, tenantID, clientID string, certificate []byte, ...) (_ *adal.Token, err error)
- func InitReporter(reporterInstance *metrics.Reporter)
- func IsHealthCheckError(err error) bool
- func IsTokenRefreshError(err error) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServicePrincipalToken ¶
func GetServicePrincipalToken(adEndpointFromSpec, tenantID, clientID, secret, resource string, auxiliaryTenantIDs []string) (_ []*adal.Token, err error)
GetServicePrincipalToken return the token for the assigned user with client secret
func GetServicePrincipalTokenFromMSI ¶
GetServicePrincipalTokenFromMSI return the token for the assigned user
func GetServicePrincipalTokenFromMSIWithUserAssignedID ¶
func GetServicePrincipalTokenFromMSIWithUserAssignedID(clientID, resource string) (_ *adal.Token, err error)
GetServicePrincipalTokenFromMSIWithUserAssignedID return the token for the assigned user
func GetServicePrincipalTokenWithCertificate ¶ added in v1.6.2
func GetServicePrincipalTokenWithCertificate(adEndpointFromSpec, tenantID, clientID string, certificate []byte, password, resource string) (_ *adal.Token, err error)
GetServicePrincipalTokenWithCertificate return the token for the assigned user with certificate
func InitReporter ¶ added in v1.5.4
InitReporter initialize the reporter with given reporter
func IsHealthCheckError ¶ added in v1.8.6
IsHealthCheckError returns true if the error is not a token refresh error.
func IsTokenRefreshError ¶ added in v1.8.6
IsTokenRefreshError returns true if the error is a TokenRefreshError. This method can be used to distinguish health check errors from token refresh errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.