@@ 109-117 (lines=9) @@ | ||
106 | // Prerequisites |
|
107 | // --------------------------------- |
|
108 | ||
109 | if ($uid = $this->user->getId()): |
|
110 | $this->logger->debug("Before Route: User has ID, proceeding", [ |
|
111 | 'user_id' => $uid |
|
112 | ]); |
|
113 | // Call next middleware |
|
114 | return $next($request, $response); |
|
115 | else: |
|
116 | $this->status = $this->status | static::ACTIVE; |
|
117 | endif; |
|
118 | ||
119 | ||
120 | ||
@@ 127-134 (lines=8) @@ | ||
124 | // --------------------------------- |
|
125 | ||
126 | $client_authenticator = $this->client_authenticator; |
|
127 | if (!$client_authentication = $client_authenticator()): |
|
128 | $this->logger->debug("Before Route: No Client Authentication found"); |
|
129 | // Call next middleware |
|
130 | return $next($request, $response); |
|
131 | else: |
|
132 | $this->status = $this->status | static::CLIENT_DATA; |
|
133 | $this->logger->info("Before Route: Received Client Authentication"); |
|
134 | endif; |
|
135 | ||
136 | ||
137 |