title: ASP Core Azure Active Directory Login use roles
body: <p>I created an Azure Active Directory Application and i want to use role based security. I followed the tutorial on: <a href="https://azure.microsoft.com/en-us/resources/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore/" rel="nofollow noreferrer">https://azure.microsoft.com/en-us/resources/samples/active-directory-dotnet-webapp-openidconnect-aspnetcore/</a> </p>
  
  <p>The login works, I added roles to the application manifest and assigned the role <code>Approver</code> to my own account. Now i want to use these roles. </p>
  
  <p>After login the following works in the controller:</p>
  
  <pre><code>[Authorize]
  </code></pre>
  
  <p>But when adding the role the user is not authorized:</p>
  
  <pre><code>[Authorize(Roles="Approver")]
  </code></pre>
  
  <p>Also the following returns false:</p>
  
  <pre><code>User.IsInRole("Approver");
  </code></pre>
  
  <p>It seems the roles are not retreived, any suggestions on how to add the role functionality to this demo project?</p>