Base solution for your next web application
Open Closed

getting error on connect/token call in postman #10291


User avatar
0
shedspotter created

Prerequisites What is your product version? - v10.3.0 What is your product type (Angular or MVC)? - Angular What is product framework type (.net framework or .net core)? - .NET 5.0 ABP Framework What is ABP Framework version? - 6.3.0

https://zapier.com/dashboard/auth/oauth/return/App132526CLIAPI/?code= 9504268F8F72595A584632DCC41BA714FD0E6F66ACAA1D98C5C7A624A506ACB2 &scope=openid%20profile&state=1619849405.892335418086&session_state= SUzwxewZNZuse1WmKJ0hAlAxXhtikOJYUiIN_w1BiJM.24CD3E5A944C9C60366BDE1C75B2052B

I am using code parameter,redirect_uri & session_state(code_verifier) from the link whis is navigate after successfull login.

Tryied also

Log file showing Server4.Validation.TokenRequestValidator - Transformed code verifier does not match code challenge

INFO 2021-05-01 11:41:28,145 [72 ] osoft.EntityFrameworkCore.Infrastructure - Entity Framework Core 5.0.3 initialized 'SmartSuiteDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None INFO 2021-05-01 11:41:28,395 [72 ] oft.EntityFrameworkCore.Database.Command - Executed DbCommand (120ms) [Parameters=[@__p_0='?' (Size = 200)], CommandType='Text', CommandTimeout='30'] SELECT TOP(1) [a].[Id], [a].[ClientId], [a].[ConsumedTime], [a].[CreationTime], [a].[Data], [a].[Description], [a].[Expiration], [a].[SessionId], [a].[SubjectId], [a].[Type] FROM [AbpPersistedGrants] AS [a] WHERE [a].[Id] = @__p_0 WARN 2021-05-01 11:41:28,396 [72 ] EntityFrameworkCore.Database.Transaction - Savepoints are disabled because Multiple Active Result Sets (MARS) is enabled. If 'SaveChanges' fails, then the transaction cannot be automatically rolled back to a known clean state. Instead, the transaction should be rolled back by the application before retrying 'SaveChanges'. See https://go.microsoft.com/fwlink/?linkid=2149338 for more information. To identify the code which triggers this warning, call 'ConfigureWarnings(w => w.Throw(RelationalEventId.SavepointsDisabledBecauseOfMARS))'. INFO 2021-05-01 11:41:28,512 [141 ] oft.EntityFrameworkCore.Database.Command - Executed DbCommand (116ms) [Parameters=[@p0='?' (Size = 200)], CommandType='Text', CommandTimeout='30'] SET NOCOUNT ON; DELETE FROM [AbpPersistedGrants] WHERE [Id] = @p0; SELECT @@ROWCOUNT; ERROR 2021-05-01 11:41:28,640 [141 ] Server4.Validation.TokenRequestValidator - Transformed code verifier does not match code challenge, { "ClientId": "demo_test", "ClientName": "MVC Client Demo", "GrantType": "authorization_code", "AuthorizationCode": "****ACB2", "RefreshToken": "********", "Raw": { "grant_type": "authorization_code", "redirect_uri": "https://zapier.com/dashboard/auth/oauth/return/App132526CLIAPI/", "code": "9504268F8F72595A584632DCC41BA714FD0E6F66ACAA1D98C5C7A624A506ACB2", "Client_id": "demo_test", "Client_Secret": "REDACTED", "scope": "read", "code_verifier": "SUzwxewZNZuse1WmKJ0hAlAxXhtikOJYUiIN_w1BiJM.24CD3E5A944C9C60366BDE1C75B2052B" } } INFO 2021-05-01 11:41:28,642 [141 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished HTTP/1.1 POST https://localhost:44301/connect/token application/x-www-form-urlencoded 367 - 400 - application/json;+charset=UTF-8 878.6848ms

Thanks


1 Answer(s)