我正在通过它们提供的示例来学习IdentityServer4。我正在从快速入门中测试3_ImplicitFlowAuthentication,当我在同意屏幕上单击“拒绝”时,出现错误。 URL上为http://localhost:5002/signin-oidc,浏览器中没有任何内容。
vs控制台上的这些错误最后是:
信息:Microsoft.AspNetCore.Hosting.Internal.WebHost [1] 请求启动HTTP / 1.1 POST http://localhost:5002/signin-oidc application / x-www-form-urlencoded 373 失败:Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler [12] 消息包含错误:“ access_denied”,错误描述:“ error_description为空”,错误_uri:“ error_uri为空”。 信息:Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler [4] 来自RemoteAuthentication的错误:消息包含错误:'access_denied',error_description:'error_description为null',error_uri:'error_uri为null'..
此日志在identityserver4_log.txt上
2019-11-04 14:44:06.507 -05:00 [DBG]范围包含offline_access,需要征得同意 2019-11-04 14:44:06.507 -05:00 [INF]错误:用户拒绝同意 2019-11-04 14:44:06.510 -05:00 [INF] {“ ClientId”:“ mvc”,“ ClientName”:“ MVC Client”,“ RedirectUri”:“ http://localhost:5002/signin-oidc”,“ AllowedRedirectUris” :[“ http://localhost:5002/signin-oidc”,“ SubjectId”:“ 2”,“ ResponseType”:“代码id_token”,“ ResponseMode”:“ form_post”,“ GrantType”:“混合”,“ RequestedScopes”:“ openid简介API1 offline_access “ ”国家“: ”CfDJ8M2_h1HzgmhHvTB-QAGe9U0QCvcezgyFdPqMOMBPp50wSYQoPVPezEI_fkVcKJSwmDbDZA5Ebzue6qwj2Q48mIOuItFwgWwAIdAxNcHNKUfNG78aQefz0S-FmhkQgP763r_-IId74duR8Fg9RgbpRM7OpVWofPEhp8alOuOn1v2Q124SqHtvh3W77Boajp1ykg9uGXOZPFhDFxHs3bO8jUIHlmV3TLexVNRJ36kz0qwdX4ENaaD7FSVAPMfFyd1NHQ0t6pVIpthryFXpjVe3ry3aP7yBtLQE81atmtdaoBlBQWobKz_gtS8n4ZrKcysQ0LI1Yna2JRBXeQeE-n3SgnA“, ”UiLocales“:空, ”随机数“: ”637084934382479172.ZTBjNDZmOTItOWNhZS00MTMzLWEwNWYtMTE4YjcxYmZhYzg2MThkYjMzNDUtZWI1Ny00MzI3LTkyZjItMjU3YTRmMTY0OWRi“, ”AuthenticationContextReferenceClasses“:空, ”DISPLAYMODE“:空” PromptMode“:null,” MaxAge“:null,” LoginHint“:null,” SessionId“:” b8ad6188cac7fba97f8959dfb785f95b“,” Raw“:{” client_id“:” mvc“,” redirect_uri“:” http://localhost:5002/signin-oidc“, “ respo nse_type “:” 代码id_token “ ”范围“: ”的OpenID轮廓API1 offline_access“, ”response_mode“: ”form_post“, ”随机数“: ”637084934382479172.ZTBjNDZmOTItOWNhZS00MTMzLWEwNWYtMTE4YjcxYmZhYzg2MThkYjMzNDUtZWI1Ny00MzI3LTkyZjItMjU3YTRmMTY0OWRi“, ”状态“:” CfDJ8M2_h1HzgmhHvTB-QAGe9U0QCvcezgyFdPqMOMBPp50wSYQoPVPezEI_fkVcKJSwmDbDZA5Ebzue6qwj2Q48mIOuItFwgWwAIdAxNcHNKUfNG78aQefz0S-FmhkQgP763r_-IId74duR8Fg9RgbpRM7OpVWofPEhp8alOuOn1v2Q124SqHtvh3W77Boajp1ykg9uGXOZPFhDFxHs3bO8jUIHlmV3TLexVNRJ36kz0qwdX4ENaaD7FSVAPMfFyd1NHQ0t6pVIpthryFXpjVe3ry3aP7yBtLQE81atmtdaoBlBQWobKz_gtS8n4ZrKcysQ0LI1Yna2JRBXeQeE- n3SgnA”,“ x客户端SKU”:“ ID_NETSTANDARD1_4”,“ x客户端版本”:“ 5.2.0.0”},“ $ type”:“ AuthorizeRequestValidationLog”}
那么,这个例子怎么了?