Histórico

EXIBINDO CONVERSAS RECENTES:

Texto: oauth
# pix
Avatar discord do usuario rubenskuhl

rubenskuhl

Ver no Discord

A resposta do /oauth/token é assim:

"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "cob.read cob.write pix.read pix.write"
}

# pix
Avatar discord do usuario rubenskuhl

rubenskuhl

Ver RespostasVer no Discord

É o que vem em resposta ao POST em /oauth/token

# pix
Avatar discord do usuario rubenskuhl

rubenskuhl

Ver RespostasVer no Discord

Sim, é assim que usa o token que você obteve fazendo POST em /oauth/token

# devs
Avatar discord do usuario brazingariah

brazingariah

Ver RespostasVer no Discord

boa tarde...
estou tentando o oauth/token (node sem o SDK)
e recebo "socket hang up"
alguem pode me auxiliar?

# pix
Avatar discord do usuario yurikfernandes

yurikfernandes

Ver no Discord

Estou tentando gerar o OAuthToken por meio da URL https://api-pix-h.gerencianet.com.br/oauth/token" class="link-msg" >https://api-pix-h.gerencianet.com.br/oauth/token mas sempre retornando um erro: Exception: Address unavailable: https://api-pix-h.gerencianet.com.br/oauth/token.

Acredito que tenha a ver com o certificado, se eu convertesse ele para Bas64, poderia adicioná-lo no payload dentro da chave "certificate"? Ou teria outro lugar?

# pix
Avatar discord do usuario ronaldo_pertec

ronaldo_pertec

Ver no Discord

processing: https://pix.api.efipay.com.br/oauth/token
Trying 52.3.67.197:443...
Connected to pix.api.efipay.com.br (52.3.67.197) port 443
CAfile: none
CApath: none
ALPN: offers http/1.1
NSS: client certificate from file
subject: C=BR,CN=301970
start date: May 19 20:28:50 2021 GMT
expire date: May 19 20:28:50 2024 GMT
common name: 301970
issuer: [email protected],CN=api-pix.gerencianet.com.br,OU=Infraestrutura,O=Gerencianet Pagamentos do Brasil Ltda,ST=Minas Gerais,C=BR
ALPN: server accepted http/1.1
SSL connection using TLS_AES_256_GCM_SHA384
Server certificate:
subject: CN=.api.efipay.com.br,O=EFI S.A. - INSTITUICAO DE PAGAMENTO,L=OURO PRETO,ST=MINAS GERAIS,C=BR
start date: May 17 19:31:27 2023 GMT
expire date: Jun 17 19:31:26 2024 GMT
common name: .api.efipay.com.br
issuer: CN=GlobalSign RSA OV SSL CA 2018,O=GlobalSign nv-sa,C=BE
using HTTP/1.1
> POST /oauth/token HTTP/1.1
Host: pix.api.efipay.com.br
api-sdk: efi-php-1.8.0
User-Agent: GuzzleHttp/7
Content-Type: application/json
Authorization: Basic Q2xpZW50X0lkXzcwMWE0OGU2ZWExMDM0ODk5NjAxNTIzY2VmZjY5ZTZlM2M4OGVjMDA6Q2xpZW50X1NlY3JldF9hMDYyZmU5OWE0NjhmYjViZjIzZmE0YzgwMTUyZDFlM2RhNWIzNjFj
Content-Length: 35

Empty reply from server
Closing connection

# pix
Avatar discord do usuario ronaldo_pertec

ronaldo_pertec

Ver no Discord

Agora estou recebendo a seguinte mensagem:
processing: https://pix.api.efipay.com.br/oauth/token
Trying 35.170.124.249:443...
Connected to pix.api.efipay.com.br (35.170.124.249) port 443
CAfile: none
CApath: none
ALPN: offers http/1.1
NSS: client certificate from file
subject: C=BR,CN=301970
start date: May 02 14:50:05 2024 GMT
expire date: May 02 14:50:05 2027 GMT
common name: 301970
issuer: [email protected],CN=apis.efipay.com.br,OU=Infraestrutura,O=Efi S.A. - Instituicao de Pagamento,ST=Minas Gerais,C=BR
ALPN: server accepted http/1.1
SSL connection using TLS_AES_256_GCM_SHA384
Server certificate:
subject: CN=.api.efipay.com.br,O=EFI S.A. - INSTITUICAO DE PAGAMENTO,L=OURO PRETO,ST=MINAS GERAIS,C=BR
start date: May 17 19:31:27 2023 GMT
expire date: Jun 17 19:31:26 2024 GMT
common name: .api.efipay.com.br
issuer: CN=GlobalSign RSA OV SSL CA 2018,O=GlobalSign nv-sa,C=BE
using HTTP/1.1
> POST /oauth/token HTTP/1.1
Host: pix.api.efipay.com.br
api-sdk: efi-php-1.8.0
User-Agent: GuzzleHttp/7
Content-Type: application/json
Authorization: Basic Q2xpZW50X0lkXzcwMWE0OGU2ZWExMDM0ODk5NjAxNTIzY2VmZjY5ZTZlM2M4OGVjMDA6Q2xpZW50X1NlY3JldF9hMDYyZmU5OWE0NjhmYjViZjIzZmE0YzgwMTUyZDFlM2RhNWIzNjFj
Content-Length: 35

Empty reply from server
Closing connection

# pix
Avatar discord do usuario ronaldo_pertec

ronaldo_pertec

Ver RespostasVer no Discord

processing: https://pix.api.efipay.com.br/oauth/token
Trying 52.5.41.74:443...
Connected to pix.api.efipay.com.br (52.5.41.74) port 443
CAfile: none
CApath: none
ALPN: offers http/1.1
NSS: client certificate from file
subject: C=BR,CN=301970
start date: May 02 14:50:05 2024 GMT
expire date: May 02 14:50:05 2027 GMT
common name: 301970
issuer: [email protected],CN=apis.efipay.com.br,OU=Infraestrutura,O=Efi S.A. - Instituicao de Pagamento,ST=Minas Gerais,C=BR
NSS error -8191 (SEC_ERROR_LIBRARY_FAILURE)
security library failure.
Closing connection

# pix
Avatar discord do usuario ronaldo_pertec

ronaldo_pertec

Ver no Discord

processing: https://pix.api.efipay.com.br/oauth/token
Trying 52.5.41.74:443...
Connected to pix.api.efipay.com.br (52.5.41.74) port 443
CAfile: none
CApath: none
ALPN: offers http/1.1
NSS: client certificate from file
subject: C=BR,CN=301970
start date: May 02 14:50:05 2024 GMT
expire date: May 02 14:50:05 2027 GMT
common name: 301970
issuer: [email protected],CN=apis.efipay.com.br,OU=Infraestrutura,O=Efi S.A. - Instituicao de Pagamento,ST=Minas Gerais,C=BR
NSS error -8191 (SEC_ERROR_LIBRARY_FAILURE)
security library failure.
Closing connection

# pix
Avatar discord do usuario ronaldo_pertec

ronaldo_pertec

Ver RespostasVer no Discord

processing: https://api-pix.gerencianet.com.br/oauth/token
Trying 34.193.17.109:443...
Connected to api-pix.gerencianet.com.br (34.193.17.109) port 443
CAfile: none
CApath: none
ALPN: offers http/1.1
NSS: client certificate from file
subject: C=BR,CN=301970
start date: May 02 14:50:05 2024 GMT
expire date: May 02 14:50:05 2027 GMT
common name: 301970
issuer: [email protected],CN=apis.efipay.com.br,OU=Infraestrutura,O=Efi S.A. - Instituicao de Pagamento,ST=Minas Gerais,C=BR
NSS error -8191 (SEC_ERROR_LIBRARY_FAILURE)
security library failure.
Closing connection