Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548085
PhabricatorSlackAuthProvider.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
977 B
Referenced Files
None
Subscribers
None
PhabricatorSlackAuthProvider.php
View Options
<?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'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:44 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
109598
Default Alt Text
PhabricatorSlackAuthProvider.php (977 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment