title: Get an Access Token from an Identity Provider in .NET Core?
body: <p>I am setting up OAuth 2 and OIDC at my company.</p>
  <p>I used <a href="https://github.com/IdentityModel/oidc-client-js" rel="nofollow noreferrer">oidc-client.js</a> to handle getting the access token for calls to API's protected by OAuth 2 and OIDC from a javascript client.</p>
  <p>I now need to get an access token when the client is a C# .NET Core application calling an API that is protected by OAuth 2 and OIDC.</p>
  <p>I could try to code this up myself.  But there is a lot to it and I worry I will get some of it wrong.  Hence this question:</p>
  <p><strong>Does .NET Core include libraries to get a Access Token from an Identity Provider?</strong></p>
  <p><strong>To be clear</strong>, I am <strong>NOT</strong> looking for the code to protect an ASP.NET service with OAuth2 and OIDC.  That code is very common and easily found.  (So easy in fact that find what I am looking for is hard.)</p>