OAuth2\OAuth2::getAuthorizationHeader PHP Method

getAuthorizationHeader() protected method

According to draft 20, standard basic authorization is the only header variable required (this does not apply to extended grant types). Implementing classes may need to override this function if need be.
See also: http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-2.4.1
protected getAuthorizationHeader ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
return array An array of the basic username and password provided.
    protected function getAuthorizationHeader(Request $request)
    {
        return array('PHP_AUTH_USER' => $request->server->get('PHP_AUTH_USER'), 'PHP_AUTH_PW' => $request->server->get('PHP_AUTH_PW'));
    }