If you have a service, which calls another service, chances are that you need to retrieve and store a token for authentication. In this blog post we will take a look at an approach on how to handle this, with a single class. Let's start with the code (for those of you who just want … Continue reading How to build a Token Provider (with cache)
Category: Programming
Everything that has to do with programming (mainly C#) without any other specific purpose.
Authentication with JWT in .NET 6
In this post we will look into authentication with JSON Web Tokens (JWTs) in .NET 6. If you don't know what a JWT is, I strongly recommend you read this introduction first. It will make the rest of the post a lot easier to understand. First things first, create a new C# project of the … Continue reading Authentication with JWT in .NET 6
Simple things – It’s not that simple
One of the most interesting words in software development (including no-code stuff, which I'm currently working on) is "Simple". The word itself seems really simple and hence we tend to use it without further thinking. But actually it's not that simple. Let's consider an example: A co-worker comes to you asking for a solution. They … Continue reading Simple things – It’s not that simple
XPath – The path to better automation
XPath stands for XML Path Language (don’t ask me how, but luckily it’s not that important to this post). It’s a query like language made to easily navigate XML. Let’s look at a simple example. <book> <title>Agile Conversations</title> <author>Douglas Squirrel and Jeffrey Frederick</author> <price>19.95</price> </book> Then you can use XPath to select the ‘Author’ node … Continue reading XPath – The path to better automation
Be concise
Before any of you start nitpicking, let me just say this right away: This blog post will not be concise. In fact only very few (if any) blog posts are actually concise. However, when it comes to code - which I want to talk about - being concise is incredibly important. You cannot add 20 … Continue reading Be concise
Write better documentation with four simple steps
While it's tempting to have no documentation, it's often times not a very good idea. To me, documentation is a bit like vacuuming your house. I know it's a good idea. I also know why it's a good idea. Yet somehow, it's still a really daunting task, that I keep postponing until "tomorrow". So with … Continue reading Write better documentation with four simple steps
Singletons – Are they really evil?
So a few weeks back I learned about the Singleton Pattern (this wasn't the first time I heard of it, I just never really needed it before). I decided to make a tweet - mainly to imprint in my memory, what I learned that week. The response I got was this: Now this got me … Continue reading Singletons – Are they really evil?