From 4ca80c5880fc4938df00c40fb0ef0ba6b4bb3e71 Mon Sep 17 00:00:00 2001 From: disc5 Date: Fri, 12 Jun 2015 11:28:08 +0200 Subject: [PATCH] Minor changes in the DocBlocks of OAuth2Middleware --- .../REST/RESTController/libs/OAuth2Middleware.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/REST/RESTController/libs/OAuth2Middleware.php b/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/REST/RESTController/libs/OAuth2Middleware.php index 0cdb5238..734fb748 100644 --- a/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/REST/RESTController/libs/OAuth2Middleware.php +++ b/Customizing/global/plugins/Services/UIComponent/UserInterfaceHook/REST/RESTController/libs/OAuth2Middleware.php @@ -2,8 +2,8 @@ /** * ILIAS REST Plugin for the ILIAS LMS * - * Authors: D.Schaefer, S.Schneider and T. Hufschmidt <(schaefer|schneider|hufschmidt)@hrz.uni-marburg.de> - * 2014-2015 + * Authors: D. Schaefer and T. Hufschmidt <(schaefer|hufschmidt)@hrz.uni-marburg.de> + * Since 2014 */ namespace RESTController\libs; @@ -13,15 +13,14 @@ // Requires RESTController // Requires RESTLib - /* * OAuth2 Authentification Middleware Functions * * This middleware can be included in a route signature as follows: * $app->get('/users', function () use ($app) { ... }) - * $app->get('/users', \RESTController\libs\OAuth2Middleware::TokenRouteAuth, function () use ($app) { ... }) - * $app->get('/users', \RESTController\libs\OAuth2Middleware::TokenRouteAuthTokenOnly, function () use ($app) { ... }) - * $app->get('/users', \RESTController\libs\OAuth2Middleware::TokenRouteAuthILIASAdminRole, function () use ($app) { ... }) + * $app->get('/users', '\RESTController\libs\OAuth2Middleware::TokenRouteAuth', function () use ($app) { ... }) + * $app->get('/users', '\RESTController\libs\OAuth2Middleware::TokenRouteAuthTokenOnly', function () use ($app) { ... }) + * $app->get('/users', '\RESTController\libs\OAuth2Middleware::TokenRouteAuthILIASAdminRole', function () use ($app) { ... }) */ class OAuth2Middleware { /** @@ -91,7 +90,7 @@ public static function TokenAdminAuth(\Slim\Route $route) { /** * This authorization middleware only checks if the access token (bearer) is valid, - * but does not check if the user is allowed to acces this route. + * but does not check if the user is allowed to access this route. * * @param \Slim\Route $route */