sure.. currently i am using domain based tenant resolver. i will add this one also for query based tenant resolver
I will check and let you know
Done and invitation sent you id. will share you the reproducing steps
Yes Sure. I have tried to enable tenant level openidict. I am able to see the openiddict applications at tenant level, but while trying to login I am getting invalid_client. if you required the sample I will send you
I need that requirement, Please do you have any customization for enable tenant level ? Please help on this part. it will very helpful for me
How to enable openiddict for multitenant.
I have replaced the source code instated of nugget package (openiddict). and modified the all entities for multitenant and permissions also changed to display the openiddict in tenant level menu Later I have created the one client application at tenant level.
While redirecting the my client application to openididct solutions it's showing error like, invalid client id. I am suspecting tenant not resolving at opendidict level. please help me in this part
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"
}.
How to add the validation rule for existing properties, I want to add validation attribute to role name is there any extension method you have please let me know
In My case, I am using identity server. We have this requirement also for generate access_token. Is there any logic for token generation manually