[英]AuthorizationCodeProvider: Create is never called, how do I generate the authorization code?
我正在設置自己的OAuth2服務器。 到目前為止,我已經在GrantResourceOwnerCredentials的實現中成功實現了OAuthAuthorizationServerProvider 。 現在,因為我正在為我們的業務開發應用程序,所以我希望實現OAuth2授權代碼授權。 ...
[英]AuthorizationCodeProvider: Create is never called, how do I generate the authorization code?
我正在設置自己的OAuth2服務器。 到目前為止,我已經在GrantResourceOwnerCredentials的實現中成功實現了OAuthAuthorizationServerProvider 。 現在,因為我正在為我們的業務開發應用程序,所以我希望實現OAuth2授權代碼授權。 ...
[英]ResourceAuthorize("Read","UsersList") not working, ResourceAuthorizationManager
我正在使用 IdentityServer3 發布令牌並嘗試使用 Thinktecture.IdentityModel.Owin.ResourceAuthorization.WebApi 來授權 web api 的資源訪問。 我正在使用以下代碼來授權控制器的操作。 ResourceAuthor ...
[英]How do I use Windows auth with Identity Server 3?
我的目標是使用Web服務的Angular應用程序,使用Windows身份驗證對應用程序/ Web服務的用戶進行身份驗證。 用戶應該能夠登錄我們的Windows域中的計算機,打開瀏覽器並使用Angular應用程序而無需再次登錄。 研究 我從https://github.com/Ide ...
[英]What can cause a handler to be ignored?
我們搬到了新服務器,我的Thinktecture IdentityModel東西壞了。 這是一個超級簡化的復制樣本。 這項工作可以從Visual Studio在本地運行,但是部署到處理程序顯然無法處理的服務器。 處理程序未執行。 我已經設置了遠程調試,這表明 Thin ...
[英]Asp.Net Web Api 2 - How to consume JWT access token and user claims using Identity Model
我有一個Asp.Net的Web API項目實施的授權服務器,因為這在解釋文章 。 現在,我需要使用.Net c#客戶端的服務。 在IdentityModel 文檔中,我可以看到以下示例: 問題: 獲得客戶ID和客戶機密的目的是什么? 如何使用用戶憑據對用戶進行身 ...
[英]System.Web.Mvc 5.2.2.0 vs. 5.2.3.0 versioning issue with aspnet_compiler
在Visual Studio中打開視圖編譯時遇到問題。 我有一個相當標准的ASP.NET MVC 5應用程序,有很多參考。 我引用System.Web.Mvc 5.2.3.0(最新版本),但編譯似乎與v.5.2.2.0 vs 5.2.3.0有問題。 優秀的工具AsmSpy( https:/ ...
[英]Server sessions (IsReference mode) for Thinktecture Id.Srv. 3
與參考。 到brockallen.com/2013/02/21/server-side-session-token-caching-wif-and-thinktecture-identitymodel 我想將服務器端會話與Id.Srv一起使用。 3,並使用Redis緩存作為會話存儲庫創 ...
[英]IdentityServer3 get user token by username and password post REQUEST
我發現此教程用於通過用戶名和密碼進行身份驗證並從身份服務器獲取令牌: http://leastprivilege.com/2013/11/13/embedding-a-simple-usernamepassword-authorization-server-in-web-api-v2/ ...
[英]Using customuserservice sample of Identity Server V3 in MVC not able to redirect to login page
我正在使用身份服務器v3的CustomUserService示例。 我添加了家庭控制器,如下所示-`public class HomeController:Controller {// // GET:/ Home / public ActionResult Index(){return Vie ...
[英]Using own user repository/ database table for IdentitiyServer3 to authenticate against
您能幫助我對自己的用戶存儲庫/數據庫表進行身份驗證服務器(IdentityServer3)進行身份驗證嗎? 我知道其他人已經做到了,但是似乎無法弄清楚怎么做? ...
[英]Passing parameter SecurityToken to a different asp.net mvc website in a POST doesn't work to allow Single Sing-On
我有幾個網站A,B,C..。網站A:是一個身份驗證網站,具體取決於用戶名,密碼和其他參數; 網站A將成功的用戶登錄重定向到網站B。登錄用戶后,我在網站A中獲得了一個從System.IdentityModel.Tokens.SecurityToken派生的令牌。 我的第一種方法是嘗試通過POS ...
[英]Use HttpSessionState to store Token/Claims
有沒有可用的解決方案來使用HttpSessionState存儲令牌? 我知道我們可以啟用會話以使身份驗證cookie變小: 據我了解,使用默認實現時,令牌存儲在內存中。 http://www.cloudidentity.com/blog/2010/05/26/YOUR-FEDAU ...
[英]Bridging forms authentication and OAUTH
修改表單身份驗證登錄過程並不困難,因此除了正常的表單身份驗證之外,WebClient對象還會對使用Thinktecture IdentityModel設置的Web Api DAL所服務的api / token url進行基本身份驗證。 然后,返回的會話令牌可以存儲在會話字典中,以便以后在調用D ...
[英]How to mock owin's authorizationManager to test my api controller
我在WebApi中使用了ThinkTecture的基於資源的授權 。 我正在嘗試測試我的一個控制器,我需要檢查函數內部的訪問權限。 但是現在,我不能再測試這個函數,因為我不能模擬擴展方法,因為它是一個nuget方法,我不能修改類來注入另一個值。 我的控制器看起來像這樣: 並 ...
[英]Thinktecture BasicAuthenticationSecurityTokenHandler returning StatusCode 500, Internal Server Error
我最近從較舊的Thinktecture IdentityModel升級到了支持Web API 2的最新IdentityModel。 當我使用System.Web.Mvc v5.2.2.0時,以下代碼與以前的nuget軟件包(以及托管它的較小的webapi版本)一起使用,盡管它到達Valid ...
[英]Thinktecture claims authorization workflow. How does it work?
我已經安裝了Thinktecture.IdentityModel.Core軟件包。 假設我已經在web.config文件中注冊了AuthorizationManager自定義實現。 在應用程序數據庫中為用戶角色定義了一個權限。 這樣,如果User具有BasicUser角色,則它可 ...
[英]MVC5 OWIN ADFS Authentication loop issue - Thinktecture ResourceAuthorizationManager
我對MVC5網絡應用程序有一個特殊的問題。 它使用了一個很漂亮的OWIN標准實現,即Thinktecture ResourceAuthorizationManager。 它被配置為與ADFS一起使用。 我面臨的問題是,在部署應用程序並在服務器(服務器2012R2中的IIS)上運行了 ...
[英]Authenticate - provide login email address to lookup user identity
我正在使用Thinktecture AuthenticationConfiguration為在我的API上簽名令牌提供一個端點: 並使用CredentialsService對用戶進行身份驗證: 上面的方法有效,並且肯定不會在生產中使用它,但是返回true時,我將獲得一個令牌,其中 ...
[英]RestSharp calling WebAPI with Thinktecture AuthenticationConfiguration
我在MVC應用程序中使用Restsharp,試圖調用受Thinktecture IdentityModel AuthenticationConfiguration保護的后端MVC WebAPI。 MVC API設置 我的MVC API測試是通過以下方式設置的: JavaScr ...
[英]MVC5 allow relying party to use JWT security tokens
我正在使用Thinktecture IdentityServer v2,依賴方令牌類型設置為none。 使用此設置,代碼可以正常運行。 我希望使用JWT令牌,因此我從MVC應用程序到API,以及從電話/標簽應用程序客戶端到API,都有一個通用接口。 將令牌類型設置為JWT時,我在I ...