Documentation ¶
Index ¶
- func GetServicePrincipalToken(adEndpointFromSpec, tenantID, clientID, secret, resource string, ...) ([]*adal.Token, error)
- func GetServicePrincipalTokenFromMSI(resource string) (*adal.Token, error)
- func GetServicePrincipalTokenFromMSIWithUserAssignedID(clientID, resource string) (*adal.Token, error)
- func GetServicePrincipalTokenWithCertificate(adEndpointFromSpec, tenantID, clientID string, certificate []byte, ...) (*adal.Token, error)
- func InitReporter(reporterInstance *metrics.Reporter)
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, 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, error)
GetServicePrincipalTokenFromMSIWithUserAssignedID return the token for the assigned user
func GetServicePrincipalTokenWithCertificate ¶
func GetServicePrincipalTokenWithCertificate(adEndpointFromSpec, tenantID, clientID string, certificate []byte, password, resource string) (*adal.Token, error)
GetServicePrincipalTokenWithCertificate return the token for the assigned user with certificate
func InitReporter ¶
InitReporter initialize the reporter with given reporter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.