Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F19081914
PhabricatorOAuthClientAuthorization.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
983 B
Referenced Files
None
Subscribers
None
PhabricatorOAuthClientAuthorization.php
View Options
<?php
/**
* @group oauthserver
*/
final
class
PhabricatorOAuthClientAuthorization
extends
PhabricatorOAuthServerDAO
{
protected
$id
;
protected
$phid
;
protected
$userPHID
;
protected
$clientPHID
;
protected
$scope
;
public
function
getEditURI
()
{
return
'/oauthserver/clientauthorization/edit/'
.
$this
->
getPHID
().
'/'
;
}
public
function
getDeleteURI
()
{
return
'/oauthserver/clientauthorization/delete/'
.
$this
->
getPHID
().
'/'
;
}
public
function
getScopeString
()
{
$scope
=
$this
->
getScope
();
$scopes
=
array_keys
(
$scope
);
sort
(
$scopes
);
return
implode
(
' '
,
$scopes
);
}
public
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_AUX_PHID
=>
true
,
self
::
CONFIG_SERIALIZATION
=>
array
(
'scope'
=>
self
::
SERIALIZATION_JSON
,
),
)
+
parent
::
getConfiguration
();
}
public
function
generatePHID
()
{
return
PhabricatorPHID
::
generateNewPHID
(
PhabricatorPHIDConstants
::
PHID_TYPE_OASA
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Dec 4, 8:43 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8281921
Default Alt Text
PhabricatorOAuthClientAuthorization.php (983 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment