Come si mantiene l'autenticazione di base HTTP tra le pagine visualizzate?

2

Ho familiarità con il funzionamento di base di Auth HTTP, ma come tiene traccia dell'autenticazione tra le visualizzazioni di pagina? Vedo che non viene creato alcun cookie quando si verifica l'autenticazione iniziale.

    
posta Conrad 26.06.2014 - 15:24
fonte

2 risposte

2

Per citare l'articolo Wikipedia su questo:

Because the BA header has to be sent with each HTTP request, the web browser needs to cache credentials for a reasonable period of time to avoid constantly prompting the user for their username and password.

Quindi sembra che il tuo browser si occupi di questo per te.

    
risposta data 26.06.2014 - 16:07
fonte
2

A client SHOULD assume that all paths at or deeper than the depth of
the last symbolic element in the path field of the Request-URI also
are within the protection space specified by the Basic realm value of the current challenge. A client MAY preemptively send the
corresponding Authorization header with requests for resources in
that space without receipt of another challenge from the server.

Fonte: RFC 2617: Autenticazione HTTP: autenticazione di base e Digest Access

Quindi il client / browser dovrebbe gestirlo in qualche modo per area.

    
risposta data 26.06.2014 - 16:26
fonte

Leggi altre domande sui tag