Fixes #36621, support adfs auth through adal (#37909)

* update username/password auth to use adal lib

* remove default client_id after discussion

* fix lint error: trailing whitespace
This commit is contained in:
Yunge Zhu
2018-05-24 07:37:44 +08:00
committed by Matt Davis
parent e93fbedcc7
commit 21ea92feca
4 changed files with 117 additions and 6 deletions

View File

@@ -84,7 +84,16 @@ To pass Active Directory username/password via the environment, define the follo
* AZURE_AD_USER
* AZURE_PASSWORD
* AZURE_SUBSCRIPTION_ID
To pass Active Directory username/password in ADFS via the environment, define the following variables:
* AZURE_AD_USER
* AZURE_PASSWORD
* AZURE_CLIENT_ID
* AZURE_TENANT
* AZURE_ADFS_AUTHORITY_URL
"AZURE_ADFS_AUTHORITY_URL" is optional. It's necessary only when you have own ADFS authority like https://xxx.com/adfs.
Storing in a File
`````````````````
@@ -118,7 +127,16 @@ Or, pass the following parameters for Active Directory username/password:
* ad_user
* password
* subscription_id
Or, pass the following parameters for ADFS username/pasword:
* ad_user
* password
* client_id
* tenant
* adfs_authority_url
"adfs_authority_url" is optional. It's necessary only when you have own ADFS authority like https://xxx.com/adfs.
Other Cloud Environments