Azure Code Samples

Learn to interact with Azure services through code

57 code samples match your filter

Call an Azure AD protected Web API in an AngularJS Single Page App

An AngularJS single page app, implemented with an ASP.NET Web API backend, that signs users in using Azure AD and calls another web API using OAuth 2.0 access tokens.

dstrockis by Danny Strockis,
Last updated: 1/18/2017

Integrating Azure AD into an AngularJS single page app

An AngularJS based single page app, implemented with an ASP.NET Web API backend, that signs in users and calls web APIs using Azure AD

dstrockis by Danny Strockis,
Last updated: 1/18/2017

Integrating Azure AD into a single page app

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.

dstrockis by Danny Strockis,
Last updated: 1/18/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.

dstrockis by Danny Strockis,
Last updated: 1/9/2017

Integrating Azure AD into a NodeJS web application

A NodeJS web application that authenticates Azure AD users with OpenID Connect.

Azure-Samples by Azure Samples,
Last updated: 1/9/2017

An ASP.NET Core web app with Azure AD B2C

An ASP.NET Core web application that signs-in users with Microsoft Accounts and Azure AD Accounts from multiple Azure AD directories

gsacavdm by Gerardo Saca,
Last updated: 1/8/2017

Calling web APIs in a daemon 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.

dstrockis by Danny Strockis,
Last updated: 1/5/2017

Integrating an android app with Azure AD (Android API Level 18+)

An android app that uses Azure AD and the ADAL library for authenticating the user and calling a web API using OAuth 2.0 access tokens.

Azure-Samples by Azure Samples,
Last updated: 1/5/2017

Demo - To-do list reimagined iOS app

A demo iOS app that uses Azure AD for sign up & sign in and calls the Azure AD Graph API to search for users

dstrockis by Danny Strockis,
Last updated: 1/5/2017

Calling a web API in an ASP.NET Core web application using Azure AD

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

dstrockis by Danny Strockis,
Last updated: 1/5/2017

Calling a web API in a web app using Azure AD and OpenID Connect

A .NET 4.5 MVC web app that signs Azure AD users in with OpenID Connect and calls a web api using OAuth 2.0 access tokens.

dstrockis by Danny Strockis,
Last updated: 1/5/2017

Calling a web api using an application identity

A .NET 4.5 MVC web app that uses Azure AD for sign-in and calls a web API under the application's identity, instead of the user's identity

dstrockis by Danny Strockis,
Last updated: 1/5/2017

Calling a downstream web API from a web API using Azure AD

A .NET 4.5 MVC Web API protected by Azure AD that receives tokens from a client and uses ADAL to get tokens for calling another downstream web API

dstrockis by Danny Strockis,
Last updated: 1/5/2017

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.

dstrockis by Danny Strockis,
Last updated: 1/5/2017

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.

dstrockis by Danny Strockis,
Last updated: 1/5/2017

Authenticating to Azure AD non-interactively using a username & password

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

dstrockis by Danny Strockis,
Last updated: 1/5/2017

Integrating Azure AD into a Windows desktop application

A .NET 4.5 WPF application that authenticates a user and calls web API using Azure AD and OAuth 2.0 access tokens.

dstrockis by Danny Strockis,
Last updated: 1/5/2017

Calling a ASP.NET Core Web API from a WPF application using Azure AD

A WPF application that calls a Web API running on ASP.NET Core protected by Azure AD using OAuth 2.0 access tokens.

dstrockis by Danny Strockis,
Last updated: 1/5/2017