Skip to content

Commit

Permalink
Melhorias na documentacao. Alerta de Authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
guicouto committed Oct 22, 2018
1 parent 0a50424 commit cc7ac17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/autenticacao.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Exemplo de chamada em uma rota, enviando os dados do Token::

curl -X GET --header "Accept:application/json" https://endereco_servidor/api/v1/teste -k --header "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6Ijg0MTM2O"

Warning
.. warning::

IMPORTANTE: Veja que o token foi enviado no HEADER da requisição HTTP. Conforme o exemplo acima, podemos observar que o token é enviado sempre no header :term:`Authorization`. Caso o Token não esteja presente no reader :term:`Authorization` a API irá responder com o código HTTP 401 (Unauthorized).
IMPORTANTE: Veja que o token foi enviado no HEADER da requisição HTTP. Conforme o exemplo acima, podemos observar que o token é enviado sempre no header :term:`Authorization`. Caso o Token não esteja presente no reader :term:`Authorization` a API irá responder com o código HTTP 401 (Unauthorized).


0 comments on commit cc7ac17

Please sign in to comment.