Azure 程式碼範例

了解如何透過程式碼與 Azure 服務互動

59 個程式碼範例與您的篩選符合

Getting Started Backend Sample

Backend getting started source code for .Net Core

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/5/20

Invoking an API protected by Azure AD from a text-only device

This sample demonstrates how to leverage ADAL .NET to authenticate user calls to a web API (in this case, the directory Graph) from apps that do not have the capability of offering an interactive authentication experience.

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/5/20

Tutorial - Enable your Web Apps to sign-in users and call APIs with the Microsoft identity platform for developers

An ASP.NET Core 2.x Web App which lets sign-in users (including in your org, many orgs, orgs + personal accounts, sovereign clouds) and call Web APIs (including Microsoft Graph)

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/5/16

Integrate Microsoft identity and the Microsoft Graph into a web application using OpenID Connect

A sample showcasing how to develop a web application that handles sign on via the unified Azure AD and MSA endpoint, so that users can sign in using both their work/school account or Microsoft account. The sample also shows how to use MSAL to obtain a token for invoking the Microsoft Graph, as well as incrementental consent.

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/5/15

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 更新者:Jean-Marc Prieur
上次更新日期:2019/5/10

Build an app with admin restricted scopes using the v2.0 endpoint

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.

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/5/9

JavaScript Single Page Application with an ASP.NET backend, using msal.js

A JavaScript based single page app with a .NET backend that authenticates users for AzureAD, Microsoft personal and work accounts, and more, and calls the backend web api using access tokens, without using any Single Page Application framework

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/5/5

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

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

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/5/1

WPF application signing in users with Microsoft and calling the Microsoft Graph

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

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/5/1

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 更新者:Jean-Marc Prieur
上次更新日期:2019/5/1

Universal Windows Platform application signing in users with Microsoft and calling the Microsoft Graph

A Windows Universal Platform client application using msal.net, accessing the Microsoft Graph for a user authenticating with Azure AD V2 endpoint

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/5/1

Invoking an API protected by Azure AD from a text-only device

.NET Core 2.1 console application letting a user acquire a token for the Microsoft Graph by signing in through another device having a Web browser, with the Azure AD v2.0 endpoint

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/4/30

.NET Core Console application letting users sign-in with Username/password to call Microsoft Graph API

A .NET Core 2.1 console application which gets an access token to call the graph using a username and password

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/4/30

Invoking an API protected by Azure AD with Integrated Windows Authentication, on a Windows domain jointed or AAD joined machine

.NET console application letting a user acquire a token for the Microsoft Graph using Integrated Windows Authentication (on domain joined or AAD joined machines)

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/4/30

Authorization in a web app using Azure AD groups & group claims

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

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/4/29

Migrating an application from using ADAL.NET to using MSAL.NET

Demonstrate the migration of .NET applications fro AAD v1.0 (ADAL.NET) to AAD v2.0 (MSAL.NET)

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/4/19

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.

jmprieur 更新者:Jean-Marc Prieur
上次更新日期:2019/4/18

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 更新者:Jean-Marc Prieur
上次更新日期:2019/4/12