Updating the MSAL extension (#283)
This commit is contained in:
Родитель
d4c3ae0685
Коммит
47e0999778
|
@ -20,6 +20,13 @@
|
|||
|
||||
# Change Log
|
||||
|
||||
## 3.0.8 - March 2019
|
||||
|
||||
* Authentication
|
||||
* Addressed issue [#266](https://github.com/microsoft/Partner-Center-PowerShell/issues/266) that was impacting the presistent token cache on Linux when libsecret was not installed
|
||||
* Devices
|
||||
* Addressed issue [#281](https://github.com/microsoft/Partner-Center-PowerShell/issues/281) that was causing the incorrect output for the creation date of a device batch
|
||||
|
||||
## 3.0.7 - February 2020
|
||||
|
||||
* Devices
|
||||
|
|
|
@ -86,52 +86,52 @@ steps:
|
|||
installationPath: $(Agent.ToolsDirectory)/dotnet
|
||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
|
||||
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
|
||||
displayName: 'ESRP code signing'
|
||||
inputs:
|
||||
ConnectedServiceName: 'esrp-partner-center-powershell'
|
||||
FolderPath: 'artifacts\$(buildConfiguration)'
|
||||
Pattern: 'Microsoft.Store.PartnerCenter.dll,Microsoft.Store.PartnerCenter.PowerShell.dll,Microsoft.Azure.Management.*.dll,Microsoft.Graph.*.dll,*.ps1xml,*.psd1, *.psm1'
|
||||
signConfigType: inlineSignParams
|
||||
inlineOperation: |
|
||||
[
|
||||
{
|
||||
"keyCode": "CP-230012",
|
||||
"operationSetCode": "SigntoolSign",
|
||||
"parameters": [
|
||||
{
|
||||
"parameterName": "OpusName",
|
||||
"parameterValue": "Microsoft"
|
||||
},
|
||||
{
|
||||
"parameterName": "OpusInfo",
|
||||
"parameterValue": "http://www.microsoft.com"
|
||||
},
|
||||
{
|
||||
"parameterName": "FileDigest",
|
||||
"parameterValue": "/fd \"SHA256\""
|
||||
},
|
||||
{
|
||||
"parameterName": "PageHash",
|
||||
"parameterValue": "/NPH"
|
||||
},
|
||||
{
|
||||
"parameterName": "TimeStamp",
|
||||
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
|
||||
}
|
||||
],
|
||||
"toolName": "sign",
|
||||
"toolVersion": "1.0"
|
||||
},
|
||||
{
|
||||
"keyCode": "CP-230012",
|
||||
"operationSetCode": "SigntoolVerify",
|
||||
"parameters": [ ],
|
||||
"toolName": "sign",
|
||||
"toolVersion": "1.0"
|
||||
}
|
||||
]
|
||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
#- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
|
||||
# displayName: 'ESRP code signing'
|
||||
# inputs:
|
||||
# ConnectedServiceName: 'esrp-partner-center-powershell'
|
||||
# FolderPath: 'artifacts\$(buildConfiguration)'
|
||||
# Pattern: 'Microsoft.Store.PartnerCenter.dll,Microsoft.Store.PartnerCenter.PowerShell.dll,Microsoft.Azure.Management.*.dll,Microsoft.Graph.*.dll,*.ps1xml,*.psd1, *.psm1'
|
||||
# signConfigType: inlineSignParams
|
||||
# inlineOperation: |
|
||||
# [
|
||||
# {
|
||||
# "keyCode": "CP-230012",
|
||||
# "operationSetCode": "SigntoolSign",
|
||||
# "parameters": [
|
||||
# {
|
||||
# "parameterName": "OpusName",
|
||||
# "parameterValue": "Microsoft"
|
||||
# },
|
||||
# {
|
||||
# "parameterName": "OpusInfo",
|
||||
# "parameterValue": "http://www.microsoft.com"
|
||||
# },
|
||||
# {
|
||||
# "parameterName": "FileDigest",
|
||||
# "parameterValue": "/fd \"SHA256\""
|
||||
# },
|
||||
# {
|
||||
# "parameterName": "PageHash",
|
||||
# "parameterValue": "/NPH"
|
||||
# },
|
||||
# {
|
||||
# "parameterName": "TimeStamp",
|
||||
# "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
|
||||
# }
|
||||
# ],
|
||||
# "toolName": "sign",
|
||||
# "toolVersion": "1.0"
|
||||
# },
|
||||
# {
|
||||
# "keyCode": "CP-230012",
|
||||
# "operationSetCode": "SigntoolVerify",
|
||||
# "parameters": [ ],
|
||||
# "toolName": "sign",
|
||||
# "toolVersion": "1.0"
|
||||
# }
|
||||
# ]
|
||||
# condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
|
||||
- task: DeleteFiles@1
|
||||
displayName: Delete the code sign summary file
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
# Generated by: Microsoft Corporation
|
||||
#
|
||||
# Generated on: 02/13/2010
|
||||
# Generated on: 03/06/2020
|
||||
#
|
||||
|
||||
@{
|
||||
|
@ -11,7 +11,7 @@
|
|||
RootModule = 'PartnerCenter.psm1'
|
||||
|
||||
# Version number of this module.
|
||||
ModuleVersion = '3.0.7'
|
||||
ModuleVersion = '3.0.8'
|
||||
|
||||
# Supported PSEditions
|
||||
CompatiblePSEditions = 'Core', 'Desktop'
|
||||
|
@ -61,13 +61,7 @@
|
|||
'.\Microsoft.Graph.Core.dll',
|
||||
'.\Microsoft.Extensions.Caching.Abstractions.dll',
|
||||
'.\Microsoft.Extensions.Caching.Memory.dll',
|
||||
'.\Microsoft.Extensions.Configuration.Abstractions.dll',
|
||||
'.\Microsoft.Extensions.Configuration.Binder.dll',
|
||||
'.\Microsoft.Extensions.Configuration.dll',
|
||||
'.\Microsoft.Extensions.Configuration.EnvironmentVariables.dll',
|
||||
'.\Microsoft.Extensions.DependencyInjection.Abstractions.dll',
|
||||
'.\Microsoft.Extensions.Logging.Abstractions.dll',
|
||||
'.\Microsoft.Extensions.Logging.dll',
|
||||
'.\Microsoft.Extensions.Options.dll',
|
||||
'.\Microsoft.Extensions.Primitives.dll',
|
||||
'.\Microsoft.Identity.Client.dll',
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
# Generated by: Microsoft Corporation
|
||||
#
|
||||
# Generated on: 01/22/2020
|
||||
# Generated on: 03/06/2020
|
||||
#
|
||||
|
||||
$PSDefaultParameterValues.Clear()
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
<OutputPath>$(RepoArtifacts)$(Configuration)\</OutputPath>
|
||||
<PublishDir>$(OutputPath)</PublishDir>
|
||||
<Version>3.0.7</Version>
|
||||
<Version>3.0.8</Version>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
</PropertyGroup>
|
||||
|
@ -32,7 +32,7 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.4.0" PrivateAssets="All" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.2.0" />
|
||||
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="2.3.0-preview" />
|
||||
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="2.6.0-preview" />
|
||||
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="5.6.0" />
|
||||
<PackageReference Include="PartnerCenter.DotNet" Version="1.15.6" />
|
||||
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" PrivateAssets="All" />
|
||||
|
|
|
@ -5,6 +5,7 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Utilities
|
|||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using Identity.Client;
|
||||
using Identity.Client.Extensions.Msal;
|
||||
|
@ -154,7 +155,7 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Utilities
|
|||
attribute1: new KeyValuePair<string, string>("MsalClientID", "Microsoft.Developer.IdentityService"),
|
||||
attribute2: new KeyValuePair<string, string>("MsalClientVersion", "1.0.0.0"));
|
||||
|
||||
return new MsalCacheStorage(builder.Build());
|
||||
return MsalCacheStorage.Create(builder.Build(), new TraceSource("Partner Center PowerShell"));
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче