Comunidade

Ask a Question
Back to all

Scope openid?

generate-access-token:
	curl -s -X POST "https://id.sandbox.btgpactual.com/oauth2/token" \
		-H "Content-Type: application/x-www-form-urlencoded" \
		-u "$(CLIENT_ID):$(CLIENT_SECRET)" \
		-d "grant_type=client_credentials" \
		-d "scope=openid empresas.btgpactual.com/pix-cash-in"

Olá equipe de suporte da BTG Pactual, tudo bem?

Quando executo o comando acima (com escopo openid), tenho um retorno sem o openid. Isto está correto?

{
    "access_token": "ACCESS_TOKEN",
    "scope": "empresas.btgpactual.com/pix-cash-in",
    "token_type": "Bearer",
    "expires_in": 86400
}

Muito obrigado pela ajuda e um ótimo dia!