Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/provider/PhabricatorOAuth2AuthProvider.php
Context not available. | |||||
$this->verifyAuthCSRFCode($request, $request->getStr('state')); | $this->verifyAuthCSRFCode($request, $request->getStr('state')); | ||||
$code = $request->getStr('code'); | $code = $request->getStr('code'); | ||||
if (!strlen($code)) { | if (!@strlen($code)) { | ||||
$response = $controller->buildProviderErrorResponse( | $response = $controller->buildProviderErrorResponse( | ||||
$this, | $this, | ||||
pht( | pht( | ||||
Context not available. | |||||
switch ($key) { | switch ($key) { | ||||
case self::PROPERTY_APP_ID: | case self::PROPERTY_APP_ID: | ||||
if (strlen($old)) { | if (@strlen($old)) { | ||||
return pht( | return pht( | ||||
'%s updated the OAuth application ID for this provider from '. | '%s updated the OAuth application ID for this provider from '. | ||||
'"%s" to "%s".', | '"%s" to "%s".', | ||||
Context not available. | |||||
$new); | $new); | ||||
} | } | ||||
case self::PROPERTY_APP_SECRET: | case self::PROPERTY_APP_SECRET: | ||||
if (strlen($old)) { | if (@strlen($old)) { | ||||
return pht( | return pht( | ||||
'%s updated the OAuth application secret for this provider.', | '%s updated the OAuth application secret for this provider.', | ||||
$xaction->renderHandleLink($author_phid)); | $xaction->renderHandleLink($author_phid)); | ||||
Context not available. | |||||
$xaction->renderHandleLink($author_phid)); | $xaction->renderHandleLink($author_phid)); | ||||
} | } | ||||
case self::PROPERTY_NOTE: | case self::PROPERTY_NOTE: | ||||
if (strlen($old)) { | if (@strlen($old)) { | ||||
return pht( | return pht( | ||||
'%s updated the OAuth application notes for this provider.', | '%s updated the OAuth application notes for this provider.', | ||||
$xaction->renderHandleLink($author_phid)); | $xaction->renderHandleLink($author_phid)); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0