@@ -102,8 +102,7 @@ |
||
102 | 102 | if($this->idTokenHint['sub'] !== $this->resourceOwner->getIdentifier()) { |
103 | 103 | if($this->prompt == self::PROMPT_NONE) { |
104 | 104 | throw new OAuthException('invalid_request'); |
105 | - } |
|
106 | - else { |
|
105 | + } else { |
|
107 | 106 | throw new OAuthException('login_required'); |
108 | 107 | } |
109 | 108 | } |
@@ -121,10 +121,11 @@ |
||
121 | 121 | $redirectUris = $client->getMetadata()->getRedirectUris(); |
122 | 122 | if (empty($redirectUris)) { |
123 | 123 | if ($client instanceof PublicClientInterface || |
124 | - ($client instanceof ConfidentialClientInterface && $responseType->isRegistrationOfRedirectUriRequired())) |
|
125 | - throw new OAuthException('invalid_request', |
|
124 | + ($client instanceof ConfidentialClientInterface && $responseType->isRegistrationOfRedirectUriRequired())) { |
|
125 | + throw new OAuthException('invalid_request', |
|
126 | 126 | 'Clients using flows with redirection MUST register their redirection URI values', |
127 | 127 | 'https://tools.ietf.org/html/rfc7591#section-2.1'); |
128 | + } |
|
128 | 129 | } else { |
129 | 130 | if ($requestRedirectUri) { |
130 | 131 | if (!in_array($requestRedirectUri, $redirectUris)) { |