diff --git a/composer.json b/composer.json index bfcc7db4..05330034 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "lucadegasperi/oauth2-server-laravel", + "name": "tikamsah/oauth2-server-laravel", "description": "A Laravel 4 wrapper for the popular OAuth 2.0 Server package league/oauth2-server", "keywords": [ "laravel", @@ -11,11 +11,11 @@ "authors": [ { "name": "Luca Degasperi", - "email": "packages@lucadegasperi.com" + "email": "packages@tikamsah.com" } ], "require": { - "php": ">=5.3.0", + "php": ">=8.1", "league/oauth2-server": "2.1.x" }, "require-dev": { @@ -30,9 +30,9 @@ "tests/TestCase.php" ], "psr-0": { - "LucaDegasperi\\OAuth2Server": "src/" + "Tikamsah\\OAuth2Server": "src/" } }, "minimum-stability": "dev", "license": "MIT" -} \ No newline at end of file +} diff --git a/provides.json b/provides.json index 565ce539..4cada878 100644 --- a/provides.json +++ b/provides.json @@ -1,15 +1,15 @@ { "providers": [ - "LucaDegasperi\\OAuth2Server\\OAuth2ServerServiceProvider" + "Tikamsah\\OAuth2Server\\OAuth2ServerServiceProvider" ], "aliases": [ { "alias": "AuthorizationServer", - "facade": "LucaDegasperi\\OAuth2Server\\Facades\\AuthorizationServerFacade" + "facade": "Tikamsah\\OAuth2Server\\Facades\\AuthorizationServerFacade" }, { "alias": "ResourceServer", - "facade": "LucaDegasperi\\OAuth2Server\\Facades\\ResourceServerFacade" + "facade": "Tikamsah\\OAuth2Server\\Facades\\ResourceServerFacade" } ] -} \ No newline at end of file +} diff --git a/src/LucaDegasperi/OAuth2Server/Commands/ExpiredTokensCommand.php b/src/LucaDegasperi/OAuth2Server/Commands/ExpiredTokensCommand.php index a130f2ef..3a2832bf 100644 --- a/src/LucaDegasperi/OAuth2Server/Commands/ExpiredTokensCommand.php +++ b/src/LucaDegasperi/OAuth2Server/Commands/ExpiredTokensCommand.php @@ -1,9 +1,9 @@ - 401, diff --git a/src/LucaDegasperi/OAuth2Server/Filters/OAuthOwnerFilter.php b/src/LucaDegasperi/OAuth2Server/Filters/OAuthOwnerFilter.php index 14aef306..cb53e847 100644 --- a/src/LucaDegasperi/OAuth2Server/Filters/OAuthOwnerFilter.php +++ b/src/LucaDegasperi/OAuth2Server/Filters/OAuthOwnerFilter.php @@ -1,4 +1,4 @@ -package('lucadegasperi/oauth2-server-laravel', 'lucadegasperi/oauth2-server-laravel'); + $this->package('tikamsah/oauth2-server-laravel', 'tikamsah/oauth2-server-laravel'); /** @var \Illuminate\Routing\Router $router */ $router = $this->app['router']; // Bind a filter to check if the auth code grant type params are provided - $router->filter('check-authorization-params', 'LucaDegasperi\OAuth2Server\Filters\CheckAuthorizationParamsFilter'); + $router->filter('check-authorization-params', 'Tikamsah\OAuth2Server\Filters\CheckAuthorizationParamsFilter'); // Bind a filter to make sure that an endpoint is accessible only by authorized members eventually with specific scopes - $router->filter('oauth', 'LucaDegasperi\OAuth2Server\Filters\OAuthFilter'); + $router->filter('oauth', 'Tikamsah\OAuth2Server\Filters\OAuthFilter'); // Bind a filter to make sure that an endpoint is accessible only by a specific owner - $router->filter('oauth-owner', 'LucaDegasperi\OAuth2Server\Filters\OAuthOwnerFilter'); + $router->filter('oauth-owner', 'Tikamsah\OAuth2Server\Filters\OAuthOwnerFilter'); } /** @@ -45,16 +45,16 @@ public function register() // let's bind the interfaces to the implementations $app = $this->app; - $app->bind('League\OAuth2\Server\Storage\ClientInterface', 'LucaDegasperi\OAuth2Server\Repositories\FluentClient'); - $app->bind('League\OAuth2\Server\Storage\ScopeInterface', 'LucaDegasperi\OAuth2Server\Repositories\FluentScope'); - $app->bind('League\OAuth2\Server\Storage\SessionInterface', 'LucaDegasperi\OAuth2Server\Repositories\FluentSession'); - $app->bind('LucaDegasperi\OAuth2Server\Repositories\SessionManagementInterface', 'LucaDegasperi\OAuth2Server\Repositories\FluentSession'); + $app->bind('League\OAuth2\Server\Storage\ClientInterface', 'Tikamsah\OAuth2Server\Repositories\FluentClient'); + $app->bind('League\OAuth2\Server\Storage\ScopeInterface', 'Tikamsah\OAuth2Server\Repositories\FluentScope'); + $app->bind('League\OAuth2\Server\Storage\SessionInterface', 'Tikamsah\OAuth2Server\Repositories\FluentSession'); + $app->bind('Tikamsah\OAuth2Server\Repositories\SessionManagementInterface', 'Tikamsah\OAuth2Server\Repositories\FluentSession'); $app['oauth2.authorization-server'] = $app->share(function ($app) { $server = $app->make('League\OAuth2\Server\Authorization'); - $config = $app['config']->get('lucadegasperi/oauth2-server-laravel::oauth2'); + $config = $app['config']->get('tikamsah/oauth2-server-laravel::oauth2'); // add the supported grant types to the authorization server foreach ($config['grant_types'] as $grantKey => $grantValue) { @@ -99,7 +99,7 @@ public function register() }); $app['oauth2.expired-tokens-command'] = $app->share(function ($app) { - return $app->make('LucaDegasperi\OAuth2Server\Commands\ExpiredTokensCommand'); + return $app->make('Tikamsah\OAuth2Server\Commands\ExpiredTokensCommand'); }); $this->commands('oauth2.expired-tokens-command'); diff --git a/src/LucaDegasperi/OAuth2Server/Proxies/AuthorizationServerProxy.php b/src/LucaDegasperi/OAuth2Server/Proxies/AuthorizationServerProxy.php index d9911adf..e88945f9 100644 --- a/src/LucaDegasperi/OAuth2Server/Proxies/AuthorizationServerProxy.php +++ b/src/LucaDegasperi/OAuth2Server/Proxies/AuthorizationServerProxy.php @@ -1,4 +1,4 @@ -where('oauth_client_endpoints.redirect_uri', $redirectUri); } - if (Config::get('lucadegasperi/oauth2-server-laravel::oauth2.limit_clients_to_grants') === true and ! is_null($grantType)) { + if (Config::get('tikamsah/oauth2-server-laravel::oauth2.limit_clients_to_grants') === true and ! is_null($grantType)) { $query = $query->join('oauth_client_grants', 'oauth_clients.id', '=', 'oauth_client_grants.client_id') ->join('oauth_grants', 'oauth_grants.id', '=', 'oauth_client_grants.grant_id') ->where('oauth_grants.grant', $grantType); diff --git a/src/LucaDegasperi/OAuth2Server/Repositories/FluentScope.php b/src/LucaDegasperi/OAuth2Server/Repositories/FluentScope.php index 7d604ea6..8fce14a6 100644 --- a/src/LucaDegasperi/OAuth2Server/Repositories/FluentScope.php +++ b/src/LucaDegasperi/OAuth2Server/Repositories/FluentScope.php @@ -1,4 +1,4 @@ -select('oauth_scopes.id as id', 'oauth_scopes.scope as scope', 'oauth_scopes.name as name', 'oauth_scopes.description as description') ->where('oauth_scopes.scope', $scope); - if (Config::get('lucadegasperi/oauth2-server-laravel::oauth2.limit_clients_to_scopes') === true and ! is_null($clientId)) { + if (Config::get('tikamsah/oauth2-server-laravel::oauth2.limit_clients_to_scopes') === true and ! is_null($clientId)) { $query = $query->join('oauth_client_scopes', 'oauth_scopes.id', '=', 'oauth_client_scopes.scope_id') ->where('oauth_client_scopes.client_id', $clientId); } - if (Config::get('lucadegasperi/oauth2-server-laravel::oauth2.limit_scopes_to_grants') === true and ! is_null($grantType)) { + if (Config::get('tikamsah/oauth2-server-laravel::oauth2.limit_scopes_to_grants') === true and ! is_null($grantType)) { $query = $query->join('oauth_grant_scopes', 'oauth_scopes.id', '=', 'oauth_grant_scopes.scope_id') ->join('oauth_grants', 'oauth_grants.id', '=', 'oauth_grant_scopes.grant_id') ->where('oauth_grants.grant', $grantType); diff --git a/src/LucaDegasperi/OAuth2Server/Repositories/FluentSession.php b/src/LucaDegasperi/OAuth2Server/Repositories/FluentSession.php index 4fd80caa..d289f793 100644 --- a/src/LucaDegasperi/OAuth2Server/Repositories/FluentSession.php +++ b/src/LucaDegasperi/OAuth2Server/Repositories/FluentSession.php @@ -1,4 +1,4 @@ - 'LucaDegasperi\OAuth2Server\Facades\AuthorizationServerFacade', - 'ResourceServer' => 'LucaDegasperi\OAuth2Server\Facades\ResourceServerFacade', + 'AuthorizationServer' => 'Tikamsah\OAuth2Server\Facades\AuthorizationServerFacade', + 'ResourceServer' => 'Tikamsah\OAuth2Server\Facades\ResourceServerFacade', ); } -} \ No newline at end of file +}