title: How to add phone number claim on IdentityServer4
body: <p>I am using IdentityServer4 IDP with a blazor client. In a razor component I have:</p>
  <pre><code>[CascadingParameter]
  public Task&lt;AuthenticationState&gt; AuthenticationStateTask { get; set; }
  
  async Task GetClaims()
  {
      var claims = (await AuthenticationStateTask).User.Claims;
  }
  </code></pre>
  <p>This gives me a total of 9 claims including <code>sub</code>, <code>name</code>, <code>preferred_name</code>, <code>amr</code>, <code>email</code>, <code>email_verified</code> etc. I want to also get the phone number here but it is not present even though I add phone scope in the IDP config as following</p>
  <pre><code>public static IEnumerable&lt;IdentityResource&gt; Ids =&gt;
      new IdentityResource[]
      {
          new IdentityResources.OpenId(), // sub
          new IdentityResources.Profile(), // givenName, familyName ..
          new IdentityResources.Email(),
          new IdentityResources.Phone()
      };
  </code></pre>
  <p>and in Client object;</p>
  <pre><code>AllowedScopes = {
      IdentityServerConstants.StandardScopes.OpenId,
      IdentityServerConstants.StandardScopes.Profile,
      IdentityServerConstants.StandardScopes.Email,
      IdentityServerConstants.StandardScopes.Phone,
      &quot;exampleapi&quot; },
  </code></pre>
  <p>Doesn't this mean that the phone number should be in the identity token? What should I do to get the phone number?</p>
  <p>Also, what is the best way to send a <code>phoneNumberUpdate</code> request?</p>