When trying to login with a user only existing in remote wiki, but not in the local one, the extension MediaWikiAuth returns the error
Notice: Undefined property: stdClass::$clientlogin in /path/extensions/MediaWikiAuth/ExternalWikiPrimaryAuthenticationProvider.php on line 157
(where path is the correct path of the Mediawiki installation).
The error does not occur if the user already exist on the local wiki.
This happens because $resp->status needs to be polled for return code of the API, not $resp->clientlogin->status as currently written.
I am proposing a small code change to address this issue