mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-30 11:13:21 +05:30
Changing Case
This commit is contained in:
1 parent
31b36f23e7
commit
a3fd22b3dd
31 files changed
+50
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace OAuth2;
|
||||
|
||||
interface GrantTypeInterface
|
||||
{
|
||||
public function getIdentifier();
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace OAuth2;
|
||||
|
||||
class Server
|
||||
{
|
||||
protected $scopeDelimeter = ',';
|
||||
|
||||
protected $expiresIn = 3600;
|
||||
|
||||
protected $responseTypes = array(
|
||||
'code'
|
||||
);
|
||||
|
||||
protected $storages = array();
|
||||
|
||||
protected $grantTypes = array();
|
||||
|
||||
public function __construct($storage)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function addGrantType(GrantTypeInterface $grant_type, $identifier = null)
|
||||
{
|
||||
if (is_null($identifier)) {
|
||||
$identifier = $grant_type->getIdentifier();
|
||||
}
|
||||
$this->grantTypes[$identifier] = $grant_type;
|
||||
}
|
||||
|
||||
public function setScopeDelimeter($scope_delimeter)
|
||||
{
|
||||
$this->scopeDelimeter = $scope_delimeter;
|
||||
}
|
||||
|
||||
public function setExpiresIn($expires_in)
|
||||
{
|
||||
$this->expiresIn = $expires_in;
|
||||
}
|
||||
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user