Azure Code Samples
Learn to interact with Azure services through code
55 code samples match your filter
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.
An ASP.NET Core web application that signs-in Azure AD users from a single Azure AD tenant.
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.
A windows desktop program that demonstrates non-interactive authentication to Azure AD using a username & password, and optionaly windows integrated authentication.
An ASP.NET Core 2.0 Web App which lets sign-in users with work and school or Microsoft personal accounts
A .NET 4.5 MVC web app that uses Azure AD application roles for authorization.
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.
This is a simple Xamarin Forms app showcasing how to use MSAL to authenticate MSA and Azure AD via the converged MSA and Azure AD authentication endpoints, and access the Microsoft Graph with the resulting token.
A Python Web App calling the Microsoft Graph API, leveraging ADAL Python
A small Node.js Web API that works with Azure AD v2.0 to accept and validates access tokens.
Calling a ASP.NET Core Web API from a WPF application using Azure AD V2
A web application that sync's data from the Microsoft Graph using the identity of the application, instead of on behalf of a user.
A .NET 4.5 daemon application that uses a certificate to authenticate with Azure AD and get OAuth 2.0 access tokens.
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 the MIcrosoft Graph
A java command line program for Windows, Linux, or OS X that demonstrates non-interactive authentication to Azure AD using a username & password.
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 a downstream web API with a Conditional Access policy applied to it.
A Xamarin application that signs users in with Azure Active Directory across several different platforms and calls the Microsoft Graph API using OAuth 2.0 access tokens.