Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99504827
PhabricatorAuthProviderOAuthTwitch.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 25, 01:46
Size
968 B
Mime Type
text/x-php
Expires
Mon, Jan 27, 01:46 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23807501
Attached To
rPH Phabricator
PhabricatorAuthProviderOAuthTwitch.php
View Options
<?php
final
class
PhabricatorAuthProviderOAuthTwitch
extends
PhabricatorAuthProviderOAuth
{
public
function
getProviderName
()
{
return
pht
(
'Twitch.tv'
);
}
public
function
getConfigurationHelp
()
{
$login_uri
=
PhabricatorEnv
::
getURI
(
$this
->
getLoginURI
());
return
pht
(
"To configure Twitch.tv OAuth, create a new application here:"
.
"
\n\n
"
.
"http://www.twitch.tv/settings/applications"
.
"
\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
PhutilAuthAdapterOAuthTwitch
();
}
protected
function
getLoginIcon
()
{
return
'TwitchTV'
;
}
}
Event Timeline
Log In to Comment