X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=app%2Fserver.inc.php;fp=app%2Fserver.inc.php;h=0000000000000000000000000000000000000000;hp=53e55b467835180bce98c78033d5a5177fe81d5e;hb=74b24877f2b3e75aa00e7788b4ed23209e81991d;hpb=2b9aa8f3c5aeb5d3fa414a985ad14b351a12cfcd diff --git a/app/server.inc.php b/app/server.inc.php deleted file mode 100644 index 53e55b4..0000000 --- a/app/server.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - false, - 'always_issue_new_refresh_token' => true, // Needs to be handed below as well as there it's not constructed from within the server object. - 'refresh_token_lifetime' => 90*24*3600, -); - -// Pass a storage object or array of storage objects to the OAuth2 server class -$server = new OAuth2\Server($oauth2_storage, $oauth2_config); - -// Add the "Client Credentials" grant type (it is the simplest of the grant types) -//$server->addGrantType(new OAuth2\GrantType\ClientCredentials($storage)); - -// Add the "Authorization Code" grant type (this is where the oauth magic happens) -$server->addGrantType(new OAuth2\GrantType\AuthorizationCode($oauth2_storage)); - -// Add the "Refresh Token" grant type (required to get longer-living resource access by generating new access tokens) -$server->addGrantType(new OAuth2\GrantType\RefreshToken($oauth2_storage, array('always_issue_new_refresh_token' => true))); - -?>