Skip to content
Code Samples for AADGuide
CSS JavaScript C# HTML Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vs Updated README.md Sep 21, 2017
ADFSTodoSPA Added ADFSTodoSPA Sep 19, 2017
ADFSWebAPIClient Fixed manifest to allow the "Private Networks" capability. Dec 27, 2015
ADFSWebAPIServer Bump bootstrap from 3.3.6 to 3.4.1 in /ADFSWebAPIServer Oct 21, 2019
AboutMePasswordGrant Changed password textbox to treat input as a password (show asterisks). Dec 13, 2016
B2CNETCoreWebApp Added B2CNETCoreWebApp Sep 9, 2018
B2CVideoPortal Bump bootstrap from 3.3.6 to 3.4.1 in /B2CVideoPortal Oct 23, 2019
ClaimsWebApp Bump Microsoft.Data.OData from 5.7.0 to 5.8.4 in /ClaimsWebApp Oct 23, 2019
CoreWebAPIClient Added B2CNETCoreWebApp Sep 9, 2018
CoreWebAPIServer Bump Microsoft.AspNetCore.Mvc from 1.0.3 to 1.0.4 in /CoreWebAPIServer Jul 17, 2019
CoreWebAPISignedJWTs Added CoreWebAPISignedJWTs Dec 9, 2018
GraphTreeView Bump Microsoft.Data.OData from 5.7.0 to 5.8.4 in /GraphTreeView Oct 22, 2019
HelloAADB2C Added B2CNETCoreWebApp Sep 9, 2018
HelloAzureAD
JwtCracker fix for jtoken parse error Jan 17, 2019
WebAPIClientSingleTenant Changed TargetPlatformVersion to build 10586 for WebAPIClientSingleTe… Dec 22, 2015
WebAPIServerSingleTenant NuGet packages updated for WebAPIServerSingleTenant Dec 22, 2015
.gitattributes Initial commit to add default .gitIgnore and .gitAttribute files. Jun 18, 2015
.gitignore
AADGuide-CodeSamples.sln Added CoreWebAPISignedJWTs Dec 9, 2018
README.md Updated README.md Dec 9, 2018

README.md

AADGuide-CodeSamples

Code Samples for AADGuide

Description

There are the code samples for the Azure Active Directory Guide
Website: https://aadguide.azurewebsites.net
GitHub: https://github.com/ahelland/AADGuide

Projects in this solution

ADFSTodoSPA

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.

ADFSWebAPIClient

Platform: Universal Windows Platform (Min 10240)
Client for calling into a Web API protected by ADFS 2016.

ADFSWebAPIServer

Platform: .NET 4.6.1
Demo Web API protected by ADFS 2016.

AboutMePasswordGrant

Platform: .NET 4.6.1
Demo Windows Forms app implementing the password grant OAuth flow. No libraries involved, just plain http calls.

B2CNETCoreWebApp

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.

B2CVideoPortal

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.

ClaimsWebApp

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.

CoreWebAPIClient

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.

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.

CoreWebAPISignedJWTs

Platform: .NET Core 2.2
Web API requiring signed JWTs/certificate-based authentication.

GraphTreeView

Platform: Windows Forms App
App for getting info from an AAD tenant using the Graph API.

HelloAADB2C

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).

HelloAzureAD

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.

JwtCracker

Platform: Windows Forms App
Troubleshooting / debug utility that decodes a JSON Web Token.

WebAPIClientSingleTenant

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.

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.

You can’t perform that action at this time.