/** * Get Basic auth credentials. * * @return array|exception */ protected function getCredentials() { if (!($userinfo = $this->request->getUserInfo())) { throw new InvalidBasicAuthorizationHeader(); } list($email, $password) = explode(':', $userinfo); return compact('email', 'password'); }
/** * Gets the user info. * * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server * @static */ public static function getUserInfo() { //Method inherited from \Symfony\Component\HttpFoundation\Request return \Illuminate\Http\Request::getUserInfo(); }