stickee / zend-expressive-auth
This package is abandoned and no longer maintained.
No replacement package was suggested.
Authentication with Google
0.1.1
2017-08-21 15:53 UTC
Requires
- damess/expressive-session-middleware: ^1.0
- dflydev/fig-cookies: ^1.0
- firebase/php-jwt: ^5.0
- league/oauth2-client: ^2.0
- zendframework/zend-diactoros: ^1.4@dev
- zendframework/zend-expressive-helpers: ^4.0@dev
Requires (Dev)
- php: ^7.1
- friendsofphp/php-cs-fixer: ~1
- fzaninotto/faker: ^1.6
- jakub-onderka/php-parallel-lint: ^0.9.2
- mockery/mockery: ^0.9.9
- nikic/php-parser: ^3.1
- phpmd/phpmd: ^2.6
- phpro/grumphp: ^0.11.6
- phpstan/phpstan: ^0.8.0
- phpunit/phpunit: ^6.0.8 || ^5.7.15
- povils/phpmnd: ^1.1
- sebastian/phpcpd: ^3.0
- sensiolabs/security-checker: ^4.0
- squizlabs/php_codesniffer: ^2.8.1
This package is not auto-updated.
Last update: 2022-08-20 16:47:21 UTC
README
Authentication for Logging in with to an expressive application
This will need you to add \Stickee\Auth\ConfigProvider
to your main config.
At the moment, this is designed to protect individual routes.
To do so, you simply need to add the Middleware to the chain for that route
<?php use Stickee\Auth\Authentication\Middleware as AuthenticationMiddleware; $app->post( '/', [ AuthenticationMiddleware::class, ProtectedAction::class, ], 'protected' );
But make sure you don't add it to the route that redirects you out!
<?php use \Stickee\Auth\Oauth\RedirectAction; $app->get('/login/redirect', RedirectAction::class, 'oauth-redirect');