久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何在 ASP.NET MVC 上同時執行 Azure Active Directory 單

How to do both Azure Active Directory Single Sign On and Forms Authentications on ASP.NET MVC(如何在 ASP.NET MVC 上同時執行 Azure Active Directory 單點登錄和表單身份驗證)
本文介紹了如何在 ASP.NET MVC 上同時執行 Azure Active Directory 單點登錄和表單身份驗證的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我們有 MVC 4 開發的遺留系統,使用 Web API 的表單身份驗證和基本身份驗證(目前還沒有 OWIN).

We have the legacy system developed by MVC 4 using Forms Authentication and Basic Authentication for Web API (there is no OWIN so far).

現在我們有很多客戶想要單點登錄到我們的系統,所以我們使用 Azure Active Directory (AAD) 來存儲客戶的用戶.

Now we have lots of clients which want to do single sign on into our system, so we use Azure Active Directory (AAD) to store client's users.

現在的情況是我們要修改登錄工作流程以適應 AAD.登錄頁面沒有變化,在后臺,我們檢查用戶是否存在于我們的系統上(使用我們的數據庫),它允許用戶訪問.如果沒有,我們繼續在 AAD 上檢查用戶,在這種情況下我們不想重定向到 Azure 登錄頁面.

Now the situation is we want to revise the login workflow to adapt with AAD. The login page has no changes, under the hood, we check whether user exists on our system (using our database), it allows user to access. If not, we continue to check user on AAD, we don't want to re-direct to Azure login page in this case.

我已經閱讀了大量內容,但不太清楚如何做到這一點?我們還考慮升級到 MVC 5,以便在合適的情況下使用 OWIN 中間件身份驗證.

I have done tons of reading but have not much clear how to do this? We also consider to upgrade to MVC 5 in order to use OWIN middleware authentication if it's fine with situation.

推薦答案

一種可能的解決方案是使用 AAD 中應用程序庫中的自定義 SSO 應用程序.執行此操作時,AAD 將解析 AAD 用戶用于登錄系統的表單.當已登錄 AAD 的用戶進入您的應用程序時,AAD 瀏覽器插件或應用程序會自動輸入用戶名和密碼.

One possible solution is to use Custom SSO applications from the Application gallery in AAD. When doing this, AAD will parse the form that the AAD users are using to login to the system. When a user that is already logged in to AAD enters your application, the AAD browser plugin or app will enter the username and password automatically.

有關此博客的更多信息:http://www.edutech.me.uk/microsoft/identity-and-access-management/active-directory/azure-ad-custom-saas-applications-for-any-3rd-party-service/

More information on this blog: http://www.edutech.me.uk/microsoft/identity-and-access-management/active-directory/azure-ad-custom-saas-applications-for-any-3rd-party-service/

這篇關于如何在 ASP.NET MVC 上同時執行 Azure Active Directory 單點登錄和表單身份驗證的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

ASP.NET Core authenticating with Azure Active Directory and persisting custom Claims across requests(ASP.NET Core 使用 Azure Active Directory 進行身份驗證并跨請求保留自定義聲明)
ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working(ASP.NET Core 2.0 Web API Azure Ad v2 令牌授權不起作用)
How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API(如何獲取守護進程或服務器到 C# ASP.NET Web API 的 Azure AD OAuth2 訪問令牌和刷新令牌) - IT屋-程序員軟件開發技
Azure KeyVault Active Directory AcquireTokenAsync timeout when called asynchronously(異步調用時 Azure KeyVault Active Directory AcquireTokenAsync 超時)
Getting access token using email address and app password from oauth2/token(使用電子郵件地址和應用程序密碼從 oauth2/token 獲取訪問令牌)
New Azure AD application doesn#39;t work until updated through management portal(新的 Azure AD 應用程序在通過管理門戶更新之前無法運行)
主站蜘蛛池模板: 亚洲综合日韩精品欧美综合区 | 一区二区三区精品视频 | 成人精品一区二区三区中文字幕 | 成人亚洲精品 | 国产99久久久国产精品下药 | 久久国产精品免费视频 | 99精品一区二区三区 | 国产ts一区| 日韩三级电影一区二区 | 国产精品自产拍 | 欧美日韩高清一区 | 日韩综合在线 | 免费骚视频 | 国产.com | 午夜大片| 中文字幕在线一区 | 国产精品日韩欧美一区二区三区 | 婷婷去俺也去 | 婷婷在线网站 | 国产日韩欧美激情 | 国产精品美女 | 久久久美女| 亚洲 欧美 另类 综合 偷拍 | 黄色一级视频 | 久久成人精品视频 | 日韩在线视频免费观看 | 国产成人精品久久二区二区 | www.久久久久久久久久久久 | 国产一区91精品张津瑜 | 精产国产伦理一二三区 | 中文字幕av亚洲精品一部二部 | 国产激情一区二区三区 | 亚洲精品一区二区三区四区高清 | 精品视频在线免费观看 | av片网 | 亚洲视频免费播放 | 久久av网站 | 免费观看黄色片视频 | 97久久精品 | 亚洲视频 欧美视频 | 欧美成人激情视频 |