Starts in:
1 DAY
7 HRS
9 MIN
43 SEC
Starts in:
1 D
7 H
9 M
43 S
Open Closed

Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolException: Message contains error: 'invalid_request', error_description: 'The specified HTTP method is not valid.', error_uri: 'https://documentation.openiddict.com/errors/ID2084'. #4421


User avatar
0
amolk created
  • ABP Framework version: v7.0
  • UI type: MVC
  • DB provider: EF Core
  • **Tiered (MVC) **: no
  • Exception message and stack trace:
* [13:21:58 INF] Request starting HTTP/1.1 POST http://webapp.testprojects.in/signin-oidc application/x-www-form-urlencoded 1607
[13:21:58 ERR] Message contains error: 'invalid_request', error_description: 'The specified HTTP method is not valid.', error_uri: 'https://documentation.openiddict.com/errors/ID2084', status code '400'.
[13:21:58 ERR] Exception occurred while processing message.
Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolException: Message contains error: 'invalid_request', error_description: 'The specified HTTP method is not valid.', error_uri: 'https://documentation.openiddict.com/errors/ID2084'.
   at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.RedeemAuthorizationCodeAsync(OpenIdConnectMessage tokenEndpointRequest)
   at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleRemoteAuthenticateAsync()
[13:21:58 INF] Error from RemoteAuthentication: Message contains error: 'invalid_request', error_description: 'The specified HTTP method is not valid.', error_uri: 'https://documentation.openiddict.com/errors/ID2084'..
[13:21:58 ERR] An unhandled exception has occurred while executing the request.
System.Exception: An error was encountered while handling the remote login.
 ---> Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectProtocolException: Message contains error: 'invalid_request', error_description: 'The specified HTTP method is not valid.', error_uri: 'https://documentation.openiddict.com/errors/ID2084'.
   at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.RedeemAuthorizationCodeAsync(OpenIdConnectMessage tokenEndpointRequest)
   at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleRemoteAuthenticateAsync()
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
   at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
[13:21:58 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)'
[13:21:58 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared).
  • Steps to reproduce the issue:"

We have Latest copy of ABP IO commercial V7.0 using MVC and EFCore. Everything is working fine on Local without any change. We are trying to run this application on azure, and when we click on login it successfully redirect to the Auth Server then after passing credentials and clicked on Login we are getting above error. Same Issue is for Public Web site login. We did required changes on azure as well. "RequireHttpsMetadata": "false", this value is et to false and "IsOnK8s": "true", set to true for Public Web project. After login we are running into this issue.

Could you please help us to resolve this issue ASAP.

"AuthServer": { "Authority": "authserver url", "RequireHttpsMetadata": "true", "ClientId": "PublicWeb", "ClientSecret": "1q2w3e*", "IsOnK8s": "true", "MetaAddress": "authserver url" },


33 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Local k8s works, indicating that this is not a code problem, but an environmental problem.

  • User Avatar
    0
    amolk created

    locally IsOnK8s is false in Kubernetes we are changing that to true

    these are the logs of publicwebapp

    [08:36:34 INF] Request starting HTTP/1.1 POST http://publicweb.domain.in/signin-oidc application/x-www-form-urlencoded 1623 [08:36:35 ERR] Exception occurred while processing message. System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    changing that to true

    Please clear all logs and try to log in, then share all logs. Thanks

  • User Avatar
    0
    amolk created

    [09:08:48 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/Account/Login - - [09:08:48 INF] Executing endpoint 'testmvc.PublicWeb.Controllers.AccountController.Login (testmvc.PublicWeb)' [09:08:48 INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Login(System.String, System.String) on controller testmvc.PublicWeb.Controllers.AccountController (testmvc.PublicWeb). [09:08:48 INF] Executing ChallengeResult with authentication schemes (["oidc"]). [09:08:49 INF] AuthenticationScheme: oidc was challenged. [09:08:49 INF] Executed action testmvc.PublicWeb.Controllers.AccountController.Login (testmvc.PublicWeb) in 242.9054ms [09:08:49 INF] Executed endpoint 'testmvc.PublicWeb.Controllers.AccountController.Login (testmvc.PublicWeb)' [09:08:49 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/Account/Login - - - 302 0 - 247.9773ms [09:08:55 INF] Request starting HTTP/1.1 POST http://publicweb.domain.in/signin-oidc application/x-www-form-urlencoded 1623 [09:08:56 ERR] Exception occurred while processing message. System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.GetUserInformationAsync(OpenIdConnectMessage message, JwtSecurityToken jwt, ClaimsPrincipal principal, AuthenticationProperties properties) at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleRemoteAuthenticateAsync() [09:08:56 INF] Error from RemoteAuthentication: Response status code does not indicate success: 401 (Unauthorized).. [09:08:56 ERR] An unhandled exception has occurred while executing the request. System.Exception: An error was encountered while handling the remote login. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.GetUserInformationAsync(OpenIdConnectMessage message, JwtSecurityToken jwt, ClaimsPrincipal principal, AuthenticationProperties properties) at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleRemoteAuthenticateAsync() --- End of inner exception stack trace --- at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler 1.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context) at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context) at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<b__1>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task) [09:08:56 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [09:08:56 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task 1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [09:08:56 WRN] The required antiforgery request token was not provided in either form field "__RequestVerificationToken" or header value "RequestVerificationToken". [09:08:56 INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'. [09:08:56 INF] Executing StatusCodeResult, setting HTTP status code 400 [09:08:56 INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 4.8833ms [09:08:56 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [09:08:56 INF] Request finished HTTP/1.1 POST http://publicweb.domain.in/signin-oidc application/x-www-form-urlencoded 1623 - 302 0 - 291.4193ms [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/Error?httpStatusCode=400 - - [09:08:56 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [09:08:56 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task 1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [09:08:56 INF] Executing ViewResult, running view ~/Views/Error/Default.cshtml. [09:08:56 INF] Executed ViewResult - view ~/Views/Error/Default.cshtml executed in 10.6264ms. [09:08:56 INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 12.8478ms [09:08:56 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/Error?httpStatusCode=400 - - - 400 - text/html;+charset=utf-8 13.9861ms [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/__bundles/LeptonX.Global.93323F96EFDA8E72586BA53EC07EC0CC.css?_v=638108393257921123 - - [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/__bundles/Views.Error.DefaultErrorComponent.default.F15FCDEA56EC024E1CDCD86CA6B586D8.css?_v=638108393268180293 - - [09:08:56 INF] The file /__bundles/LeptonX.Global.93323F96EFDA8E72586BA53EC07EC0CC.css was not modified [09:08:56 INF] Sending file. Request path: '/__bundles/Views.Error.DefaultErrorComponent.default.F15FCDEA56EC024E1CDCD86CA6B586D8.css'. Physical path: 'N/A' [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/__bundles/Views.Error.DefaultErrorComponent.default.F15FCDEA56EC024E1CDCD86CA6B586D8.css?_v=638108393268180293 - - - 200 168 text/css 0.8408ms [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/__bundles/LeptonX.Global.93323F96EFDA8E72586BA53EC07EC0CC.css?_v=638108393257921123 - - - 304 - text/css 2.9592ms [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/api/account/profile-picture-file/ - - [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/__bundles/LeptonX.Global.7C52D832CFF1FE12C30D365E0ABA8293.js?_v=638108393264672610 - - [09:08:56 INF] The file /__bundles/LeptonX.Global.7C52D832CFF1FE12C30D365E0ABA8293.js was not modified [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/__bundles/LeptonX.Global.7C52D832CFF1FE12C30D365E0ABA8293.js?_v=638108393264672610 - - - 304 - application/javascript 0.5117ms [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/Abp/ApplicationLocalizationScript?cultureName=en - - [09:08:56 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' [09:08:56 INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationLocalizationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.ActionResult] GetAsync(Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationLocalizationRequestDto) on controller Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController (Volo.Abp.AspNetCore.Mvc). [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/api/account/profile-picture-file/ - - - 302 0 - 6.6612ms [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/Abp/ApplicationConfigurationScript - - [09:08:56 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/Abp/ServiceProxyScript - - [09:08:56 INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationConfigurationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.ActionResult] Get() on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController (Volo.Abp.AspNetCore.Mvc). [09:08:56 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' [09:08:56 INF] Route matched with {area = "Abp", action = "GetAll", controller = "AbpServiceProxyScript", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetAll(Volo.Abp.AspNetCore.Mvc.ProxyScripting.ServiceProxyGenerationModel) on controller Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController (Volo.Abp.AspNetCore.Mvc). [09:08:56 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [09:08:56 INF] Executed action Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) in 5.7943ms [09:08:56 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/Abp/ServiceProxyScript - - - 200 8170 application/javascript 7.1387ms [09:08:56 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [09:08:56 INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) in 12.2527ms [09:08:56 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/Abp/ApplicationConfigurationScript - - - 200 3019 application/javascript 13.8801ms [09:08:56 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [09:08:56 INF] Executed action Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 16.2644ms [09:08:56 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/Abp/ApplicationLocalizationScript?cultureName=en - - - 200 37558 application/javascript 19.5811ms [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/Error?httpStatusCode=404 - - [09:08:56 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [09:08:56 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task 1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [09:08:56 INF] Executing ViewResult, running view ~/Views/Error/404.cshtml. [09:08:56 INF] Executed ViewResult - view ~/Views/Error/404.cshtml executed in 5.7186ms. [09:08:56 INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 7.158ms [09:08:56 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/Error?httpStatusCode=404 - - - 404 - text/html;+charset=utf-8 8.0069ms [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2 - - [09:08:56 INF] Sending file. Request path: '/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2'. Physical path: '/app/wwwroot/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2' [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/libs/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2 - - - 200 13224 font/woff2 0.9160ms [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/api/account/profile-picture-file/ - - [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/api/account/profile-picture-file/ - - - 302 0 - 0.6499ms [09:08:56 INF] Request starting HTTP/1.1 GET http://publicweb.domain.in/Error?httpStatusCode=404 - - [09:08:56 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [09:08:56 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [09:08:56 INF] Executing ViewResult, running view ~/Views/Error/404.cshtml. [09:08:56 INF] Executed ViewResult - view ~/Views/Error/404.cshtml executed in 6.209ms. [09:08:56 INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 7.9914ms [09:08:56 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [09:08:56 INF] Request finished HTTP/1.1 GET http://publicweb.domain.in/Error?httpStatusCode=404 - - - 404 - text/html;+charset=utf-8 9.2092ms

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share these logs by email?

    Web and AuthServer

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Please send the AuthServer logs as well.

  • User Avatar
    0
    amolk created

    AuthServer logs and PublicWebApp logs are present in logs.txt file once check mail

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    AuthServer first returns the access_token, and the Web will check it, and try to use it to get UserInfo. But AuthServer says it doesn't exist. I really don't understand.

    It seems that the HTTP request has been tampered with.

    [09:31:12 INF] Executing SignInResult with authentication scheme (OpenIddict.Server.AspNetCore) and the following principal: System.Security.Claims.ClaimsPrincipal.
    [09:31:12 INF] The token 'eee2d6af-f98a-0c19-2a7a-3a091e7db469' was successfully marked as redeemed.
    [09:31:12 INF] The response was successfully returned as a JSON document: {
      "access_token": "[redacted]",
      "token_type": "Bearer",
      "expires_in": 3600,
      "scope": "openid profile roles email phone AccountService AdministrationService ProductService",
      "id_token": "[redacted]"
    }.
    [09:31:12 INF] Executed action Volo.Abp.OpenIddict.Controllers.TokenController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore) in 86.1095ms
    [09:31:12 INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.TokenController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)'
    [09:31:12 INF] Request finished HTTP/1.1 POST http://authserver.domain.in/connect/token application/x-www-form-urlencoded 193 - 200 2732 application/json;charset=UTF-8 235.7982ms
    [09:31:12 INF] Request starting HTTP/1.1 GET http://authserver.domain.in/connect/userinfo - -
    [09:31:12 INF] The request URI matched a server endpoint: Userinfo.
    [09:31:12 INF] The userinfo request was successfully extracted: {}.
    [09:31:12 INF] The userinfo request was rejected because the mandatory 'access_token' parameter was missing.
    [09:31:12 INF] The response was successfully returned as a challenge response: {
      "error": "missing_token",
      "error_description": "The mandatory 'access_token' parameter is missing.",
      "error_uri": "https://documentation.openiddict.com/errors/ID2029"
    }.
    [09:31:12 INF] Request finished HTTP/1.1 GET http://authserver.domain.in/connect/userinfo - - - 302 0 - 9.2758ms
    [09:31:12 INF] Request starting HTTP/1.1 GET http://authserver.domain.in/Error?httpStatusCode=401 - -
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06