简体   繁体   English

使用Azure AD时的新自定义登录页面

[英]New custom login page when use Azure AD as

I am trying to use custom login page when using Azure AD but until now without success. 我在使用Azure AD时尝试使用自定义登录页面,但直到现在都没有成功。 I don't want to customize the login page offered by Azure, I want to use completely new login page. 我不想自定义Azure提供的登录页面,我想使用全新的登录页面。 Is this possible? 这可能吗?

I found some possible answers ( Redirect user to custom login page when using Azure AD and Azure AD B2C - Populate username in custom login page ) but and the owner of these questions still doesn't find the correct answer. 我找到了一些可能的答案( 使用Azure ADAzure AD B2C 时将用户重定向到自定义登录页面 - 在自定义登录页面中填充用户名 ),但这些问题的所有者仍然找不到正确的答案。

The customization options of Azure AD are limited to branding and some text fields. Azure AD的自定义选项仅限于品牌和一些文本字段。 Azure AD B2C offers much more UI customization options: https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-ui-customization . Azure AD B2C提供了更多UI自定义选项: https//docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-ui-customization

It works by you providing a link to the HTML you would like to use on the page. 它的工作原理是提供您要在页面上使用的HTML的链接。 You will need to put a single empty div element there though, where B2C will insert its content. 您需要在那里放置一个空的div元素,其中B2C将插入其内容。 You can use CSS to customize how they look. 您可以使用CSS来自定义它们的外观。 JavaScript is not allowed though for security reasons. 出于安全原因,不允许使用JavaScript。

Though this probably should not be your decision point when deciding between Azure AD and Azure AD B2C since they are pretty different products. 虽然在决定Azure AD和Azure AD B2C之间这可能不是您的决定点,因为它们是完全不同的产品。 B2C is meant for customer-facing applications, while Azure AD is for apps used by organizations. B2C适用于面向客户的应用程序,而Azure AD适用于组织使用的应用程序。

I found this, 我找到了这个,

https://azure.microsoft.com/en-gb/resources/samples/active-directory-dotnet-native-headless/ https://azure.microsoft.com/en-gb/resources/samples/active-directory-dotnet-native-headless/

Basically you want to be able to authenticate with Azure AD directly and pass the token to the signed in user. 基本上,您希望能够直接使用Azure AD进行身份验证,并将令牌传递给已登录的用户。

Looks like the code you need is in the file 看起来您需要的代码在文件中

⁨active-directory-dotnet-native-headless-master⁩/TodoListClient⁩/Program.cs 有源目录的dotnet天然-无头主/ TodoListClient / Program.cs中

Hope it helps 希望能帮助到你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Azure AD时,将用户重定向到自定义登录页面 - Redirect user to custom login page when using Azure AD 使用ADAL.net来验证Azure AD凭据的自定义Web应用程序登录页面 - Custom web app login page using ADAL.net to validate Azure AD credentials 对Office 365 SSO使用自定义Microsoft登录屏幕(通过Azure AD) - Use custom Microsoft login screens for office 365 SSO (through Azure AD) 部署在 IIS 上时 Azure AD 登录失败 - Azure AD login failing when deployed on IIS 如何在不使用Microsoft页面的情况下在Azure AD B2C中使用graph api进行社交登录? - How to use graph api for social login in Azure AD B2C without using Microsoft page? Xamarin Azure AD B2C登录,卡在登录页面 - Xamarin Azure AD B2C login, stuck at login page 使用 Azure AD 的 Blazor 服务器应用程序的自定义登录屏幕 - Custom Login Screen for Blazor Server App using Azure AD Azure AD认证 登录后带参数返回上一页 - Azure AD Authentication Return To Previous Page With Parameter After Login PowerBI和Azure AD无头登录 - PowerBI and Azure AD Headless Login 通过代码创建新用户时,在AD中填充自定义属性 - Populating a custom attribute in AD when creating a new user through code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM