...
Bloco de código |
---|
curl -X POST https://apigw.projurisadv.com.br/externalauth/token \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "username=USUARIO_AQUI" \ -d "password=SENHA_AQUI" \ -d "grant_type=password" \ -d "client_id=CLIENT_ID_AQUI" \ -d "client_secret=CLIENT_SECRET_AQUI" |
Exemplo via POSTMAN
Bloco de código |
---|
{ "collection":{ "info":{ "_postman_id":"fe5fba91-1e52-428f-b699-f1f23fcccd67", "name":"ClientesExternosPROJURISADV", "schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "updatedAt":"2024-10-17T17:57:06.000Z", "createdAt":"2024-10-17T17:55:27.000Z", "lastUpdatedBy":"5438921", "uid":"5438921-fe5fba91-1e52-428f-b699-f1f23fcccd67" }, "item":[ { "name":"Exemplo Login Experiencia Keycloak", "id":"d780845f-125a-4dbf-96fd-5305ad00d870", "protocolProfileBehavior":{ "disableBodyPruning":true }, "request":{ "method":"POST", "header":[ ], "body":{ "mode":"urlencoded", "urlencoded":[ { "key":"grant_type", "value":"password", "type":"text" }, { "key":"client_id", "value":"CLIENT_ID_AQUI", "type":"text" }, { "key":"client_secret", "value":"CLIENT_SECRET_AQUI", "type":"text" }, { "key":"username", "value":"USUARIO_AQUI$$DOMINIO_ESCRITORIO", "type":"text" }, { "key":"password", "value":"SENHA_AQUI", "type":"text" } ] }, "url":{ "raw":"https://apigw.projurisadv.com.br/externalauth/token", "protocol":"https", "host":[ "apigw", "projurisadv", "com", "br" ], "path":[ "external", "token" ] } }, "response":[ ], "uid":"5438921-d780845f-125a-4dbf-96fd-5305ad00d870" } ] } } |