Skip to content

Commit 9855320

Browse files
author
Christopher C. Wells
committed
Check for auth errors before processing callback data
1 parent 1971386 commit 9855320

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Controller/PbsAuthControllerBase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ public static function create(ContainerInterface $container) {
113113
* PBS returns the user here after user has authenticated.
114114
*/
115115
public function callback() {
116+
if ($error_redirect = $this->checkAuthError()) {
117+
return $error_redirect;
118+
}
116119

117120
/** @var \OpenPublicMedia\OAuth2\Client\Provider\PbsResourceOwner|null $profile */
118121
$profile = $this->processCallback();

0 commit comments

Comments
 (0)