Azure Code Samples
Learn to interact with Azure services through code
59 code samples match your filter
A .NET MVC web application that uses OpenID Connect to sign-in users from a single Azure Active Directory tenant.
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 web application that sync's data from the Microsoft Graph using the identity of the application, instead of on behalf of a user.
An ASP.NET Core 2.x Web App which lets sign-in users with work and school or Microsoft personal accounts
A .NET Core 2.x simple daemon console application calling the graph with its own identity
In the sample, an existing web app with its own way of signing in users adds the ability to call an Azure AD protected web API using OAuth 2.0 access tokens.
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.
A .NET Core 2.1 console application which gets an access token to call the graph using a username and password
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.
An ASP.NET MVC application that shows how to use the Azure AD v2.0 endpoint to collect consent for permissions that require administrative consent.
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 .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
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.
A windows desktop program that demonstrates non-interactive authentication to Azure AD using a username & password, and optionaly windows integrated authentication.
A .NET 4.5 WPF application that authenticates a user and calls web API using Azure AD and OAuth 2.0 access tokens.
A sample .NET 4.5 MVC web app that signs-up and signs-in users from any Azure AD tenant using OpenID Connect.