Skip to content

Commit deb6fc3

Browse files
author
Kalyan Krishna
committed
One more round of nuget package updates
1 parent e32eabf commit deb6fc3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This sample demonstrates how to manually process a JWT access token in a web API
4343

4444
## Scenario: protecting a Web API - acquiring a token for the protected Web API
4545

46-
When you want to protect a Web API, you request your clients to get a [Security token](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-dev-glossary#security-token) for your API, and you validate it. Usually, for ASP.NET applications this validation is delegated to the OWIN middleware, but you can also validate it yourself, leveraging the ``Microsoft.IdentityModel.Tokens.Jwt`` library.
46+
When you want to protect a Web API, you request your clients to get a [Security token](https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-dev-glossary#security-token) for your API, and you validate it. Usually, for ASP.NET applications this validation is delegated to the OWIN middleware, but you can also validate it yourself, leveraging the ``System.IdentityModel.Tokens.Jwt`` library.
4747

4848
### Token Validation
4949

@@ -235,7 +235,7 @@ First, in Visual Studio 2017 create an empty solution to host the projects. The
235235
1. In Visual Studio, create a new `Visual C#` `ASP.NET Web Application (.NET Framework)`. Choose `Web Api` in the next screen. Leave the project's chosen authentication mode as the default, that is, `No Authentication`".
236236
2. Set SSL Enabled to be True. Note the SSL URL.
237237
3. In the project properties, Web properties, set the Project Url to be the SSL URL.
238-
4. Add the latest stable JSON Web Token Handler For the Microsoft .Net Framework 4.5 NuGet, Microsoft.IdentityModel.Tokens.Jwt, version 4.x to the project. Note: Version 5.x will not work with this sample.
238+
4. Add the latest stable JSON Web Token Handler For the Microsoft .Net Framework 4.5 NuGet, System.IdentityModel.Tokens.Jwt, version 4.x to the project. Note: Version 5.x will not work with this sample.
239239
5. Add an assembly reference to `System.IdentityModel`.
240240
6. In the `Models` folder, add a new class called `TodoItem.cs`. Copy the implementation of TodoItem from this sample into the class.
241241
7. Add a new, empty, Web API 2 controller called `TodoListController`.

TodoListService-ManualJwt/TodoListService-ManualJwt.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
<Reference Include="Microsoft.IdentityModel.Logging, Version=5.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5353
<HintPath>..\packages\Microsoft.IdentityModel.Logging.5.4.0\lib\net45\Microsoft.IdentityModel.Logging.dll</HintPath>
5454
</Reference>
55-
<Reference Include="Microsoft.IdentityModel.Protocols, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
56-
<HintPath>..\packages\Microsoft.IdentityModel.Protocols.5.2.4\lib\net45\Microsoft.IdentityModel.Protocols.dll</HintPath>
55+
<Reference Include="Microsoft.IdentityModel.Protocols, Version=5.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
56+
<HintPath>..\packages\Microsoft.IdentityModel.Protocols.5.4.0\lib\net45\Microsoft.IdentityModel.Protocols.dll</HintPath>
5757
</Reference>
58-
<Reference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect, Version=5.2.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
59-
<HintPath>..\packages\Microsoft.IdentityModel.Protocols.OpenIdConnect.5.2.4\lib\net45\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll</HintPath>
58+
<Reference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect, Version=5.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
59+
<HintPath>..\packages\Microsoft.IdentityModel.Protocols.OpenIdConnect.5.4.0\lib\net45\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll</HintPath>
6060
</Reference>
6161
<Reference Include="Microsoft.IdentityModel.Tokens, Version=5.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
6262
<HintPath>..\packages\Microsoft.IdentityModel.Tokens.5.4.0\lib\net45\Microsoft.IdentityModel.Tokens.dll</HintPath>

TodoListService-ManualJwt/packages.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<package id="Microsoft.AspNet.WebPages" version="3.2.4" targetFramework="net45" />
1515
<package id="Microsoft.IdentityModel.JsonWebTokens" version="5.4.0" targetFramework="net45" />
1616
<package id="Microsoft.IdentityModel.Logging" version="5.4.0" targetFramework="net45" />
17-
<package id="Microsoft.IdentityModel.Protocols" version="5.2.4" targetFramework="net45" />
18-
<package id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="5.2.4" targetFramework="net45" />
17+
<package id="Microsoft.IdentityModel.Protocols" version="5.4.0" targetFramework="net45" />
18+
<package id="Microsoft.IdentityModel.Protocols.OpenIdConnect" version="5.4.0" targetFramework="net45" />
1919
<package id="Microsoft.IdentityModel.Tokens" version="5.4.0" targetFramework="net45" />
2020
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
2121
<package id="Modernizr" version="2.8.3" targetFramework="net45" />

0 commit comments

Comments
 (0)