Skip to content

Commit c74618f

Browse files
committed
[@checkme] Add issuer iss as HTTP Query Parameter to redirect URL in OAuth responses.
1 parent 7de2564 commit c74618f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Server.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ final public function respondToAuthorizationRequest(
7373
// Validate the HTTP request and return an AuthorizationRequest object.
7474
$authRequest = $authorizationServer->validateAuthorizationRequest($request);
7575
} catch (OAuthServerException $serverException) {
76-
return $this->createOauthServerExceptionResponse($response, $serverException);
76+
$httpResponse = $this->createOauthServerExceptionResponse($response, $serverException);
77+
// @CHECKME: Is this a 302 redirect? If so, a `iss` query param should be added to the redirect URL in the Location header
78+
$httpResponse = $this->addIssuerToRedirectUrl($httpResponse);
79+
80+
return $httpResponse;
7781
}
7882

7983
if ($user instanceof UserEntityInterface) {

0 commit comments

Comments
 (0)