mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 10:18:55 +05:30
Renamed namespace to League\OAuth2\
This commit is contained in:
parent
22d900def1
commit
850473ce40
@ -39,7 +39,7 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-0": {
|
||||||
"OAuth2": "src/"
|
"League\\OAuth2": "src/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"suggest": {}
|
"suggest": {}
|
||||||
|
@ -9,14 +9,14 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2;
|
namespace League\OAuth2;
|
||||||
|
|
||||||
use OAuth2\Util\Request;
|
use League\OAuth2\Util\Request;
|
||||||
use OAuth2\Util\SecureKey;
|
use League\OAuth2\Util\SecureKey;
|
||||||
use OAuth2\Storage\SessionInterface;
|
use League\OAuth2\Storage\SessionInterface;
|
||||||
use OAuth2\Storage\ClientInterface;
|
use League\OAuth2\Storage\ClientInterface;
|
||||||
use OAuth2\Storage\ScopeInterface;
|
use League\OAuth2\Storage\ScopeInterface;
|
||||||
use OAuth2\Grant\GrantTypeInterface;
|
use League\OAuth2\Grant\GrantTypeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OAuth 2.0 authorization server class
|
* OAuth 2.0 authorization server class
|
@ -9,7 +9,7 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Exception;
|
namespace League\OAuth2\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ClientException Exception
|
* ClientException Exception
|
@ -9,7 +9,7 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Exception;
|
namespace League\OAuth2\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* InvalidAccessToken Exception
|
* InvalidAccessToken Exception
|
@ -9,7 +9,7 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Exception;
|
namespace League\OAuth2\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* InvalidGrantTypeException Exception
|
* InvalidGrantTypeException Exception
|
@ -9,7 +9,7 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Exception;
|
namespace League\OAuth2\Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception class
|
* Exception class
|
@ -9,15 +9,15 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Grant;
|
namespace League\OAuth2\Grant;
|
||||||
|
|
||||||
use OAuth2\Request;
|
use League\OAuth2\Request;
|
||||||
use OAuth2\AuthServer;
|
use League\OAuth2\AuthServer;
|
||||||
use OAuth2\Exception;
|
use League\OAuth2\Exception;
|
||||||
use OAuth2\Util\SecureKey;
|
use League\OAuth2\Util\SecureKey;
|
||||||
use OAuth2\Storage\SessionInterface;
|
use League\OAuth2\Storage\SessionInterface;
|
||||||
use OAuth2\Storage\ClientInterface;
|
use League\OAuth2\Storage\ClientInterface;
|
||||||
use OAuth2\Storage\ScopeInterface;
|
use League\OAuth2\Storage\ScopeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auth code grant class
|
* Auth code grant class
|
@ -9,15 +9,15 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Grant;
|
namespace League\OAuth2\Grant;
|
||||||
|
|
||||||
use OAuth2\Request;
|
use League\OAuth2\Request;
|
||||||
use OAuth2\AuthServer;
|
use League\OAuth2\AuthServer;
|
||||||
use OAuth2\Exception;
|
use League\OAuth2\Exception;
|
||||||
use OAuth2\Util\SecureKey;
|
use League\OAuth2\Util\SecureKey;
|
||||||
use OAuth2\Storage\SessionInterface;
|
use League\OAuth2\Storage\SessionInterface;
|
||||||
use OAuth2\Storage\ClientInterface;
|
use League\OAuth2\Storage\ClientInterface;
|
||||||
use OAuth2\Storage\ScopeInterface;
|
use League\OAuth2\Storage\ScopeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Client credentials grant class
|
* Client credentials grant class
|
@ -9,15 +9,15 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Grant;
|
namespace League\OAuth2\Grant;
|
||||||
|
|
||||||
use OAuth2\Request;
|
use League\OAuth2\Request;
|
||||||
use OAuth2\AuthServer;
|
use League\OAuth2\AuthServer;
|
||||||
use OAuth2\Exception;
|
use League\OAuth2\Exception;
|
||||||
use OAuth2\Util\SecureKey;
|
use League\OAuth2\Util\SecureKey;
|
||||||
use OAuth2\Storage\SessionInterface;
|
use League\OAuth2\Storage\SessionInterface;
|
||||||
use OAuth2\Storage\ClientInterface;
|
use League\OAuth2\Storage\ClientInterface;
|
||||||
use OAuth2\Storage\ScopeInterface;
|
use League\OAuth2\Storage\ScopeInterface;
|
||||||
|
|
||||||
interface GrantTypeInterface
|
interface GrantTypeInterface
|
||||||
{
|
{
|
@ -9,15 +9,15 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Grant;
|
namespace League\OAuth2\Grant;
|
||||||
|
|
||||||
use OAuth2\Request;
|
use League\OAuth2\Request;
|
||||||
use OAuth2\AuthServer;
|
use League\OAuth2\AuthServer;
|
||||||
use OAuth2\Exception;
|
use League\OAuth2\Exception;
|
||||||
use OAuth2\Util\SecureKey;
|
use League\OAuth2\Util\SecureKey;
|
||||||
use OAuth2\Storage\SessionInterface;
|
use League\OAuth2\Storage\SessionInterface;
|
||||||
use OAuth2\Storage\ClientInterface;
|
use League\OAuth2\Storage\ClientInterface;
|
||||||
use OAuth2\Storage\ScopeInterface;
|
use League\OAuth2\Storage\ScopeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Client credentials grant class
|
* Client credentials grant class
|
@ -9,15 +9,15 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Grant;
|
namespace League\OAuth2\Grant;
|
||||||
|
|
||||||
use OAuth2\Request;
|
use League\OAuth2\Request;
|
||||||
use OAuth2\AuthServer;
|
use League\OAuth2\AuthServer;
|
||||||
use OAuth2\Exception;
|
use League\OAuth2\Exception;
|
||||||
use OAuth2\Util\SecureKey;
|
use League\OAuth2\Util\SecureKey;
|
||||||
use OAuth2\Storage\SessionInterface;
|
use League\OAuth2\Storage\SessionInterface;
|
||||||
use OAuth2\Storage\ClientInterface;
|
use League\OAuth2\Storage\ClientInterface;
|
||||||
use OAuth2\Storage\ScopeInterface;
|
use League\OAuth2\Storage\ScopeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Password grant class
|
* Password grant class
|
@ -9,15 +9,15 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Grant;
|
namespace League\OAuth2\Grant;
|
||||||
|
|
||||||
use OAuth2\Request;
|
use League\OAuth2\Request;
|
||||||
use OAuth2\AuthServer;
|
use League\OAuth2\AuthServer;
|
||||||
use OAuth2\Exception;
|
use League\OAuth2\Exception;
|
||||||
use OAuth2\Util\SecureKey;
|
use League\OAuth2\Util\SecureKey;
|
||||||
use OAuth2\Storage\SessionInterface;
|
use League\OAuth2\Storage\SessionInterface;
|
||||||
use OAuth2\Storage\ClientInterface;
|
use League\OAuth2\Storage\ClientInterface;
|
||||||
use OAuth2\Storage\ScopeInterface;
|
use League\OAuth2\Storage\ScopeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Referesh token grant
|
* Referesh token grant
|
@ -9,12 +9,12 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2;
|
namespace League\OAuth2;
|
||||||
|
|
||||||
use OutOfBoundsException;
|
use OutOfBoundsException;
|
||||||
use OAuth2\Storage\SessionInterface;
|
use League\OAuth2\Storage\SessionInterface;
|
||||||
use OAuth2\Util\RequestInterface;
|
use League\OAuth2\Util\RequestInterface;
|
||||||
use OAuth2\Util\Request;
|
use League\OAuth2\Util\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OAuth 2.0 Resource Server
|
* OAuth 2.0 Resource Server
|
@ -9,7 +9,7 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Storage;
|
namespace League\OAuth2\Storage;
|
||||||
|
|
||||||
interface ClientInterface
|
interface ClientInterface
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace OAuth2\Storage\PDO;
|
namespace League\OAuth2\Storage\PDO;
|
||||||
|
|
||||||
use OAuth2\Storage\ClientInterface;
|
use League\OAuth2\Storage\ClientInterface;
|
||||||
|
|
||||||
class Client implements ClientInterface
|
class Client implements ClientInterface
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace OAuth2\Storage\PDO;
|
namespace League\OAuth2\Storage\PDO;
|
||||||
|
|
||||||
class Db
|
class Db
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace OAuth2\Storage\PDO;
|
namespace League\OAuth2\Storage\PDO;
|
||||||
|
|
||||||
use OAuth2\Storage\ScopeInterface;
|
use League\OAuth2\Storage\ScopeInterface;
|
||||||
|
|
||||||
class Scope implements ScopeInterface
|
class Scope implements ScopeInterface
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace OAuth2\Storage\PDO;
|
namespace League\OAuth2\Storage\PDO;
|
||||||
|
|
||||||
use OAuth2\Storage\SessionInterface;
|
use League\OAuth2\Storage\SessionInterface;
|
||||||
|
|
||||||
class Session implements SessionInterface
|
class Session implements SessionInterface
|
||||||
{
|
{
|
@ -9,7 +9,7 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Storage;
|
namespace League\OAuth2\Storage;
|
||||||
|
|
||||||
interface ScopeInterface
|
interface ScopeInterface
|
||||||
{
|
{
|
@ -9,7 +9,7 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Storage;
|
namespace League\OAuth2\Storage;
|
||||||
|
|
||||||
interface SessionInterface
|
interface SessionInterface
|
||||||
{
|
{
|
@ -9,7 +9,7 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Util;
|
namespace League\OAuth2\Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RedirectUri class
|
* RedirectUri class
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace OAuth2\Util;
|
namespace League\OAuth2\Util;
|
||||||
|
|
||||||
use OutOfBoundsException;
|
use OutOfBoundsException;
|
||||||
use InvalidMethodCallException;
|
use InvalidMethodCallException;
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace OAuth2\Util;
|
namespace League\OAuth2\Util;
|
||||||
|
|
||||||
interface RequestInterface
|
interface RequestInterface
|
||||||
{
|
{
|
@ -9,7 +9,7 @@
|
|||||||
* @link http://github.com/lncd/oauth2
|
* @link http://github.com/lncd/oauth2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OAuth2\Util;
|
namespace League\OAuth2\Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SecureKey class
|
* SecureKey class
|
Loading…
Reference in New Issue
Block a user