Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F458628
PhabricatorAuthProviderOAuthTwitch.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
944 B
Referenced Files
None
Subscribers
None
PhabricatorAuthProviderOAuthTwitch.php
View Options
<?php
final
class
PhabricatorAuthProviderOAuthTwitch
extends
PhabricatorAuthProviderOAuth
{
public
function
getProviderName
()
{
return
pht
(
'Twitch.tv'
);
}
public
function
getConfigurationHelp
()
{
$login_uri
=
$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'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 12:25 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69441
Default Alt Text
PhabricatorAuthProviderOAuthTwitch.php (944 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment