考虑到客户都是Java技术栈的,这里Java sample code演示用Azure AD(AAD) 实现Web 应用身份认证的Multi-Factor Authentication(MFA)的过程。整个流程分为三部分: Web应用和AAD集成 配置MFA Note: 关于Oauth2.0和OpenID Connect的授权鉴权流程,可以参考以下link: https://docs.microsoft.com/en-us/azure/active-directory...
These code sample show how to build applications that call the Azure AD Graph API to read and write directory data. Authorization These code samples show how to use Azure AD for authorization. Legacy Walkthroughs These walkthroughs use slightly older technology, but still might be of interest....
Browse code These are sample HTML and CSS files from the templates provided for Azure AD B2C user flows. Features This project contains the following templates: Ocean Blue Slate Gray Getting Started Prerequisites An Azure AD B2C directory User flows or custom policies Installation Follow the...
Browse code This sample shows how to implement Azure AD single sign-on support for tabs. It will:Obtain an access token for the logged-in user using SSO Call a web service - also part of this project - to exchange this access token for one with User.Read permission...
This section provides links to samples you can use to learn more about the Azure AD v1.0 endpoint. These samples show you how it's done along with code snippets that you can use in your applications. On the code sample page, you'll find detailed read-me topics that help with ...
Create a Service Principal in Azure AD for your service and obtained the following information required to execute the code sample belowa. Application ID of the Service Principal (SP) clientId = "<appId>"; // Application ID of the SP (e.g. string clientId = "xxxxxx...
Deny based on HostnameThis sample provides an example of how to block access to particular B2C policy based on the [Hostname] of the request, e.g. allow requests made to the policy using login.contoso.com but block foo.b2clogin.com. Useful when using custom domain(s) with Azure AD ...
To clean up all the resources created by this sample: Runazd down When asked if you are sure you want to continue, entery When asked if you want to permanently delete the resources, entery The resource group and all the resources will be deleted. ...
Code Sample 11/29/2023 Browse code Aleafletjsplugin that makes it easy to overlay tile layers from theAzure Maps tile services. Features: Authenticate using an Azure Maps subscription key or Azure Active Directory. Works with with Azure Public and Government clouds. ...
Code Sample Prerequisite #1: Azure AD PowerShell To set up this code sample, you’ll need an Azure AD tenant where you’re a global administrator. In this example, as with the previous blog post, the sample code to use the API leverages the ADAL library to ...