Skip to content

Commit

Permalink
Minor changes in the DocBlocks of OAuth2Middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
disc5 committed Jun 12, 2015
1 parent 46b381f commit 4ca80c5
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 {
/**
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 4ca80c5

Please sign in to comment.