"nguyenngoc.son" 'in aktiviteleri

Hi, The same issue with loginUsingGrant method

Hi, When the application call method login of ABPOAuthService, we only sent the username and password user to the request payload. As you can see on the second and third images, I believe that the login function is getting client_id, client_secret, and scope from environment.

After update the dummyClientSecret by setState function of EnvironmentService, the login function throw the exception relative to the tokenEndpoint.

However when I check that value in the environment then it still exists.

It working as expected if I

Network tab

Request body

Parameters send to login function

Login function from @abp/ng.core lib

Hi, After following the guidelines,

I got this error when login, the login method of ABPOAuthService throw exception for not find the token endpoint

When I revert the changes, it working as expected

Hi I'm try with the above guideline, however I got the error below

so in the OAuth Config section, we have those below information: issuer, clientId, dummyClientSecret, scope, showDebugInformation, oidc, requireHttps which one can be removed?

Closed it because wrong string was using in the vietnamese json file

Hi, I found the root cause is the vi.json file. After delete that file it working fine. Any idea why the vi.json file is not loaded?

Cevap

H, There is nothing specfic about the code base. I was follow the instruction in ABP document page. When calling the connect/token API, I receive the log below

[10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ExtractTokenRequest". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateGrantType". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientIdParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateAuthorizationCodeParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientCredentialsParameters". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateDeviceCodeParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateRefreshTokenParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateResourceOwnerCredentialsParameters". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateScopeParameter". [10:59:29 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateProofKeyForCodeExchangeParameters". [10:59:31 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateScopes". [10:59:31 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientId". [10:59:31 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientType". [10:59:31 DBG] [] The event "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" was successfully processed by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateClientSecret". [10:59:31 DBG] [] An exception was thrown by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateEndpointPermissions" while handling the "OpenIddict.Server.OpenIddictServerEvents+ValidateTokenRequestContext" event. System.Text.Json.JsonReaderException: '0x0A' is invalid within a JSON string. The string should be correctly escaped. LineNumber: 0 | BytePositionInLine: 253. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeStringAndValidate(ReadOnlySpan1 data, Int32 idx) at System.Text.Json.Utf8JsonReader.ConsumeString() at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at Volo.Abp.OpenIddict.Applications.AbpOpenIddictApplicationStore.GetPermissionsAsync(OpenIddictApplicationModel application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.GetPermissionsAsync(TApplication application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.HasPermissionAsync(TApplication application, String permission, CancellationToken cancellationToken) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateEndpointPermissions.HandleAsync(ValidateTokenRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) [10:59:31 DBG] [] An exception was thrown by "OpenIddict.Server.OpenIddictServerHandlers+Exchange+ValidateTokenRequest" while handling the "OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext" event. System.Text.Json.JsonReaderException: '0x0A' is invalid within a JSON string. The string should be correctly escaped. LineNumber: 0 | BytePositionInLine: 253. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeStringAndValidate(ReadOnlySpan1 data, Int32 idx) at System.Text.Json.Utf8JsonReader.ConsumeString() at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at Volo.Abp.OpenIddict.Applications.AbpOpenIddictApplicationStore.GetPermissionsAsync(OpenIddictApplicationModel application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.GetPermissionsAsync(TApplication application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.HasPermissionAsync(TApplication application, String permission, CancellationToken cancellationToken) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateEndpointPermissions.HandleAsync(ValidateTokenRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateTokenRequest.HandleAsync(ProcessRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) [10:59:32 ERR] [] An unhandled exception has occurred while executing the request. System.Text.Json.JsonReaderException: '0x0A' is invalid within a JSON string. The string should be correctly escaped. LineNumber: 0 | BytePositionInLine: 253. at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan1 bytes) at System.Text.Json.Utf8JsonReader.ConsumeStringAndValidate(ReadOnlySpan1 data, Int32 idx) at System.Text.Json.Utf8JsonReader.ConsumeString() at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker) at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker) at System.Text.Json.Utf8JsonReader.ReadSingleSegment() at System.Text.Json.Utf8JsonReader.Read() at System.Text.Json.JsonDocument.Parse(ReadOnlySpan1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter) at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory1 json, JsonDocumentOptions options) at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options) at Volo.Abp.OpenIddict.Applications.AbpOpenIddictApplicationStore.GetPermissionsAsync(OpenIddictApplicationModel application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager1.GetPermissionsAsync(TApplication application, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager`1.HasPermissionAsync(TApplication application, String permission, CancellationToken cancellationToken) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateEndpointPermissions.HandleAsync(ValidateTokenRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateTokenRequest.HandleAsync(ProcessRequestContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context) at OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandler.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at SCV.Litmus.Shared.DecryptHttpHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in D:\TASConnect\SourceCode\core-platform\SCV.Litmus\aspnet-core\shared\SCV.Litmus.Shared\Middleware\DecryptHttpHeadersMiddleware.cs:line 51 at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<

Hi, Can you provide me which version that will be fixed, and when it will be released?

9 kayıttan 1 ile 9 arası gösteriliyor.
Made with ❤️ on ABP v8.2.0-preview Updated on Mart 25, 2024, 15:11