cost 108 ms
OpenIddict - 自定義無效令牌響應以包含 JSON 正文

[英]OpenIddict - Customise Invalid Token response to include a JSON body

如果我使用無效的訪問令牌向我的 API 發送請求,我會收到以下響應: 我希望能夠自定義此響應,以便我也可以在正文中返回一些 JSON 內容,例如: 有誰知道是否有一個事件我可以掛鈎來自定義響應以添加此消息,所以它看起來像這樣? ...

2023-01-16 17:51:31   1   17    openiddict  
Openiddict UseSystemNetHttp 與 UseLocalServer

[英]Openiddict UseSystemNetHttp vs UseLocalServer

我正在嘗試將 OpenIddict 集成到我的應用程序中。 我的目標系統由一個 AuthServer 組成,它應該發出 oidc access_token 和一組 web 服務(服務提供商),它們作為獨立的 IIS 應用程序托管,並且應該依賴於 AuthServer 發出的令牌。 AuthSer ...

2023-01-12 15:14:32   1   12    openiddict  
指定的“范圍”無效。 在刷新令牌時

[英]The specified 'scope' is invalid. while refreshing token

我正在從 id4 遷移到 openiddict。 到目前為止一切正常。 通過 authorization_code 授權授權和獲取令牌工作正常。 除了我想刷新令牌的時候。 我收到一個'invalid_grant'錯誤,描述為'The specified 'scope' is invalid. whi ...

2023-01-08 16:09:15   1   18    openiddict  
在 ASP.NET Core 的 OpenIdDict 中,指定的“redirect_uri”對於此客戶端應用程序無效

[英]The specified 'redirect_uri' is not valid for this client application in OpenIdDict in ASP.NET Core

我在一個項目中創建了兩個項目和設置服務器,在另一個項目中設置了一個客戶端。 我已經創建了數據庫表來存儲客戶信息。 我還將 RedirectUris 存儲在數據庫中,但每次我都會收到上述錯誤。 任何人都可以建議我缺少什么嗎? 服務器代碼: 客戶端代碼: 我已經檢查了來自 inte.net 的很多文檔, ...

OpenIdDict 用戶信息端點/控制器未執行

[英]OpenIdDict userinfo endpoint/controller not executed

我正在使用 openiddict 並嘗試檢索 /userinfo,但是,我的用戶信息 controller 在調試時從不執行,但我確實收到了來自 api 的響應。 回復:{ "sub": "1e56db90-fe77-47a6-b260-941a59bf32e4", "iss": ...

Blazor WASM on ASP.NET Core with Open Iddict gRPC unauthorized requests not working even with [AllowAnonymous]

[英]Blazor WASM on ASP.NET Core with Open Iddict gRPC unauthorized requests not working even with [AllowAnonymous]

我有 blazor wasm 應用程序托管在 asp.net 核心上並通過 grpc-web 連接。 它與授權用戶完美配合,但我無法進行未經授權的 grpc 調用。 我在日志中得到這個: 但是對於授權用戶,此請求可以正常工作。 我的 startup.cs(嘗試了所有可能的順序 auth/grpc/ ...

OWIN 身份驗證,授權代碼從 .net 框架遷移到 .net 6(基於令牌的身份驗證)

[英]OWIN Authentication, Authorization code migration from .net framework to .net 6 (Token based Authentication)

我們已經對我們的 Web Api 的 in.Net 框架項目實施了 OWIN 授權。 現在我們正在將其遷移到.Net6。 似乎在 .net6/.net 核心中不支持 owin 身份驗證。 我沒有找到任何關於此的文檔。 似乎 Microsoft.Owin.OwinMiddleware 沒有在 .ne ...

OpenIdDict外部登錄,如何刷新token

[英]OpenIdDict external login, how to refresh token

我需要刷新外部登錄access_token,我該怎么做? 我有谷歌外部授權。 我需要將 AccessToken 存儲在 HttpContext 中以向 google 發出請求,但過期后我需要刷新此令牌。 ...

openiddict 是否可以具有 AWS Cognito 的等效功能,例如:用戶池、應用程序 ID 和自定義聲明

[英]Can openiddict have equivalent features of AWS Cognito like: User pool, App ID and Custom claims

我想知道 openiddict ( https://github.com/openiddict/openiddict-core ) 和 Amazon Cognito。 我計划使用 ABP OpenIddict 模塊( https://docs.abp.io/en/abp/6.0/Modules/Op ...

在擴展 class OpenIddictExtensions 上找不到方法 AddClaims

[英]Can't find method AddClaims on extension class OpenIddictExtensions

我已經安裝了 package OpenIddict.AspNetCore、OpenIddict.EntityFrameworkCore、OpenIddict.Quartz 版本 3.1.1,但我缺少 AddClaims 和 SetDestinations 方法。 我發現 ArgumentNullE ...

2022-08-15 16:54:10   2   15    openiddict  
OpenIddict 在發布模式下不刷新 id_token

[英]OpenIddict doens't refresh id_token in release mode

當發出這樣的請求時: 並且用戶已經登錄,該過程繼續並通過代碼流正常循環,但是當在過程結束時請求新令牌時,從 /connect/token 返回的令牌沒有更新,如下所示: 在調試中它工作正常。 我嘗試注釋掉 EnableAuthorizationRequestCaching() (以及策略行 ...

OpenIddict:options.DisableScopeValidation() 不禁用范圍驗證

[英]OpenIddict: options.DisableScopeValidation() not disabling scope validation

如果這是一個愚蠢的問題,真的很抱歉,但不知何故,我無法讓 options.DisableScopeValidation() 工作。 我的代碼 當我不發送任何范圍時,我可以檢索令牌。 但是,每當我發送任何其他未定義的范圍時,我都會收到以下消息: 這是我提出的請求的屏幕截圖:POSTMAN 請 ...

2022-07-21 03:19:46   1   12    openiddict  
有沒有辦法使用依賴注入配置 OpenIddict 加密密鑰(允許使用帶有 DI 的安全保險庫)?

[英]Is there a way to configure OpenIddict Encryption Keys using Dependency Injection (to allow the use of secure vaults with DI)?

在配置OpenIddict加密密鑰(用於簽名和驗證簽名的“訪問令牌” )時,這是在應用程序的啟動中完成的( public void ConfigureServices(IServiceCollection services) {...} ),其中服務 (DI) 仍然存在正在注冊。 因此,假設我想用 ...

自定義 openid 連接提供程序 adb2c

[英]Custom openid connect provider adb2c

我在 adb2c 中為我的 openid 連接服務器創建了一個自定義身份提供程序,但是在通過用戶流運行它時出錯 - 我做過的設置: 創建了一個新的 openId Connectprovider。 為 open-id 連接提供者創建了一個新的用戶流: 我不確定如何通過 adb2c 進行調試,因 ...

在 windows 服務器 2019 上安裝 ADFS 后無法訪問 openid service.well-known/openid-configuration

[英]openid service .well-known/openid-configuration not reachable after installing ADFS on windows server 2019

我使用 OpenIDDict 和 .Net6 創建了一個服務,一切正常,並且 url https://auth.myserver.local/.well-known/openid-configuration與 Z5DA5ACF461B4EFB7E7Z6B2 一起正常工作我想添加一個 SSO 服務並 ...

為什么 grant_type 不在 OpenIddictRequest 參數中?

[英]Why grant_type is not in OpenIddictRequest parameters?

我有一個具有以下原型的端點服務: async Task<IActionResult> Exchange(OpenIddictRequest openIdRequest)我發送一個 postMan 請求,如下所示: 如您所見,我發送了 4 個參數,特別是我提供了參數grant_type ...

無法使用 OIDC 通過我的授權服務器授權招搖

[英]Can't authorize swagger through my Authorization Server using OIDC

我正在使用配置為的Swashbuckle 在那之后 我看到生成swagger.json似乎是正確的, 正如它在文檔中聲明的那樣 但肯定出了問題 - 我得到CORS header 'Access-Control-Allow-Origin' missing發現請求拒絕的原因,同時它返回正確的 ...


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