@@ -525,12 +525,10 @@ public function respondToAccessTokenRequest(
525525 // it is predefined as the ClientRule result and authenticated against by ClientAuthenticationRule above.
526526 $ client = $ authorizationClientEntity ;
527527
528- /** @var ?ResolvedClientAuthenticationMethod $resolvedClientAuthenticationMethod */
529528 $ resolvedClientAuthenticationMethod = $ authorizationClientEntity ->isGeneric () ?
530529 null :
531530 $ resultBag ->getOrFail (ClientAuthenticationRule::class)->getValue ();
532531
533- /** @var ?string $codeVerifier */
534532 $ codeVerifier = $ resultBag ->getOrFail (CodeVerifierRule::class)->getValue ();
535533
536534 $ utilizedClientAuthenticationParams = [];
@@ -777,13 +775,9 @@ public function validateAuthorizationRequestWithRequestRules(
777775 // Since we have already validated redirect_uri, and we have state, make it available for other checkers.
778776 $ this ->requestRulesManager ->predefineResultBag ($ resultBag );
779777
780- /** @var string $redirectUri */
781778 $ redirectUri = $ resultBag ->getOrFail (ClientRedirectUriRule::class)->getValue ();
782- /** @var string|null $state */
783779 $ state = $ resultBag ->getOrFail (StateRule::class)->getValue ();
784- /** @var \SimpleSAML\Module\oidc\Entities\Interfaces\ClientEntityInterface $client */
785780 $ client = $ resultBag ->getOrFail (ClientRule::class)->getValue ();
786- /** @var \SimpleSAML\Module\oidc\Server\ResponseModes\ResponseModeInterface $responseMode */
787781 $ responseMode = $ resultBag ->getOrFail (ResponseModeRule::class)->getValue ();
788782
789783 $ this ->loggerService ->debug ('AuthCodeGrant: Resolved data: ' , [
@@ -805,7 +799,6 @@ public function validateAuthorizationRequestWithRequestRules(
805799
806800 $ this ->loggerService ->debug ('AuthCodeGrant: executed rules. ' , ['rulesToExecute ' => $ rulesToExecute ]);
807801
808- /** @var \League\OAuth2\Server\Entities\ScopeEntityInterface[] $scopes */
809802 $ scopes = $ resultBag ->getOrFail (ScopeRule::class)->getValue ();
810803
811804 $ this ->loggerService ->debug ('AuthCodeGrant: Resolved scopes: ' , ['scopes ' => $ scopes ]);
@@ -821,13 +814,11 @@ public function validateAuthorizationRequestWithRequestRules(
821814 $ oAuth2AuthorizationRequest ->setState ($ state );
822815 }
823816
824- /** @var ?string $codeChallenge */
825817 $ codeChallenge = $ resultBag ->getOrFail (CodeChallengeRule::class)->getValue ();
826818 if ($ codeChallenge ) {
827819 $ this ->loggerService ->debug ('AuthCodeGrant: Code challenge: ' , [
828820 'codeChallenge ' => $ codeChallenge ,
829821 ]);
830- /** @var string $codeChallengeMethod */
831822 $ codeChallengeMethod = $ resultBag ->getOrFail (CodeChallengeMethodRule::class)->getValue ();
832823
833824 $ oAuth2AuthorizationRequest ->setCodeChallenge ($ codeChallenge );
@@ -879,7 +870,7 @@ public function validateAuthorizationRequestWithRequestRules(
879870 $ maxAge = $ resultBag ->get (MaxAgeRule::class);
880871 $ this ->loggerService ->debug ('AuthCodeGrant: MaxAge: ' , ['maxAge ' => $ maxAge ]);
881872 if (null !== $ maxAge ) {
882- $ authorizationRequest ->setAuthTime (( int ) $ maxAge ->getValue ());
873+ $ authorizationRequest ->setAuthTime ($ maxAge ->getValue ());
883874 }
884875
885876 $ requestClaims = $ resultBag ->get (RequestedClaimsRule::class);
@@ -892,7 +883,6 @@ public function validateAuthorizationRequestWithRequestRules(
892883 }
893884 }
894885
895- /** @var array|null $acrValues */
896886 $ acrValues = $ resultBag ->getOrFail (AcrValuesRule::class)->getValue ();
897887 $ this ->loggerService ->debug ('AuthCodeGrant: ACR values: ' , ['acrValues ' => $ acrValues ]);
898888 $ authorizationRequest ->setRequestedAcrValues ($ acrValues );
@@ -904,20 +894,17 @@ public function validateAuthorizationRequestWithRequestRules(
904894 $ this ->loggerService ->debug ('AuthCodeGrant: FlowType: ' , ['flowType ' => $ flowType ]);
905895 $ authorizationRequest ->setFlowType ($ flowType );
906896
907- /** @var ?string $issuerState */
908897 $ issuerState = $ resultBag ->get (IssuerStateRule::class)?->getValue();
909898 $ this ->loggerService ->debug ('AuthCodeGrant: Issuer state: ' , ['issuerState ' => $ issuerState ]);
910899 $ authorizationRequest ->setIssuerState ($ issuerState );
911900
912- /** @var ?array $authorizationDetails */
913901 $ authorizationDetails = $ resultBag ->get (AuthorizationDetailsRule::class)?->getValue();
914902 $ this ->loggerService ->debug (
915903 'AuthCodeGrant: Authorization details: ' ,
916904 ['authorizationDetails ' => $ authorizationDetails ],
917905 );
918906 $ authorizationRequest ->setAuthorizationDetails ($ authorizationDetails );
919907
920- /** @var \SimpleSAML\Module\oidc\Server\ResponseModes\ResponseModeInterface $responseMode */
921908 $ responseMode = $ resultBag ->getOrFail (ResponseModeRule::class)->getValue ();
922909 $ this ->loggerService ->debug (
923910 'AuthCodeGrant: Response mode: ' ,
@@ -955,7 +942,6 @@ public function validateAuthorizationRequestWithRequestRules(
955942 ['genericClientId ' => $ client ->getIdentifier ()],
956943 );
957944 // The generic client was used. Make sure to store actually used client_id and redirect_uri params.
958- /** @var string $clientIdParam */
959945 $ clientIdParam = $ resultBag ->getOrFail (ClientIdRule::class)->getValue ();
960946 $ this ->loggerService ->debug (
961947 'AuthCodeGrant: Binding client_id param to request: ' ,
0 commit comments