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)
Tag: c#
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
Browser automation with Selenium
Selenium is a browser automation framework. This means that it can control the browser, in a manner similar to what you would do youself. For instance, it could be something like this: Open Google ChromeNavigate to Google.comType "Funny cat videos" into the search barClick the "Search" buttonOpen the first site in the search result. Now … Continue reading Browser automation with Selenium
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?