title: 'HttpRequest' does not contain a definition for 'EnableRewind'
body: <p>I am trying to use the EnableRewind method in a custom authorization handler which I have created but i am getting the error &quot;'HttpRequest' does not contain a definition for 'EnableRewind'&quot; I need to access body in it but if I do it as shown in code  I get the error in the controller &quot;The input does not contain any JSON tokens. Expected the input to start with a valid JSON token,....&quot; this is my handler i have injected IHttpContextAccessor from the startup file</p>
  <pre><code>public class ForPrivateProfileBodyMustOwnRecordOrShouldBeInAdminRoleHandler : AuthorizationHandler&lt;ForPrivateProfileBodyMustOwnRecordOrShouldBeInAdminRole&gt;
  {
      private readonly IHttpContextAccessor _httpContextAccessor;
      public ForPrivateProfileBodyMustOwnRecordOrShouldBeInAdminRoleHandler(IHttpContextAccessor httpContextAccessor)
      {
          _httpContextAccessor = httpContextAccessor;
      }
      protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, 
            ForPrivateProfileBodyMustOwnRecordOrShouldBeInAdminRole requirement)
      {
         var reader = new System.IO.StreamReader(_httpContextAccessor.HttpContext.Request.Body);
  
          
          
          var body = reader.ReadToEndAsync().Result;
          //this line is producing error
          var req = _httpContextAccessor.HttpContext.Request.EnableRewind();
          var request = Newtonsoft.Json.JsonConvert.DeserializeObject&lt;PrivateProfileModel&gt;(body);
          var ownerId = context.User.Claims.FirstOrDefault(c =&gt; c.Type == &quot;sub&quot;)?.Value;
          if (request.UserId.ToString() != ownerId &amp;&amp; !context.User.IsInRole(&quot;Admin&quot;))
          {
              context.Fail();
              return Task.CompletedTask;
          }
          //all checks pass
          //_httpContextAccessor.HttpContext.Request.Body.Seek(0, System.IO.SeekOrigin.Begin);
          context.Succeed(requirement);
          return Task.CompletedTask;
  
      }
  }
  </code></pre>