"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "staging/src/k8s.io/legacy-cloud-providers/azure/auth/azure_auth.go" between
kubernetes-1.15.9.tar.gz and kubernetes-1.15.10.tar.gz

About: Kubernetes is a platform for automating deployment, scaling, and operations of application containers across clusters of hosts (written in "Go"). 1.15.x series.

azure_auth.go  (kubernetes-1.15.9):azure_auth.go  (kubernetes-1.15.10)
skipping to change at line 80 skipping to change at line 80
return adal.NewServicePrincipalTokenFromMSIWithUserAssign edID(msiEndpoint, return adal.NewServicePrincipalTokenFromMSIWithUserAssign edID(msiEndpoint,
env.ServiceManagementEndpoint, env.ServiceManagementEndpoint,
config.UserAssignedIdentityID) config.UserAssignedIdentityID)
} }
klog.V(4).Info("azure: using System Assigned MSI to retrieve acce ss token") klog.V(4).Info("azure: using System Assigned MSI to retrieve acce ss token")
return adal.NewServicePrincipalTokenFromMSI( return adal.NewServicePrincipalTokenFromMSI(
msiEndpoint, msiEndpoint,
env.ServiceManagementEndpoint) env.ServiceManagementEndpoint)
} }
oauthConfig, err := adal.NewOAuthConfigWithAPIVersion(env.ActiveDirectory Endpoint, config.TenantID, nil) oauthConfig, err := adal.NewOAuthConfig(env.ActiveDirectoryEndpoint, conf ig.TenantID)
if err != nil { if err != nil {
return nil, fmt.Errorf("creating the OAuth config: %v", err) return nil, fmt.Errorf("creating the OAuth config: %v", err)
} }
if len(config.AADClientSecret) > 0 { if len(config.AADClientSecret) > 0 {
klog.V(2).Infoln("azure: using client_id+client_secret to retriev e access token") klog.V(2).Infoln("azure: using client_id+client_secret to retriev e access token")
return adal.NewServicePrincipalToken( return adal.NewServicePrincipalToken(
*oauthConfig, *oauthConfig,
config.AADClientID, config.AADClientID,
config.AADClientSecret, config.AADClientSecret,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)