public function getRedirectLocation($parameters, $access_token) {
        $location = array();
        array_push($location, $parameters['redirect_uri'] . '#state=' . $parameters['state']);
        array_push($location, 'access_token=' . $access_token);
        array_push($location, 'token_type=Bearer');

        return implode('&', $location);
    }