Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "adoy/oauth2",
"description": "Light PHP wrapper for the OAuth 2.0 protocol (based on OAuth 2.0 Authorization Protocol draft-ietf-oauth-v2-15)",
"license": "LGPL-2.1",
"license": "LGPL-2.1",
"authors": [
{
"name": "Charron Pierrick",
Expand All @@ -16,6 +16,6 @@
"php": ">=5.3.0"
},
"autoload": {
"psr-0": {"OAuth2": "src/"}
"psr-0": {"Adoy\\OAuth2\\": "src/"}
}
}
2 changes: 1 addition & 1 deletion src/OAuth2/Client.php → src/Adoy/OAuth2/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Anis Berejeb <anis.berejeb@gmail.com>
* @version 1.3.1
*/
namespace OAuth2;
namespace Adoy\OAuth2;

class Client
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace OAuth2\GrantType;
namespace Adoy\OAuth2\GrantType;

use OAuth2\InvalidArgumentException;
use Adoy\OAuth2\InvalidArgumentException;

/**
* Authorization code Grant Type Validator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?php
namespace OAuth2\GrantType;
namespace Adoy\OAuth2\GrantType;

/**
* Client Credentials Parameters
* Client Credentials Parameters
*/
class ClientCredentials implements IGrantType
{
/**
* Defines the Grant Type
*
* @var string Defaults to 'client_credentials'.
*
* @var string Defaults to 'client_credentials'.
*/
const GRANT_TYPE = 'client_credentials';

/**
* Adds a specific Handling of the parameters
*
*
* @return array of Specific parameters to be sent.
* @param mixed $parameters the parameters array (passed by reference)
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
namespace OAuth2\GrantType;
namespace Adoy\OAuth2\GrantType;
/**
* Specific GrantType Interface
*/
interface IGrantType
interface IGrantType
{
/**
* Adds a specific Handling of the parameters
*
*
* @return array of Specific parameters to be sent.
* @param mixed $parameters the parameters array (passed by reference)
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace OAuth2\GrantType;
namespace Adoy\OAuth2\GrantType;

use OAuth2\InvalidArgumentException;
use Adoy\OAuth2\InvalidArgumentException;

/**
* Password Parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace OAuth2\GrantType;
namespace Adoy\OAuth2\GrantType;

use OAuth2\InvalidArgumentException;
use Adoy\OAuth2\InvalidArgumentException;

/**
* Refresh Token Parameters
Expand Down