@@ -96,7 +96,7 @@ public function processRequest(
9696 $ this ->authSourceId = $ authSimple ->getAuthSource ()->getAuthId ();
9797
9898 if (! $ authSimple ->isAuthenticated ()) {
99- $ this ->authenticate ($ request );
99+ $ this ->authenticate ($ oidcClient );
100100 } elseif ($ this ->sessionService ->getIsAuthnPerformedInPreviousRequest ()) {
101101 $ this ->sessionService ->setIsAuthnPerformedInPreviousRequest (false );
102102
@@ -268,23 +268,17 @@ public function getSessionId(): ?string
268268 }
269269
270270 /**
271- * @param ServerRequestInterface $request
272- * @param array $loginParams
273- *
274- * @return void
275271 * @throws Error\BadRequest
276272 * @throws Error\NotFound
277273 * @throws \JsonException
278274 * @throws \SimpleSAML\Module\oidc\Server\Exceptions\OidcServerException
279275 */
280276
281277 public function authenticate (
282- ServerRequestInterface $ request ,
278+ ClientEntityInterface $ clientEntity ,
283279 array $ loginParams = [],
284280 ): void {
285- // TODO mivanci Fix: client has already been resolved up to this point, but we are again fetching it from DB.
286- $ oidcClient = $ this ->helpers ->client ()->getFromRequest ($ request , $ this ->clientRepository );
287- $ authSimple = $ this ->authSimpleFactory ->build ($ oidcClient );
281+ $ authSimple = $ this ->authSimpleFactory ->build ($ clientEntity );
288282
289283 $ this ->sessionService ->setIsCookieBasedAuthn (false );
290284 $ this ->sessionService ->setIsAuthnPerformedInPreviousRequest (true );
0 commit comments