Put some glue in between PhabricatorAuthProvider and the OAuth adapters
Summary: Ref T1536. None of this code is reachable. Glues AuthProvider to OAuthAdapter. Test Plan: Code is unreachable. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1536 Differential Revision: https://secure.phabricator.com/D6160
This commit is contained in:
@@ -157,4 +157,16 @@ final class PhabricatorAuthLoginController
|
||||
));
|
||||
}
|
||||
|
||||
public function buildProviderErrorResponse(
|
||||
PhabricatorAuthProvider $provider,
|
||||
$message) {
|
||||
|
||||
$message = pht(
|
||||
'Authentication provider ("%s") encountered an error during login. %s',
|
||||
$provider->getProviderName(),
|
||||
$message);
|
||||
|
||||
return $this->renderError($message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user