title: IdentityServer4 how to create identity token?
body: <p>I follow several tutorials and the IdentityServer4 documentation and its terminology : <a href="http://docs.identityserver.io/en/release/intro/terminology.html" rel="nofollow noreferrer">Terminology</a>
  But I do not understand which endpoint to get a id token for a user.
  I thought I can change the existing way to have access token to get the id token, but none of method give a result :</p>
  
  <pre><code>        var disco = new DiscoveryClient("http://localhost:55678");
          var discoResponse = disco.GetAsync().Result;
          if (discoResponse.IsError)
          {
              return null;
          }
  
          var tokenClient = new TokenClient(discoResponse.TokenEndpoint, "mvc", "secret");
          var tokenResponse = tokenClient.RequestResourceOwnerPasswordAsync(context.EmailAddress, context.Password, "email");
          var token = tokenResponse.Result;
  </code></pre>
  
  <p>I understand that resourceownerpassword way is only for access to a resource using the password, not for identify the user.</p>
  
  <p>When i tried to configure my jwtendpoint, i thought i can ask a id token but no result :</p>
  
  <pre><code>        services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
              .AddJwtBearer(opts =&gt;
              {
                  opts.Authority = "http://localhost:55678/";
                  opts.Audience = "api1";
                  opts.RequireHttpsMetadata = false;
                  opts.SaveToken = true;
              });
  </code></pre>
  
  <p>I don't know which endpoint user to get the jwt id token.</p>