我让identityProviderService与我的 API 和 Web 应用程序一起工作,然后我更新我更新了我的依赖项(identityServer4),这导致我使用代码或混合时不断出现以下错误。
IdentityServer4 错误:Invalid_scope
我检查了日志,范围很好,但我可以解决为什么我一直收到这个错误!详情如下:
我的本地 Idp (Identityserver4) 日志和主要错误 =>
Run Code Online (Sandbox Code Playgroud)IdentityServer4.Hosting.IdentityServerMiddleware: Information: Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeEndpoint for /connect/authorize IdentityServer4.Validation.DefaultResourceValidator: Error: Scope Bd.Web.Api not found in store. IdentityServer4.Endpoints.AuthorizeEndpoint: Error: Request validation failed IdentityServer4.Endpoints.AuthorizeEndpoint: Information: { "ClientId": "BdWebAppClientId", "ClientName": "Bd web Client Application", "RedirectUri": "https://localhost:xxxxx/signin-oidc", "AllowedRedirectUris": [ "https://localhost:44386/signin-oidc" ], "SubjectId": "anonymous", "ResponseType": "code", "ResponseMode": "form_post", "GrantType": "authorization_code", "RequestedScopes": "openid profile Bd.Web.Api", "State": "CfDJ8Foioa24zShFmzIFmkTbGBTrbiiEwQYmHGMRUN7FwsfKMgY2-olWJA1XVlAkA0uCWIR6HhMdu2X1exzVKTNFTcAD456Z0r3es5ki377uBEJgjA9jmyQFWWzTZV6_7GEmIC39xUh_b_YAqXgtzO0olZ52beNFuxruk_NshL47NhwcaETCH2cy3XTvRN0NTxZHmxVWglo13iSE7RVpNghHc7pBW7jCv7cB2RldQnEvsJ4s56AdiICw9sdKEJ5mQNoXngshanycX4MmD3qaW0TX6knY43pAqMuPgEEVqd7BXKt_koQfiQuAP3pQNbsyOAb1jtoZ8egUHiKgXjofs8ci2i4", "PromptMode": "", "Raw": { "client_id": "BdWebAppClientId", "redirect_uri": "https://localhost:xxxxx/signin-oidc", "response_type": "code", "scope": "openid profile Bd.Web.Api", …