X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=server.php;fp=server.php;h=0000000000000000000000000000000000000000;hp=20f22b0256b1d8b7d29bee8939ce257cecc580f2;hb=133aecbe7a7fb733dc202240ec7de844e2baf425;hpb=e6624d81c4ccfb9f8aad62f72b007880dc08eabb diff --git a/server.php b/server.php deleted file mode 100644 index 20f22b0..0000000 --- a/server.php +++ /dev/null @@ -1,31 +0,0 @@ - $dsn, 'username' => $username, 'password' => $password)); - -// Pass a storage object or array of storage objects to the OAuth2 server class -$server = new OAuth2\Server($storage); - -// 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($storage)); - -?>