Skip to content

Commit a47083b

Browse files
committed
Service Fabric active directory DLL
1 parent 9fd3f8a commit a47083b

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

Tasks/ServiceFabricDeploy/make.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
{
2+
"externals": {
3+
"nugetv2": [
4+
{
5+
"name": "Microsoft.IdentityModel.Clients.ActiveDirectory",
6+
"version": "2.23.302261847",
7+
"repository": "https://www.nuget.org/api/v2/",
8+
"cp": [
9+
{
10+
"source":"lib/net45/Microsoft.IdentityModel.Clients.ActiveDirectory.dll"
11+
}
12+
]
13+
}
14+
]
15+
},
216
"cp": [
317
{
418
"source": "ServiceFabricSDK",

Tasks/ServiceFabricDeploy/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"version": {
1414
"Major": 1,
1515
"Minor": 2,
16-
"Patch": 1
16+
"Patch": 2
1717
},
1818
"minimumAgentVersion": "1.95.0",
1919
"groups": [

Tasks/ServiceFabricDeploy/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"version": {
1414
"Major": 1,
1515
"Minor": 2,
16-
"Patch": 1
16+
"Patch": 2
1717
},
1818
"minimumAgentVersion": "1.95.0",
1919
"groups": [

Tasks/ServiceFabricDeploy/utilities.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ function Get-AadSecurityToken
9090
Write-Host (Get-VstsLocString -Key ClientAppId -ArgumentList $clientApplicationId)
9191

9292
# Acquire AAD access token
93-
$serverOMDirectory = Get-VstsTaskVariable -Name 'Agent.ServerOMDirectory' -Require
94-
Add-Type -LiteralPath "$serverOMDirectory\Microsoft.IdentityModel.Clients.ActiveDirectory.dll"
93+
Add-Type -LiteralPath "$PSScriptRoot\Microsoft.IdentityModel.Clients.ActiveDirectory.dll"
9594
$authContext = Create-Object -TypeName Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext -ArgumentList @($authority)
9695
$authParams = $ConnectedServiceEndpoint.Auth.Parameters
9796
$userCredential = Create-Object -TypeName Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential -ArgumentList @($authParams.Username, $authParams.Password)

0 commit comments

Comments
 (0)