[英]Simplest way to enable Azure AD FS in a .NET application using Simplemembership
我們有一個使用 Simplemembership 的.Net MVC web 應用程序,我們的一位客戶希望將其與 Azure AD FS 一起用於驗證他的員工和合作者。 我正在尋找最簡單的方法來實現這一點。 原則上,這個任務絕對需要替換 Simplemembership,不是嗎? 據我了解,集成 A ...
[英]Simplest way to enable Azure AD FS in a .NET application using Simplemembership
我們有一個使用 Simplemembership 的.Net MVC web 應用程序,我們的一位客戶希望將其與 Azure AD FS 一起用於驗證他的員工和合作者。 我正在尋找最簡單的方法來實現這一點。 原則上,這個任務絕對需要替換 Simplemembership,不是嗎? 據我了解,集成 A ...
[英]IdentityServer4 replace Asp.net 4.5 MVC5 SimpleMembership for Authentication
我有一個使用SimpleMembership在App中進行身份驗證和授權的Asp.net 4.5 MVC5應用程序。 現在,我需要集成以使用外部IdentityServer4進行身份驗證。 我試圖將OWIN啟動文件添加到項目中,並在web.config中關閉標准IIS身份驗證。 現在,我可 ...
[英]ASP.NET login does not redirect just logged user properly in Firefox and IE, but works with Chrome
我有ASP.NET應用程序,它完全適用於開發環境。 登錄適用於Firefox,IE和Chrome。 Firefox中的開發環境中的請求如下所示: POST請求: 和回應: 但是當我將我的服務部署到真實服務器時,使用除Chrome之外的任何瀏覽器登錄都不起作用。 Fi ...
[英]Add role to user in Simple Membership ASP NET MVC 4
我在ASP NET MVC 4應用程序上使用Simplie MemberShip Provider。 當我將用戶與角色連接時會出現一些錯誤。 那一步我做什么: 1.在web.config上添加提供程序: 2.用下面的代碼初始化數據庫: 3.創建用戶: 其中mem ...
[英]WCF: Why WebSecurity.CurrentUserId is -1?
我是使用WCF創建Web服務的新手。 我有一個簡單的問題。 我正在使用SimpleMembershipProvider驗證用戶。 在對Web服務的某些調用中,我需要檢索當前的用戶ID。 所以,我使用WebSecurity.CurrentUserId我在MVC.NET使用。 為了更好 ...
[英]Can't get Webmatrix.WebData for Simple Membership referenced in MVC5?
我正在嘗試在MVC 5項目中使用簡單成員資格。 我在機器上的測試項目上觀看了視頻教程,並使其能夠正常工作。 現在,我准備在新網站上實現它,但是當我到達為Webmatrix.Data和Webmatrix.WebData進行引用的步驟時,“引用/組件/擴展”部分中沒有該選項。 我去了NuGet ...
[英]How to resolve SimpleMembership adding advanced time for createddate(datetime)?
我已經為我的應用程序的登錄名和用戶個人資料實現了簡單成員資格。 該應用程序始終會在創建的日期時間戳記提前6個小時的情況下創建成員資格記錄。 請讓我知道如何覆蓋數據庫中創建的成員資格記錄的時間設置,因為我們正在處理用戶帳戶激活的特定時間限制。 ...
[英]MVC 4 SimpleMembership Model first
最近幾天,我在Stack和其他編碼站點上進行了研究,似乎無法找到解決我的問題的方法。 我的目標是使用我自己的數據庫配置simplemembership。(是的,我已經進行了搜索,但沒有一個回答我的問題) 我正在使用Visual Studio 2013和實體框架4 我將Inter ...
[英]Decrypting the column level SQL encrypted values using C#
我已經開始閱讀和試驗 C# 中的加密和解密技術 我已經使用以下鏈接中提供的信息在 SQL Server 2008 中嘗試了數據加密和解密 http://www.c-sharpcorner.com/UploadFile/chinnasrihari/data-encryption-and-decr ...
[英]Unable to find the requested .Net Framework Data Provider. It may not be installed
我在Visual Studio 2015中使用EntityFramework。我正在嘗試實現webmatrix SimpleMembership。 但這給我一個錯誤“無法找到所請求的.Net Framework數據提供程序。它可能未安裝。” 這是在我的控制器中: 這是在我的Web ...
[英]How to store different sets of user information using ASP.NET MVC Simple Memberships
如何使用簡單成員資格存儲不同組的用戶信息? 例如。 我分別扮演兩個角色(醫生和患者)。 這兩個角色要存儲的擴展用戶信息有些不同。 默認情況下,“簡單成員身份”會創建一個UserProfile表,我想將其拆分為兩個表,以分別容納兩個角色的用戶信息。 請建議是否以及如何實現。 謝 ...
[英]Add custom field to MVC SimpleMembership roles
我有這個代碼來定義我的 ApplicaitonUser。 Name 和 Created 是我添加的自定義字段。 我如何為角色做同樣的事情? 我需要向它們添加一個整數字段。 ...
[英]Unable to find .net data provider exception when implementing SimpleMembership
我是新手。 我正在使用SimpleMembership生成Register和Login表。 但是,我收到以下異常。 例外 System.Data.dll中發生類型'System.ArgumentException'的異常,但未在用戶代碼中處理 附加信息:無法找到請求的 ...
[英]WebSecurity and Multitenancy - how to allow one instance of a username per tenant
使用WebSecurity,注冊用戶是這樣的: 我知道我也可以為User表傳遞自定義參數。 我不知道是-在一個多租戶的情況下,我怎么讓WebSecurity強制執行的唯一Username和TenantId列,而不是僅僅Username ? 相關-登錄時,如何指定“ TenantI ...
[英]CreateUserAndAccount method - SimpleMembership Provider
我有兩個問題: 我為什么要得到這個例外? 我想在用戶表中創建一行(它有6列:名稱,角色,電子郵件,組,Id,SoftwareVersion)和成員資格表中。 主鍵是Id-SoftwareVersion對。 編碼: 碼 怎么了? 是否可以通過更改ID添加更多 ...
[英]How to customize Asp.net Identity to create a User using my own User Table, like in Webmatrix?
我在asp.net MVC 4中使用Simplemembership提供程序,但我將使用Asp.net Identity更改為ASp.net MVC 5。 在我的代碼中,使用Webmatrix,表Funcionario用於驗證: 有沒有辦法像Webmatrix一樣切割我的用戶表? 使 ...
[英]Take me log in long time doesn't work
我對使用SimpleMembershipProvider構建的網站進行身份驗證。 我使用以下代碼登錄: RememberMe是真的。 而且它可以很好地進行調試(當我在計算機上的IIS上運行我的網站時),但是當我在主機上發布網站時,我每分鍾都面臨注銷(當我嘗試執行需要授權的操作時-我已 ...
[英]SimpleMembershipProvider not working on Azure
我在Azure上托管了一個簡單的ASP.NET MVC5 Web應用程序,並且正在使用SimpleMembershipProvider進行手動身份驗證。 在本地計算機上一切正常,但是當我嘗試登錄Azure應用程序時,WebSecurity.Login始終返回false。 沒有異常發生,並 ...
[英]ASP.NET MVC can't create additional fields in the table, Simplemembership
我對simplemembership和表有問題。 我通過WebSecurity使用CreateUserAndAccount方法創建一個用戶。 但是當我運行應用程序時出現錯誤,因為我在表中沒有其他字段。 我可以先使用代碼將這些字段添加到現有表中嗎? 我創建一個上下文: ...
[英]Why I can't get my current user after I logged in?
NET MVC 5簡單會員提供商。 當我創建我的用戶如果一切正常,我登錄他,后來我想找到一些關於他的信息。 但我無法獲得登錄用戶。 這是我的代碼: 所以當我調試並轉到User.Identity.GetUserId(); 它的空。 看看這個: ...