-
Bug
-
Resolution: Done
-
Critical
-
7.1.0.CR1
The BEARER_TOKEN authentication mechanism doesn't correctly respond when user accesses a protected URL. It just replies with status 401 (Unauthorized).
The WWW-Authenticate response header is not used, so the client doesn't know if there is a possibility to authenticate into the application (and which mechanism to use).
The RFC 6750 in section 3 says:
If the protected resource request does not include authentication credentials or does not contain an access token that enables access to the protected resource, the resource server MUST include the HTTP "WWW-Authenticate" response header field; it MAY include it in response to other conditions as well. The "WWW-Authenticate" header field uses the framework defined by HTTP/1.1 [RFC2617].
- relates to
-
ELY-1364 Elytron BEARER_TOKEN HTTP authentication mechanism doesn't send WWW-Authenticate header
- Resolved