stable

Clone or download

Read-only

Set the WWW-Authenticate header when the access to an OAuth2 protected resource is denied

The specification about the usage of a bearer token make it mandatory [0]. To ease potential debugging sessions, accurate error codes with a description when possible has been added [1]. This is part of story #14542: have OAuth2 flow [0] https://tools.ietf.org/html/rfc6750#section-3 [1] https://tools.ietf.org/html/rfc6750#section-3.1 Change-Id: Id5be658731030501df45f9faf82ab4cff1afab42

Modified Files

Name
M src/common/User/OAuth2/ResourceServer/OAuth2ResourceServerMiddleware.php +21 −4 Go to diff View file
M tests/phpunit/common/User/OAuth2/ResourceServer/OAuth2ResourceServerMiddlewareTest.php +26 −2 Go to diff View file