Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.
Comentário: adicionei versõe de tradução do arquivo
Portuguese (Brasil)

Todas as chamadas à API requerem autenticação via HTTP Basic Auth, utilizando usuário e senha M2M (Machine to Machine) disponíveis em https://app.ahgora.com.br/plataforma/contas/usuarios do tipo service.


Como funciona a autenticação Basic

O mecanismo de autenticação Basic utiliza um cabeçalho HTTP com as credenciais codificadas em Base64 no seguinte formato:

Informações

Authorization: Basic <Base64(username:password)>


Requisitos para autenticação:

  • Usuário e senha m2m
  • O cabeçalho Authorization deve estar presente em todas as requisições.
  • As credenciais devem ser válidas e corresponder a um usuário com permissão para acessar os recursos desejados.
  • Se as credenciais forem inválidas ou ausentes, a API retornará erro 401 Unauthorized:

    Bloco de código
    languagetext
    themeEmacs
    linenumberstrue
    collapsetrue
    {
        "error": {
            "code": 401,
            "message": "Unauthorized"
        }
    }


English (US)

All calls to the API require authentication via HTTP Basic Auth, using the M2M (Machine to Machine) username and password available at https://app.ahgora.com.br/plataforma/contas/usuarios of the service type.


How Basic authentication works

The Basic authentication mechanism uses an HTTP header with Base64-encoded credentials in the following format:

Informações

Authorization: Basic <Base64(username:password)>


Authentication requirements:

  • User and password m2m;
  • The Authorization header must be present in all requests.
  • The credentials must be valid and correspond to a user with permission to access the desired resources.
  • If the credentials are invalid or missing, the API will return error 401 Unauthorized:

    Bloco de código
    languagetext
    themeEmacs
    linenumberstrue
    collapsetrue
    {
        "error": {
            "code": 401,
            "message": "Unauthorized"
        }
    }