Comunidade
ERRO AO efetuar autenticação na API
Boa tarde
Preciso de ajuda, estou com este problema ao efetuar autenticação na API em https://id.sandbox.btgpactual.com/oauth2/token
O erro é [A157303] The request contains data for client authentication although the client type is 'public' and the client authentication method is 'none'.
{
"brn": "brn:btg🆔oidc:errors:token-issue-error",
"correlationId": "6e8dc6b7-708c-4968-8e8b-ff5c49d40d52",
"message": "[A157303] The request contains data for client authentication although the client type is 'public' and the client authentication method is 'none'.",
"name": "TokenIssueError",
"errorType": "invalid-client"
}
Se eu mudo a aplicação no painel developers do btg empresas para tipo "CONFIDENTIAL", o erro retornado é
{
"brn": "brn:btg🆔oidc:errors:token-issue-error",
"correlationId": "103742d4-c00c-489d-8822-1b78fb897f7b",
"message": "[A157301] The client type of the client is 'confidential' but the client authentication method is 'none'.",
"name": "TokenIssueError",
"errorType": "invalid-client"
}
Como solucionar?
Já tentei contato no [email protected] mas sem sucesso
Obrigado