Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microservice things #206

Open
1 of 9 tasks
killua-eu opened this issue Feb 23, 2021 · 0 comments
Open
1 of 9 tasks

Microservice things #206

killua-eu opened this issue Feb 23, 2021 · 0 comments

Comments

@killua-eu
Copy link
Contributor

killua-eu commented Feb 23, 2021

  • select an external authentication provider
  • select an external authorization provider (casbin)
  • prototype a micorservices proxy in glued and
  • find a sweet spot where to split core into code common for all php based microservices (code reuse) and code acting as a proxy (middleware, installer, etc.)
  • split off authentication into a separate microservice (and later replace it with something thats not written from scratch)
    • define what sql data is to be kept with current modules in order to keep data consistency
  • split off authorization into a separate microservice Auth works #207
  • standardize api responses accross non-php uS
  • dockerize the shit out of this

List of middlewares

$app->add(TwigMiddleware::createFromContainer($app));
$app->add(TranslatorMiddleware::class);
$app->add(LocaleSessionMiddleware::class);
$app->add(Timer::class); // adds time needed to generate a response to headers
$app->addBodyParsingMiddleware();
$app->addRoutingMiddleware();
$app->add($trailingSlash);
$app->add(\Glued\Core\Middleware\ValidationFormsMiddleware::class);
$app->add(new \Glued\Core\Middleware\TwigFlashMiddleware($container)); 
$app->add(new Middlewares\Csp($csp));
$app->add(new \Glued\Core\Middleware\TwigCspMiddleware($nonce, $container));
$app->add(new Tuupola\Middleware\CorsMiddleware); 
$app->add(new HeadersMiddleware($settings));
$app->add(new \Glued\Core\Middleware\AuthorizationMiddleware($container));
$app->add(new SessionMiddleware($settings));
$app->add(new Tuupola\Middleware\JwtAuthentication($settings['auth']['jwt']));
$app->add(new MethodOverrideMiddleware); // Add this before $app->addRoutingMiddleware();
$app->add(new Zeuxisoo\Whoops\Slim\WhoopsMiddleware([
$app->add($errorMiddleware);
RedirectGuests.php 
AntiXSSMiddleware.php
RedirectAuthenticated.php
RestrictGuests.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant