Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php final class PhabricatorSlackAuthProvider extends PhabricatorOAuth2AuthProvider { ..
Decoded Output download
<?php
final class PhabricatorSlackAuthProvider
extends PhabricatorOAuth2AuthProvider {
public function getProviderName() {
return pht('Slack');
}
protected function getProviderConfigurationHelp() {
$login_uri = PhabricatorEnv::getURI($this->getLoginURI());
return pht(
"To configure Slack OAuth, create a new application here:".
"
".
"https://api.slack.com/docs/sign-in-with-slack#create_slack_app".
"
".
"When creating your application, use these settings:".
"
".
" - **Redirect URI:** Set this to: `%s`".
"
".
"After completing configuration, copy the **Client ID** and ".
"**Client Secret** to the fields above. (You may need to generate the ".
"client secret by clicking 'New Secret' first.)",
$login_uri);
}
protected function newOAuthAdapter() {
return new PhutilSlackAuthAdapter();
}
protected function getLoginIcon() {
return 'Slack';
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorSlackAuthProvider
extends PhabricatorOAuth2AuthProvider {
public function getProviderName() {
return pht('Slack');
}
protected function getProviderConfigurationHelp() {
$login_uri = PhabricatorEnv::getURI($this->getLoginURI());
return pht(
"To configure Slack OAuth, create a new application here:".
"\n\n".
"https://api.slack.com/docs/sign-in-with-slack#create_slack_app".
"\n\n".
"When creating your application, use these settings:".
"\n\n".
" - **Redirect URI:** Set this to: `%s`".
"\n\n".
"After completing configuration, copy the **Client ID** and ".
"**Client Secret** to the fields above. (You may need to generate the ".
"client secret by clicking 'New Secret' first.)",
$login_uri);
}
protected function newOAuthAdapter() {
return new PhutilSlackAuthAdapter();
}
protected function getLoginIcon() {
return 'Slack';
}
}
Function Calls
None |
Stats
MD5 | 8a56bb4d5b9354589a26548673da8b09 |
Eval Count | 0 |
Decode Time | 109 ms |