Open Closed

Service Provider redirection issue - OpenID dict on teneant level #4186


User avatar
0
Rajasekhar created
  • ABP Framework version: v6.0.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC): yes
  • Exception message and stack trace:
Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType.
2022-12-13 17:15:13.140 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement.
2022-12-13 17:15:13.140 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+InferIssuerFromHost.
2022-12-13 17:15:13.153 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ExtractAuthorizationRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ExtractGetOrPostRequest`1[[OpenIddict.Server.OpenIddictServerEvents+ExtractAuthorizationRequestContext, OpenIddict.Server, Version=3.1.1.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
2022-12-13 17:15:13.163 +05:30 [INF] The authorization request was successfully extracted: {
  "client_id": "ebanking",
  "redirect_uri": "https://ebanking.xsensezts.com/signin-oidc",
  "response_type": "id_token",
  "scope": "openid profile email",
  "response_mode": "form_post",
  "nonce": "638065287126174151.YWQ4YzI4MjctMzJlNi00NmU4LWI0ZjItYTllZTM0OTQ4YTk5Y2MyYTBmOWMtOTJkNi00YjMwLWEyMjYtNTE5MmJmZTRiMDli",
  "state": "CfDJ8GVn3n20M4pPqPiTCBxGyi_m4NXO6ok-Tpms3xR3H45wNjXm_OZlvyW9qXDV_9YMR8hmqwc7wiLcG4GMimIs8M8UO1i9ulxr595Lwp__hr5r-ALBLOsgUJdEgJqOcIOueMm3uFsOaec4BRqRx-6bRYIKBwURhi6zQJ7XJ7a0FGiZG1XIXrLoq-KV0fZnTay2snjiCdj9Ef2iYPItqGT5H4c0rVfo0kJ66e_1iAmXxqGzBet_HYHpuqNqmvzt1PzPV4mUfLHLySUKCYJtxpvUC6McAKFfLoFvkiOF5lasjudBMZ0_qXvT2uEc-H6S002FVjurlRv8_ZSpbjcWo2z9izAwDtoVnPCn_Qdy3-kBJruf",
  "x-client-SKU": "ID_NETSTANDARD1_4",
  "x-client-ver": "5.2.0.0"
}.
2022-12-13 17:15:13.163 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ExtractAuthorizationRequest.
2022-12-13 17:15:13.170 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateRequestParameter.
2022-12-13 17:15:13.170 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateRequestUriParameter.
2022-12-13 17:15:13.171 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateClientIdParameter.
2022-12-13 17:15:13.172 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateRedirectUriParameter.
2022-12-13 17:15:13.180 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateResponseTypeParameter.
2022-12-13 17:15:13.180 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateResponseModeParameter.
2022-12-13 17:15:13.182 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateScopeParameter.
2022-12-13 17:15:13.182 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateNonceParameter.
2022-12-13 17:15:13.185 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidatePromptParameter.
2022-12-13 17:15:13.185 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateProofKeyForCodeExchangeParameters.
2022-12-13 17:15:13.267 +05:30 [INF] The authorization request was rejected because the client application was not found: 'ebanking'.
2022-12-13 17:15:13.268 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateClientId.
2022-12-13 17:15:13.268 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ValidateAuthorizationRequestContext was marked as rejected by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateClientId.
2022-12-13 17:15:13.269 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateAuthorizationRequest.
2022-12-13 17:15:13.269 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was marked as rejected by OpenIddict.Server.OpenIddictServerHandlers+Authentication+ValidateAuthorizationRequest.
2022-12-13 17:15:13.277 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+AttachRedirectUri.
2022-12-13 17:15:13.278 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+InferResponseMode.
2022-12-13 17:15:13.279 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+Authentication+AttachResponseState.
2022-12-13 17:15:13.285 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+Authentication+ProcessFormPostResponse.
2022-12-13 17:15:13.286 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+Authentication+ProcessQueryResponse.
2022-12-13 17:15:13.288 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+Authentication+ProcessFragmentResponse.
2022-12-13 17:15:13.289 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+AttachHttpResponseCode`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext, OpenIddict.Server, Version=3.1.1.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
2022-12-13 17:15:13.289 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+AttachCacheControlHeader`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext, OpenIddict.Server, Version=3.1.1.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
2022-12-13 17:15:13.290 +05:30 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ProcessStatusCodePagesErrorResponse`1[[OpenIddict.Server.OpenIddictServerEvents+ApplyAuthorizationResponseContext, OpenIddict.Server, Version=3.1.1.0, Culture=neutral, PublicKeyToken=35a561290d20de2f]].
2022-12-13 17:15:13.293 +05:30 [INF] The response was successfully returned as a plain-text document: {
  "error": "invalid_request",
  "error_description": "The specified 'client_id' is invalid.",
  "error_uri": "https://documentation.openiddict.com/errors/ID2052"
}.
  • Steps to reproduce the issue:"
  1. We have extended openiddict to tenant level
  2. Added an application(eg:ebanking.abp.com)to the tenant(eg: public.abp.com)
  3. Try sp intiated login and we are getting this message.
  4. It is working sometimes but failing most of the times.
  5. One observation we found was When we edit openid application settings like consent etc,it is working immediately. but we are getting same issue.

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

    hi

    "error_description": "The specified 'client_id' is invalid.",

    How can I reproduce the problem?

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38