I've written lately about zero downtime releases with Azure App Service. Zero downtime releases are only successful if your authentication mechanism survives a new deployment. We looked in my last post at how to achieve this with Azure's in-built authentication mechanism; Easy Auth.
15 posts tagged with "ASP.NET"
View All TagsMaking Easy Auth tokens survive releases on Linux Azure App Service
I wrote recently about zero downtime deployments on Azure App Service. Many applications require authentication, and ours is no exception. In our case we're using Azure Active Directory facilitated by "Easy Auth" which provides authentication to our App Service.
ASP.NET, Serilog and Application Insights
If you're deploying an ASP.NET application to Azure App Services / Azure Container Apps or similar, there's a decent chance you'll also be using the fantastic Serilog and will want to plug it into Azure's Application Insights.
Azure Easy Auth and Roles with .NET and Microsoft.Identity.Web
I wrote recently about how to get Azure Easy Auth to work with roles. This involved borrowing the approach used by MaximeRouiller.Azure.AppService.EasyAuth.
Make Microsoft.Identity.Web respond with 403 forbidden instead of a 302 redirect
By default Microsoft.Identity.Web
responds to unauthorized requests with a 302 (redirect). Do you want a 403 (forbidden) instead? Here's how.
Autofac 6, integration tests and .NET generic hosting
I blogged a little while ago around to support integration tests using Autofac. This was specific to Autofac but documented a workaround for a long standing issue with ConfigureTestContainer
that was introduced into .NET core 3.0 which affects all third-party containers that use ConfigureTestContainer
in their tests.
Dual boot authentication with ASP.NET
This is a post about having two kinds of authentication working at the same time in ASP.Net Core. But choosing which authentication method to use dynamically at runtime; based upon the criteria of your choice.
UseStaticFiles for ASP.Net Framework
This is a guide on how not to expose all your static files to the world at large when working with the ASP.Net Framework. How to move from a blocklisting approach to a allowlisting approach.
A tale of Angular, html5mode, ASP.Net MVC and ASP.Net Web API
So. You want to kick hash based routing to the kerb. You want real URLs. You've read the HTML5 mode section of the Angular $location docs and you're good to go. It's just a matter of dropping $locationProvider.html5Mode(true)
into your app initialisation right?
Wrong.
Using Gulp to inject scripts and styles tags directly into your HTML
This is very probably the dullest title for a blog post I've ever come up with. Read on though folks - it's definitely going to pick up...
Getting more RESTful with Web API and IHttpActionResult
Up until, well yesterday really, I tended to have my Web API action methods all returning 200's no matter what. Successful request? 200 for you sir! Some validation error in the model? 200 for you too ma'am - but I'll wrap up the validation errors and send them back too. Database error? 200 and and an error message.
AngularJS meet ASP.Net Server Validation
So. You're using AngularJS to build your front end with ASP.Net running on the server side. You're a trustworthy dev - you know that validation on the client will only get you so far. You need to validate on the server.
Caching and cache-busting with RequireJS
Having put together a demo of using TypeScript with RequireJS my attention turned quickly to caching. Or rather, IE forced me to think about caching.
Unit testing MVC controllers / Mocking UrlHelper
I have put a name to my pain...
Using Web Optimization with MVC 3
A while ago I wrote about optimally serving up JavaScript in web applications. I mentioned that Microsoft had come up with a NuGet package called Microsoft ASP.NET Web Optimization which could help with that by minifying and bundling CSS and JavaScript. At the time I was wondering if I would be able to to use this package with pre-existing MVC 3 projects (given that the package had been released together with MVC 4). Happily it turns out you can. But it's not quite as straightforward as I might have liked so I've documented how to get going with this here...