Skip Navigation

Azure Code Samples

Learn to interact with Azure services through code

51 code samples match your filter

Build a multi-tenant daemon with the Azure AD v2.0 endpoint

A web application that sync's data from the Microsoft Graph using the identity of the application, instead of on behalf of a user.

jmprieur by Jean-Marc Prieur,
Last updated: 5/25/2018

Building a multi-tenant web API secured by Azure AD

A .NET 4.5 multi-tenant web API that is secured using Azure AD and OAuth 2.0 access tokens, and accepts calls from Azure AD users in any tenant via a Windows Store client.

jmprieur by Jean-Marc Prieur,
Last updated: 5/2/2018

Build a multi-tenant SaaS web application using Azure AD & OpenID Connect

A sample .NET 4.5 MVC web app that signs-up and signs-in users from any Azure AD tenant using OpenID Connect.

dstrockis by Danny Strockis,
Last updated: 11/22/2017

Build a multi-tenant SaaS web application that calls a web API using Azure AD

An ASP.NET Core web application that authenticates Azure AD users from any tenant and calls a web API using OAuth 2.0 access tokens.

dstrockis by Danny Strockis,
Last updated: 3/16/2017

Build a multi-tenant SaaS web application that calls a web API using Azure AD

A sample .NET 4.5 MVC SaaS web app that signs-up and signs-in users from any Azure AD tenant, and calls the Azure AD Graph API.

jmprieur by Jean-Marc Prieur,
Last updated: 2/15/2018

Authorization in a web app using Azure AD application roles & role claims

A .NET 4.5 MVC web app that uses Azure AD application roles for authorization.

jmprieur by Jean-Marc Prieur,
Last updated: 7/17/2018

Integrating Azure AD into an ASP.NET Core web app

An ASP.NET Core web application that signs-in Azure AD users from a single Azure AD tenant.

jmprieur by Jean-Marc Prieur,
Last updated: 7/19/2018

Manually validating a JWT access token in a web API

How to manually process a JWT access token in a web API using the JSON Web Token Handler For the Microsoft .Net Framework 4.5.

jmprieur by Jean-Marc Prieur,
Last updated: 7/19/2018

Integrating Azure AD into a Java web application

A server app that uses Azure AD and the ADAL4J library for authenticating the user and calling a web API using OAuth 2.0 access tokens.

sagonzal by Sergio Alejandro González,
Last updated: 7/19/2018

Calling a Web API in a daemon app or long-running process

A Windows console application that calls a web API using its app identity (instead of a user's identity) to get access tokens in an unattended job or process.

jmprieur by Jean-Marc Prieur,
Last updated: 7/17/2018

Authenticating to Azure AD non-interactively using a username & password or Windows Integrated Authentication

A windows desktop program that demonstrates non-interactive authentication to Azure AD using a username & password, and optionaly windows integrated authentication.

jmprieur by Jean-Marc Prieur,
Last updated: 7/18/2018

Integrating Azure AD V2 into an ASP.NET Core web app

An ASP.NET Core 2.0 Web App which lets sign-in users with work and school or Microsoft personal accounts

jmprieur by Jean-Marc Prieur,
Last updated: 7/18/2018

Integrate Azure AD into a web application using OpenID Connect

A .NET MVC web application that uses OpenID Connect to sign-in users from a single Azure Active Directory tenant.

jmprieur by Jean-Marc Prieur,
Last updated: 5/3/2018

Calling Microsoft Graph from a web app using ADAL Python

A Python Web App calling the Microsoft Graph API, leveraging ADAL Python

abpati by Ab,
Last updated: 6/28/2018

Azure AD Javascript Getting Started

A javascript based single page app with a .NET backend that authenticates Azure AD users and calls the backend web api using access tokens, without using any SPA frameworks.

jmprieur by Jean-Marc Prieur,
Last updated: 6/14/2018

Calling the Azure AD Graph API from a PHP web app

This PHP sample application demonstrates how to Read and Write tenant data to Azure Active Directory using the AAD Graph API

azure-samples by Azure Samples,
Last updated: 4/28/2017

Demo - To-do list reimagined web app

A demo web application that uses Azure AD for sign up & sign in and calls the Azure AD Graph API to search for users.

jmprieur by Jean-Marc Prieur,
Last updated: 6/20/2017

Integrating a web app with Azure AD using WS-Federation

A .NET MVC web application that uses WS-Federation to sign-in users from a single Azure Active Directory tenant, using the ASP.Net WS-Federation OWIN middleware.

jmprieur by Jean-Marc Prieur,
Last updated: 7/10/2017