/** * Gets the Client/Lrs username and password from the Basic Auth authorization string. * @param String $authorization * @return [String] Formed of [Username, Password] */ static function getUserPassFromBAuth($authorization) { $username = json_decode('"' . \LockerRequest::getUser() . '"'); $password = json_decode('"' . \LockerRequest::getPassword() . '"'); return [$username, $password]; }