Skip to content

Commit 4f4e086

Browse files
committed
Unify IdentityModel versions in nuspecs
1 parent 633e7d2 commit 4f4e086

File tree

6 files changed

+16
-18
lines changed

6 files changed

+16
-18
lines changed

build/Sakefile.shade

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ var AUTHORS='Microsoft'
44
var SHIP='${Version(4, 0, 0, "alpha1")}'
55
var DEV='${Version(0, 31, 0, "pre")}'
66
set FINAL_MILESTONE='${false}'
7-
8-
var AZUREAD_JWT_SUFFIX='.406020025-pre'
9-
var AZUREAD_EXT_SUFFIX='.406020025-pre'
7+
var AZUREAD_VERSION='5.2.0'
8+
var AZUREAD_SUFFIX='.406020025-pre'
109
var VERSION='${SHIP.VERSION}'
1110
var FULL_VERSION='${SHIP.FULL_VERSION}'
1211
var EULA='https://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm'
@@ -271,16 +270,15 @@ var signing='${new List<string>()}'
271270
test if='OFFICIAL_BUILD && !RELEASE_BUILD'
272271
-title = title.Split(new[]{"("}, StringSplitOptions.None)[0] + string.Format(" (nightly {0:yyyy MMM dd})", DateTime.Now);
273272

274-
var azureAdJwtSuffix='${AZUREAD_JWT_SUFFIX}'
275-
set azureAdJwtSuffix='' if='OFFICIAL_BUILD && RELEASE_BUILD && FINAL_MILESTONE'
276-
var azureAdExtSuffix='${AZUREAD_EXT_SUFFIX}'
277-
set azureAdExtSuffix='' if='OFFICIAL_BUILD && RELEASE_BUILD && FINAL_MILESTONE'
273+
var azureAdVersion='${AZUREAD_VERSION}'
274+
var azureAdSuffix='${AZUREAD_SUFFIX}'
275+
set azureAdSuffix='' if='OFFICIAL_BUILD && RELEASE_BUILD && FINAL_MILESTONE'
278276

279277
var licenseUrl='${EULA}'
280278
var projectUrl='${PROJECT_URL}'
281279
var tags='${TAGS}'
282280

283-
nuget-pack nuspecFile='${file}' outputDir='${TARGET_DIR}' extra='-NoPackageAnalysis -Symbols -Properties "id=${baseName};authors=${AUTHORS};author=${AUTHORS};title=${title};description=${description};licenseUrl=${licenseUrl};projectUrl=${projectUrl};tags=${tags};azureAdJwtSuffix=${azureAdJwtSuffix};azureAdExtSuffix=${azureAdExtSuffix}"'
281+
nuget-pack nuspecFile='${file}' outputDir='${TARGET_DIR}' extra='-NoPackageAnalysis -Symbols -Properties "id=${baseName};authors=${AUTHORS};author=${AUTHORS};title=${title};description=${description};licenseUrl=${licenseUrl};projectUrl=${projectUrl};tags=${tags};azureAdVersion=${azureAdVersion};azureAdSuffix=${azureAdSuffix}"'
284282

285283
#nuget-deploy target='deploy' description='Upload NuGet packages to gallery'
286284
var extra=''

src/Microsoft.Owin.Security.ActiveDirectory/Microsoft.Owin.Security.ActiveDirectory.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<dependency id="Microsoft.Owin.Security" version="$version$" />
2222
<dependency id="Microsoft.Owin.Security.OAuth" version="$version$" />
2323
<dependency id="Microsoft.Owin.Security.Jwt" version="$version$" />
24-
<dependency id="System.IdentityModel.Tokens.Jwt" version="5.2.0$azureAdJwtSuffix$" />
24+
<dependency id="System.IdentityModel.Tokens.Jwt" version="$azureAdVersion$$azureAdSuffix$" />
2525
</dependencies>
2626
</metadata>
2727
<files>

src/Microsoft.Owin.Security.ActiveDirectory/WsFedCachingSecurityTokenProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Diagnostics.CodeAnalysis;
7+
using System.IdentityModel.Tokens;
78
using System.Net.Http;
89
using System.Threading;
9-
using System.IdentityModel.Tokens;
1010
using Microsoft.Owin.Security.Jwt;
1111

1212
namespace Microsoft.Owin.Security.ActiveDirectory

src/Microsoft.Owin.Security.Jwt/Microsoft.Owin.Security.Jwt.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<dependency id="Microsoft.Owin" version="$version$" />
1717
<dependency id="Microsoft.Owin.Security" version="$version$" />
1818
<dependency id="Microsoft.Owin.Security.OAuth" version="$version$" />
19-
<dependency id="System.IdentityModel.Tokens.Jwt" version="5.2.0$azureAdJwtSuffix$" />
19+
<dependency id="System.IdentityModel.Tokens.Jwt" version="$azureAdVersion$$azureAdSuffix$" />
2020
</dependencies>
2121
</metadata>
2222
<files>

src/Microsoft.Owin.Security.OpenIdConnect/Microsoft.Owin.Security.OpenIdConnect.nuspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
<dependency id="Owin" version="1.0" />
2222
<dependency id="Microsoft.Owin" version="$version$" />
2323
<dependency id="Microsoft.Owin.Security" version="$version$" />
24-
<dependency id="System.IdentityModel.Tokens.Jwt" version="5.2.0$azureAdJwtSuffix$" />
25-
<dependency id="Microsoft.IdentityModel.Logging" version="5.2.0$azureAdJwtSuffix$" />
26-
<dependency id="Microsoft.IdentityModel.Protocols" version="5.2.0$azureAdJwtSuffix$" />
27-
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="5.2.0$azureAdJwtSuffix$" />
28-
<dependency id="Microsoft.IdentityModel.Tokens" version="5.2.0$azureAdJwtSuffix$" />
24+
<dependency id="System.IdentityModel.Tokens.Jwt" version="$azureAdVersion$$azureAdSuffix$" />
25+
<dependency id="Microsoft.IdentityModel.Logging" version="$azureAdVersion$$azureAdSuffix$" />
26+
<dependency id="Microsoft.IdentityModel.Protocols" version="$azureAdVersion$$azureAdSuffix$" />
27+
<dependency id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="$azureAdVersion$$azureAdSuffix$" />
28+
<dependency id="Microsoft.IdentityModel.Tokens" version="$azureAdVersion$$azureAdSuffix$" />
2929
</dependencies>
3030
</metadata>
3131
<files>

src/Microsoft.Owin.Security.WsFederation/Microsoft.Owin.Security.WsFederation.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<dependency id="Owin" version="1.0" />
2222
<dependency id="Microsoft.Owin" version="$version$" />
2323
<dependency id="Microsoft.Owin.Security" version="$version$" />
24-
<dependency id="System.IdentityModel.Tokens.Jwt" version="5.2.0$azureAdJwtSuffix$" />
25-
<dependency id="Microsoft.IdentityModel.Protocols.WsFederation" version="5.2.0$azureAdExtSuffix$" />
24+
<dependency id="System.IdentityModel.Tokens.Jwt" version="$azureAdVersion$$azureAdSuffix$" />
25+
<dependency id="Microsoft.IdentityModel.Protocols.WsFederation" version="$azureAdVersion$$azureAdSuffix$" />
2626
</dependencies>
2727
</metadata>
2828
<files>

0 commit comments

Comments
 (0)