auth icon indicating copy to clipboard operation
auth copied to clipboard

Authentication, authorization and access control for Slim and other micro-frameworks

Results 2 auth issues
Sort by recently updated
recently updated
newest added

Hello! According to https://github.com/jasny/auth/blob/53536cfe5e4a37c1f0e2d3d55e9ab23e4b290a4c/src/Auth.php#L145 it's somehow possible to store the User instance in a session instead of storing uid only. I'd like to use this feature to get rid of...

```php use Jasny\Auth\AuthMiddleware; use Jasny\Auth\AttributesHandler; $fn = static function (ServerRequestInterface $request) { return new ReflectionMethod($request->getAttribute('route.controller'), $request->getAttribute('route.action')); }; $middleware = new AuthMiddleware($auth, $fn, $responseFactory); $router->add($middleware); ``` If the callback for `AuthMiddleware`...