title: Notifications in ASP.NET Core client for IdentityServer v4
body: <p>In IdentityServer 3 I used the <code>SecurityTokenValidated</code> event on the Notifications to build up my own identity with names and claims. For example I store the <code>access_token</code> to later access n API with a resource owner workflow like this:</p>
  
  <pre><code>app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
  {
  AuthenticationType = "oidc",
  
  // ...
  
  Notifications = new OpenIdConnectAuthenticationNotifications
  {
      SecurityTokenValidated = async n =&gt;
      {
          var nid = new ClaimsIdentity(
            n.AuthenticationTicket.Identity.AuthenticationType,
            "name",
            ClaimTypes.Role);
          nid.AddClaim(new Claim("id_token", n.ProtocolMessage.IdToken));
          nid.AddClaim(new Claim("access_token", n.ProtocolMessage.AccessToken));
          nid.AddClaim(new Claim("expires_at", DateTimeOffset.Now.AddSeconds(int.Parse(n.ProtocolMessage.ExpiresIn)).ToString()));
      }
  }
  }
  </code></pre>
  
  <p>In IdentityServer 4 for ASP.NET Core is not Notifications property.
  I can see that there a lot of claims automatically generated but I don't get the <code>access_token</code> nor the username of the identity is set automatically</p>
  
  <p>My current configuration of the client in ASP.NET Core looks like this</p>
  
  <pre><code>   app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions
          {
              AuthenticationScheme = "oidc",
              SignInScheme = "Cookies",
              Authority = identityServerUri,
              RequireHttpsMetadata = false,
              ClientId = clientId,
              ResponseType = "id_token token",
              Scope =
              {
                  "openid profile email warehouseapi"
              },
              GetClaimsFromUserInfoEndpoint = true,
              SaveTokens = true,
              AutomaticAuthenticate = true,
              AutomaticChallenge = true,
          });
  </code></pre>
  
  <p>What is the intended way in IdentityServer 4 to make this ?</p>