Skip to content

Instantly share code, notes, and snippets.

@rgl
Last active March 16, 2020 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgl/718f2e31fc2c35a37e7f80dd2a064fbd to your computer and use it in GitHub Desktop.
Save rgl/718f2e31fc2c35a37e7f80dd2a064fbd to your computer and use it in GitHub Desktop.
OpenID Connect With Azure AD (aka Microsoft identity platform ) in dotnet core applications

Notes

  • Azure AD (aka Microsoft identity platform) is an OpenID Connect Provider
  • We can create Security Groups as the normal Windows AD
  • The application manifest can be configured the send the user Security Group OIDs as a claim, but is limited to sending a sub-set of the whole groups. A better way is to use the Azure Graph API somehow.

Reference

Snippets

Show User Claims

<table class="table">
    <caption>User Claims</caption>
    @foreach (var claim in User.Claims.OrderBy(c => c.Type))
    {
        <tr>
            <td>@claim.Type</td>
            <td>@claim.Value</td>
        </tr>
    }
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment