From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- .../web/http/headers/www-authenticate/index.html | 93 ++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 files/pt-br/web/http/headers/www-authenticate/index.html (limited to 'files/pt-br/web/http/headers/www-authenticate') diff --git a/files/pt-br/web/http/headers/www-authenticate/index.html b/files/pt-br/web/http/headers/www-authenticate/index.html new file mode 100644 index 0000000000..555854a43d --- /dev/null +++ b/files/pt-br/web/http/headers/www-authenticate/index.html @@ -0,0 +1,93 @@ +--- +title: WWW-Authenticate +slug: Web/HTTP/Headers/WWW-Authenticate +tags: + - Cabeçalho HTTP + - Cabeçalho de Resposta + - HTTP + - Referencia + - cabeçalho +translation_of: Web/HTTP/Headers/WWW-Authenticate +--- +
{{HTTPSidebar}}
+ +

O cabeçalho da resposta HTTP WWW-Authenticate define o método de autenticação a ser usado para obter acesso ao recurso.

+ +

O cabeçalho WWW-Authenticate é enviado junto a resposta {{HTTPStatus("401")}} Unauthorized.

+ + + + + + + + + + + + +
Tipo de cabeçalho{{Glossary("Response header")}}
{{Glossary("Forbidden header name")}}não
+ +

Sintaxe

+ +
WWW-Authenticate: <type> realm=<realm>
+
+ +

Diretivas

+ +
+
<type>
+
Tipo de autenticação. Um tipo comum de autenticação é "Basic". IANA mantém uma lista de esquema de autenticação.
+
realm=<realm>
+
Uma descrição da área protegida. Se nenhuma área for informada, os clientes frequentemente exibirão um hostname formatado.
+
charset=<charset>
+
Informa ao cliente qual é o encoding do servidor quando for submetido usuário e senha. O único valor permitido é "UTF-8". Isso não está relacionado ao encoding da realm string.
+
+ +

Exemplos

+ +

Tipicamente, uma resposta do servidor contém um cabeçalho WWW-Authenticate que se parece com isso:

+ +
WWW-Authenticate: Basic
+
+WWW-Authenticate: Basic realm="Access to the staging site", charset="UTF-8"
+
+ +

Veja também autenticação HTTP para exemplos em como configurar servidores Apache ou nginx para proteger seu site com senha usando autenticação básica HTTP.

+ +

Especificações

+ + + + + + + + + + + + + + + + + + +
EspecificaçãoTítulo
{{RFC("7235", "WWW-Authenticate", "4.1")}}HTTP/1.1: Authentication
{{RFC("7617")}}The 'Basic' HTTP Authentication Scheme
+ +

Compatibilidade de navegador

+ + + +

{{Compat("http.headers.WWW-Authenticate")}}

+ +

Veja também

+ + -- cgit v1.2.3-54-g00ecf