File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed
Tasks/ServiceFabricDeploy Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1313 "version" : {
1414 "Major" : 1 ,
1515 "Minor" : 2 ,
16- "Patch" : 1
16+ "Patch" : 2
1717 },
1818 "minimumAgentVersion" : " 1.95.0" ,
1919 "groups" : [
Original file line number Diff line number Diff line change 1313 "version" : {
1414 "Major" : 1 ,
1515 "Minor" : 2 ,
16- "Patch" : 1
16+ "Patch" : 2
1717 },
1818 "minimumAgentVersion" : " 1.95.0" ,
1919 "groups" : [
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments