Response
HTTP WWW-Authenticate Header
Indicates the authentication scheme that should be used to access the requested resource. Sent alongside 401 Unauthorized responses.
Purpose
Tells the client which authentication method to use when accessing a protected resource.
WWW-Authenticate: <type> realm=<realm> Example: WWW-Authenticate: Basic realm="Access to API" Example: WWW-Authenticate: Bearer realm="example", scope="read write"
Code Examples
See how to use the WWW-Authenticate header in different tools and languages.
Related Headers
Test Your APIs
www-authenticate headerhttp www-authenticatehttp headers guide