我正在使用azure AD登錄選項(OpenId身份驗證)的mvc應用程序。我需要爲管理員提供模擬選項。所以我決定爲這個模擬登錄使用表單身份驗證。現在我的問題是,在webconfig中啓用表單身份驗證會影響azure AD登錄。一旦添加了表單身份驗證,它將連續顯示與belo url的重定向, http://localhost:9666/members/logon?ReturnUrl=%2fmembers%2flogonusingazure%3freturnUrl%3d%2f&returnUrl=/在相同的mvc應用程序中使用表單身份驗證和Azure AD登錄
用於Web配置中的表單驗證代碼。
<authentication mode="Forms">
<forms loginUrl="~/members/logon" cookieless="UseCookies" name="MvcForumAuth" slidingExpiration="true" timeout="432000" />
</authentication>
感謝, Nagaraj M.