Azure Code Samples
Learn to interact with Azure services through code
66 code samples match your filter
A .NET 4.5 WPF application that authenticates a user and calls web API using Azure AD and OAuth 2.0 access tokens.
An ASP.NET Core web application that signs-in Azure AD users from a single Azure AD tenant.
A .NET console application that performs various queries against the Azure AD Graph API using both user identities and application identities.
A small Node.js Web API that works with Azure AD v2.0 to accept and validates access tokens.
A Xamarin application that signs users in with Azure Active Directory across several different platforms and calls the Azure AD Graph API using OAuth 2.0 access tokens.
Sample showing how a windows Desktop .NET (WPF) application can get an access token using MSAL.NET and call the Microsoft Graph API or other APIs protected by Azure Active Directory v2
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.
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 API protected by Azure AD that receives tokens from a client and uses ADAL to get tokens for calling another downstream web API
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.
A .NET 4.5 MVC web app that uses Azure AD application roles for authorization.
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
A web application sample that calls the Azure AD Graph API reporting capabilities
A PHP web application that calls the Graph API to register new directory extensions and manipulate the extension properties
A demo web application that syncs the app's local user store with users that have been assigned to the application in the directory.
An ASP.NET Core web application that signs-in users with Microsoft Accounts and Azure AD Accounts from multiple Azure AD directories
A .NET core daemon application that uses a certificate to authenticate with Azure AD and get OAuth 2.0 access tokens to a .NET core web api