@@ -32,7 +32,7 @@ import (
32
32
var (
33
33
// ErrorNoAuth indicates that no credentials are provided.
34
34
ErrorNoAuth = fmt .Errorf ("no credentials provided for Azure cloud provider" )
35
- // Tenenatid value for Azure Stack ADFS case .
35
+ // ADFSIdentitySystem indicates value of tenantId for ADFS on Azure Stack .
36
36
ADFSIdentitySystem = "ADFS"
37
37
)
38
38
@@ -64,11 +64,11 @@ type AzureAuthConfig struct {
64
64
65
65
// GetServicePrincipalToken creates a new service principal token based on the configuration
66
66
func GetServicePrincipalToken (config * AzureAuthConfig , env * azure.Environment ) (* adal.ServicePrincipalToken , error ) {
67
- var tenantId string
67
+ var tenantID string
68
68
if strings .EqualFold (config .IdentitySystem , ADFSIdentitySystem ) {
69
- tenantId = "adfs"
69
+ tenantID = "adfs"
70
70
} else {
71
- tenantId = config .TenantID
71
+ tenantID = config .TenantID
72
72
}
73
73
74
74
if config .UseManagedIdentityExtension {
@@ -89,7 +89,7 @@ func GetServicePrincipalToken(config *AzureAuthConfig, env *azure.Environment) (
89
89
env .ServiceManagementEndpoint )
90
90
}
91
91
92
- oauthConfig , err := adal .NewOAuthConfig (env .ActiveDirectoryEndpoint , tenantId )
92
+ oauthConfig , err := adal .NewOAuthConfig (env .ActiveDirectoryEndpoint , tenantID )
93
93
if err != nil {
94
94
return nil , fmt .Errorf ("creating the OAuth config: %v" , err )
95
95
}
0 commit comments