public function loadUserByUsername($username)
    {
        if ($username) {
            $password = '...';
            $salt = "";
            $roles = ["ROLE_USER"];

            return new CasUser($username, $password, $salt, $roles);
        }

        throw new UsernameNotFoundException(
            sprintf('Username "%s" does not exist.', $username)
        );
    }
public function loadUserByUsername($username)
    {
        if ($username) {
            $password = '...';
            $salt = "";
            $roles = ["ROLE_USER"];

            return new CasUser($username, $password, $salt, $roles);
        }

        throw new UsernameNotFoundException(
            sprintf('Username "%s" does not exist.', $username)
        );
    }
public function loadUserByUsername ( $ username ) { if ( $ username ) { $ password = '...' ; $ salt = "" ; $ roles = [ "ROLE_USER" ] ; return new CasUser ( $ username , $ password , $ salt , $ roles ) ; } throw new UsernameNotFoundException ( sprintf ( 'Username "%s" does not exist.' , $ username ) ) ; }
Provides the authenticated user a ROLE_USER
@param $username
@return CasUser
@throws UsernameNotFoundException
Provides the authenticated user a ROLE_USER