Active Directory Authorisation Tokens in C#

Here is a quick tip for anyone trying to get an OAuth2 JWT token from an Azure AD 2.0 endpoint.