Azure 程式碼範例

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

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

Integrating Azure AD into a cross platform Xamarin application

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.

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

Integrating Azure AD into a Windows desktop application using interactive authentication

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

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

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/7/16

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.

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

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/7/5

How to manually validate a JWT access token using Microsoft identity platform (formerly Azure Active Directory for developers)

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.

kalyankrishna1 更新者:Kalyan Krishna
上次更新日期:2019/7/5

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/7/4

Calling a downstream web API from another web API in Microsoft identity platform using the On-Behalf-Of flow

Web API calling a downstream API on behalf of the user using the Microsoft identity platform (formerly named Azure AD) v2.0 enpoint

TiagoBrenck 更新者:Tiago Brenck
上次更新日期:2019/7/4

Use OpenID Connect to sign in users to Microsoft identity platform (formerly Azure Active Directory for developers) and execute Microsoft Graph operations using incremental consent

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/7/4

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/7/2

.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/7/2

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/7/2

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/7/2

Integrate Microsoft identity and the Microsoft Graph into a Xamarin forms app using MSAL

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.

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

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/6/26

Calling Azure AD protected web APIs in a web app using OAuth 2.0

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.

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

Integrating Azure AD into an ASP.NET Core web app

An ASP.NET Core web application that signs-in Azure AD users from a single Azure AD tenant.

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

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.

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