Handle token retrieval while querying an API
Using a DelegatingHandler
In our daily job, we often have to query secure REST APIs that require our HTTP requests to have a valid access token in their Authorization header. Of course, many API come with a SDK that makes the job easier for us as it directly takes care of retrieving a token and sending the authenticated HTTP requests. However it is not always the case and knowing how to implement that using HttpClient, IMemoryCache and DelegatingHandler can become pretty useful.
Coming across Gitpod
An IDE in the browser
The other day when I was looking for a way to automate my development environment setup, I came across Gitpod. Not really what I was looking for but I discovered an awesome tool for working on open source projects.
Good bye Azure Portal, Welcome Azure CLI
Let's jump into Azure CLI !
In this article about Azure CLI, we will talk about: