Need Quality Code? Get Silver Backed

XUnit async/await Foot Guns

21stNov

0

by Gary H

XUnit makes a number of "interesting" choices when it comes to task scheduling and async/await in an effort to exert control over concurrency. In this post we look at some of the foot guns this introduces when it comes to integration tests with external resources or heavy async use.

Read More

C#   Testing   XUnit  

.Net Core Login Persistence

6thJul

0

by Gary H

Cookie based authentication uses encrypted cookies in the user's browser to authenticate them. This post looks at how we can extend authentication to persist the encryption keys in a database so that we can authenticate a cookie on multiple machines in a server farm or to persist them across application resets.

Read More

C#   Security   ASP.Net   .NetCore  

Revisiting SSL for Development

19thOct

0

by Gary H

With the release of Chrome 62/Firefox 52 any site that you visit with any form of user input which does not have a valid SSL certificate will add a note to the address bar saying "Not secure". In this article we will look at generating a local certificate to use with your development website in a way that browsers trust.

Read More

Security   Encryption   SSL  

IIS IP Restrictions on AWS

6thApr

0

by Gary H

When testing it's important to replicate your live environment as closely as possible but equally we don't always want to make our test environments publicly accessible. In this article we will look at how we can use IIS Dynamic IP Restrictions to block unwanted visitors to a site even when using CloudFront or Elastic Load Balancing.

Read More

Security   AWS