X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=server.inc.php;fp=server.inc.php;h=6a82b50002b8197e47b273c331568ad5ce85a4c6;hb=133aecbe7a7fb733dc202240ec7de844e2baf425;hp=0000000000000000000000000000000000000000;hpb=e6624d81c4ccfb9f8aad62f72b007880dc08eabb;p=authserver.git diff --git a/server.inc.php b/server.inc.php new file mode 100644 index 0000000..6a82b50 --- /dev/null +++ b/server.inc.php @@ -0,0 +1,26 @@ +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)); + +?>