mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-18 10:28:43 +00:00
parent
050d69ea27
commit
dce6a82954
1 changed files with 4 additions and 3 deletions
|
@ -109,9 +109,10 @@ class Saml2Service
|
||||||
$errors = $toolkit->getErrors();
|
$errors = $toolkit->getErrors();
|
||||||
|
|
||||||
if (!empty($errors)) {
|
if (!empty($errors)) {
|
||||||
throw new Error(
|
$reason = $toolkit->getLastErrorReason();
|
||||||
'Invalid ACS Response: ' . implode(', ', $errors)
|
$message = 'Invalid ACS Response; Errors: ' . implode(', ', $errors);
|
||||||
);
|
$message .= $reason ? "; Reason: {$reason}" : '';
|
||||||
|
throw new Error($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$toolkit->isAuthenticated()) {
|
if (!$toolkit->isAuthenticated()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue