Tag Archives: AzureAD
VIDEO – Protect WebAPI with Azure AD Authentication
Demo of Azure portal Enterprise Application registration including:
* Register new Enterprise App
* Tenant and App GUID
* Download sample ZIP
* Restore NuGet packages
* Install CORS package
* Verify with Chrome and Fiddler
Video
Source Code
VIDEO – Azure AD protected Web API in an AngularJS SPA
Recently I walked through an Azure AD Web API sample project on GitHub at https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp-dotnet-webapi and recorded a brief 14 minute video of the install and deployment steps. Watch below and enjoy. Cheers! ![]()
Video
Screenshots
Error Message
Could not load type ‘System.IdentityModel.Tokens.TokenValidationParameters’ from assembly ‘System.IdentityModel.Tokens.Jwt, Version=5.0.0.127, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.
( others at IdentityServer3#3017 saw the same with JWT breaking change)
Extra NuGet Package Step
Update-Package Install-Package Microsoft.AspNet.WebApi.Cors Install-Package System.IdentityModel.Tokens.Jwt -Version 4.0.2.206221351
References
VIDEO – Secure WebAPI with AzureAD
I recorded a quick getting started video for this Microsoft GitHub sample. Walks through all the steps and even shows the SQL Local DB storage and how to verify security with Fiddler Composer sending test HTTP traffic.
This pattern is a great way to enhance Officer 365 SharePoint team sites with advanced functionality. Host AngularJS single page application (SPA) on the front end along with an Azure AD secured WebAPI backend. Lots of potential for replacing traditional WSP farm solutions with new cloud development patterns.
Source Code
https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp-dotnet-webapi
Video
