WWW-Authenticate

The response header sent with 401 Unauthorized that tells the client which authentication scheme to use, such as Basic or Bearer.

In more detail

Its value names the scheme, such as Basic realm="example" or Bearer, and may add parameters such as an error code for an invalid token. Clients use it to know how to authenticate before retrying.

Related terms

Taught in

References