auth

package
v1.8.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

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

func GetServicePrincipalTokenFromMSI(resource string) (_ *adal.Token, err error)

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

func InitReporter(reporterInstance *metrics.Reporter)

InitReporter initialize the reporter with given reporter

func IsHealthCheckError added in v1.8.6

func IsHealthCheckError(err error) bool

IsHealthCheckError returns true if the error is not a token refresh error.

func IsTokenRefreshError added in v1.8.6

func IsTokenRefreshError(err error) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL