Authentication
HTTP provides a general framework for access control and authentication.
Introduction
RFC 7235 defines the HTTP authentication framework, which can be used by a server to challenge a client request, and by a client to provide authentication information.
Challenge-response flow
The challenge and response flow work like this:
-
The server responds to a client with a
401(Unauthorized) response status and provides information on how to authorize with aWWW-Authenticateresponse header containing at least one challenge. -
A client that wants to authenticate itself with the server can then do so by including an
Authorizationrequest header with the credentials. -
Usually a client will present a password prompt to the user and will then issue the request including the correct
Authorizationheader.
The general message flow above is the same for most (if not all) authentication schemes. The actual information in the headers and the way it is encoded does change!
Estàs llegint una vista prèvia.
Inicia sessió amb Google per llegir la pàgina completa.
Inicia sessió amb GoogleAmb qualsevol compte de Google. Només et demanarem que acceptis les condicions del servei.