Code Samples for AADGuide
There are the code samples for the Azure Active Directory Guide
Website: https://aadguide.azurewebsites.net
GitHub: https://github.com/ahelland/AADGuide
Platform: .NET Core 2 and Angular
SinglePageApp (SPA) based on .NET Core on the back-end, and Angular on the front-end. Uses ADAL JS for auth with ADFS.
Platform: Universal Windows Platform (Min 10240)
Client for calling into a Web API protected by ADFS 2016.
Platform: .NET 4.6.1
Demo Web API protected by ADFS 2016.
Platform: .NET 4.6.1
Demo Windows Forms app implementing the password grant OAuth flow. No libraries involved, just plain http calls.
Platform: .NET Core 2.1 Demo web app showing how to implement multiple identity providers by using Azure AD B2C. Also implements authorization based on a role claim in the token acquired from AAD B2C.
Platform: .NET 4.6
Demo portal for the Azure AD B2C feature. Users login with social identity providers. Theming of site uses Office 365 UI Fabric.
Platform: .NET 4.6.1
Demo app that prints out the claims of the logged in user. Also show to add/remove claims, and customize content based on attributes in claims.
Platform: Universal Windows Platform (Min 10240)
App demoing how to acquire a token from the Azure AD v2 endpoint using Microsoft Authentication Library (MSAL). Subsequently calls into the API in CoreWebAPIServer.
Platform: .NET Core 1.0
Demo web API protected by Azure AD using .NET Core. Accepts token issued by the Azure AD v2 endpoint.
Platform: .NET Core 2.2
Web API requiring signed JWTs/certificate-based authentication.
Platform: Windows Forms App
App for getting info from an AAD tenant using the Graph API.
Platform: Universal Windows Platform (Min 10586)
App that shows how to authenticate a user against an Azure Active Directory B2C tenant using custom policies. The custom policy is set up to support both social identities (Facebook) and corporate identities (Azure AD).
Platform: Universal Windows Platform (Min 10240)
App that shows how to authenticate a user against an Azure Active Directory tenant. Subsequently the acquired token is used to execute a query against the Graph API to extract the user object.
Platform: Windows Forms App
Troubleshooting / debug utility that decodes a JSON Web Token.
Platform: Universal Windows Platform (Min 10240)
App demoing how to acquire a token from the Azure AD v1 endpoint using Active Directory Authentication Library (ADAL). Subsequently calls into the API in WebAPIServerSingleTenant.
Platform: .NET 4.6.1
Demo web API protected by Azure AD using .NET 4.6.1. Accepts tokens issued by the Azure AD v1 endpoint.