An example on how to retrieve tokens for accessing Maskinporten protected APIs (fdir, ID-porten, etc.). Dotnet port of https://github.com/difi/jwt-grant-generator.
Scopes, claims and grant type might differ depending on your usage (service provider).
NB: Not production ready code. I take no liability for usage.
dotnet run