cost 222 ms
AuthorizationCodeProvider:從不調用Create,如何生成授權代碼?

[英]AuthorizationCodeProvider: Create is never called, how do I generate the authorization code?

我正在設置自己的OAuth2服務器。 到目前為止,我已經在GrantResourceOwnerCredentials的實現中成功實現了OAuthAuthorizationServerProvider 。 現在,因為我正在為我們的業務開發應用程序,所以我希望實現OAuth2授權代碼授權。 ...

ResourceAuthorize("Read","UsersList") 不工作,ResourceAuthorizationManager

[英]ResourceAuthorize("Read","UsersList") not working, ResourceAuthorizationManager

我正在使用 IdentityServer3 發布令牌並嘗試使用 Thinktecture.IdentityModel.Owin.ResourceAuthorization.WebApi 來授權 web api 的資源訪問。 我正在使用以下代碼來授權控制器的操作。 ResourceAuthor ...

如何在Identity Server 3中使用Windows身份驗證?

[英]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-如何使用身份模型使用JWT訪問令牌和用戶聲明

[英]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與aspnet_compiler的5.2.3.0版本控制問題

[英]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:/ ...

在MVC中使用Identity Server V3的customuserservice示例無法重定向到登錄頁面

[英]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 ...

使用自己的用戶存儲庫/數據庫表對IdentitiyServer3進行身份驗證

[英]Using own user repository/ database table for IdentitiyServer3 to authenticate against

您能幫助我對自己的用戶存儲庫/數據庫表進行身份驗證服務器(IdentityServer3)進行身份驗證嗎? 我知道其他人已經做到了,但是似乎無法弄清楚怎么做? ...

在POST中將參數SecurityToken傳遞到其他asp.net mvc網站不起作用,以允許單次啟動

[英]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 ...

橋接表單身份驗證和OAUTH

[英]Bridging forms authentication and OAUTH

修改表單身份驗證登錄過程並不困難,因此除了正常的表單身份驗證之外,WebClient對象還會對使用Thinktecture IdentityModel設置的Web Api DAL所服務的api / token url進行基本身份驗證。 然后,返回的會話令牌可以存儲在會話字典中,以便以后在調用D ...

如何模擬owin的authorizationManager來測試我的api控制器

[英]How to mock owin's authorizationManager to test my api controller

我在WebApi中使用了ThinkTecture的基於資源的授權 。 我正在嘗試測試我的一個控制器,我需要檢查函數內部的訪問權限。 但是現在,我不能再測試這個函數,因為我不能模擬擴展方法,因為它是一個nuget方法,我不能修改類來注入另一個值。 我的控制器看起來像這樣: 並 ...

Thinktecture BasicAuthenticationSecurityTokenHandler返回StatusCode 500,內部服務器錯誤

[英]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聲明授權工作流程。 它是如何工作的?

[英]Thinktecture claims authorization workflow. How does it work?

我已經安裝了Thinktecture.IdentityModel.Core軟件包。 假設我已經在web.config文件中注冊了AuthorizationManager自定義實現。 在應用程序數據庫中為用戶角色定義了一個權限。 這樣,如果User具有BasicUser角色,則它可 ...

MVC5 OWIN ADFS身份驗證循環問題-Thinktecture ResourceAuthorizationManager

[英]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時,我將獲得一個令牌,其中 ...

MVC5允許依賴方使用JWT安全令牌

[英]MVC5 allow relying party to use JWT security tokens

我正在使用Thinktecture IdentityServer v2,依賴方令牌類型設置為none。 使用此設置,代碼可以正常運行。 我希望使用JWT令牌,因此我從MVC應用程序到API,以及從電話/標簽應用程序客戶端到API,都有一個通用接口。 將令牌類型設置為JWT時,我在I ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM