You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
The authentication is provided using the [AuthenticationMiddleware](https://github.com/zendframework/zend-expressive-authentication/blob/master/src/AuthenticationMiddleware.php)
8
+
Authentication is performed using the [AuthenticationMiddleware](https://github.com/zendframework/zend-expressive-authentication/blob/master/src/AuthenticationMiddleware.php)
7
9
class. This middleware consumes an [AuthenticationInterface](https://github.com/zendframework/zend-expressive-authentication/blob/master/src/AuthenticationInterface.php)
8
10
adapter to check if a [PSR-7](http://www.php-fig.org/psr/psr-7/) request is
9
11
authenticated or not. If authenticated, the middleware executes the next
10
-
delegate in the pipeline, passing a [UserInterface](https://github.com/zendframework/zend-expressive-authentication/blob/master/src/UserInterface.php)
11
-
object as attribute in the request. If the request is not authenticated, the
12
-
middleware returns a `401 Unauthorized` response.
12
+
middleware in the application, passing a [UserInterface](https://github.com/zendframework/zend-expressive-authentication/blob/master/src/UserInterface.php)
13
+
object via a request attribute. If the request is not authenticated, the
14
+
middleware returns a `401 Unauthorized` response based on the authentication
15
+
adapter provided.
13
16
14
17
The `Zend\Expressive\Authentication\UserInterface` is defined as follows:
15
18
@@ -36,7 +39,8 @@ interface UserInterface
36
39
37
40
The `UserInterface` attribute in the PSR-7 request can be used for checking
38
41
if a user has been authenticated or not, e.g. it can be used to verify the
39
-
authorization level of a user (for this scope, it is used by [zend-expressive-authotization](https://github.com/zendframework/zend-expressive-authorization)).
42
+
authorization level of a user (for this scope, it is consumed by
0 commit comments