Skip to content

Commit 2a3d98d

Browse files
committed
Update OAuth2Authenticator.php
1 parent 75f412f commit 2a3d98d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VerifierServer/OAuth2Authenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public function __construct(
7373
$this->default_redirect = "$scheme://$host:$http_port" . explode('?', $request->getUri()->getPath())[0];
7474

7575
$this->redirect_home = "$scheme://$web_address:$http_port";
76+
$this->allowed_uri[] = $this->redirect_home . "/{$this->endpoint_name}"; // must be first in array for redirect_uri check
7677
$this->allowed_uri[] = $this->redirect_home;
77-
$this->allowed_uri[] = $this->redirect_home . "/{$this->endpoint_name}";
7878
if ($resolved_ip) {
7979
$this->allowed_uri[] = "$scheme://$resolved_ip:$http_port/";
8080
$this->allowed_uri[] = "$scheme://$resolved_ip:$http_port/{$this->endpoint_name}";

0 commit comments

Comments
 (0)