title: Connecting to OpenID Connect server programmatically to retrieve JWT claims
body: <p><a href="https://stackoverflow.com/q/73480948/1704458">I've asked this question</a> about doing a similar thing with SAML tokens. I only point to this question so you understand what I am looking for. In simple words - WebAPI-to-WebAPI authentication. <a href="https://i.stack.imgur.com/Cb9Qs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cb9Qs.png" alt="Something like this" /></a></p>
  <p>Here I am trying to achieve the same thing with OpenID Connect. Bottom line, I want to supply the credentials to the OpenId Authentication server and retrieve a token, which I can then parse and get claims out of it. All in code.</p>
  <p>I see a lot of this kind stuff</p>
  <pre><code>https://accounts.google.com/o/oauth2/v2/auth?
    response_type=code&amp;
    client_id=424911365001.apps.googleusercontent.com&amp;
    scope=openid%20email&amp;
    redirect_uri=https%3A//oauth2.example.com/code&amp;
    state=security_token%3D138r5719ru3e1%26url%3Dhttps%3A%2F%2Foauth2-login-demo.example.com%2FmyHome&amp;
    login_hint=jsmith@example.com&amp;
    nonce=0394852-3190485-2490358&amp;
    hd=example.com
  </code></pre>
  <p>But I am not getting, how to logon any given user programmatically?</p>