Skip to content
Snippets Groups Projects
Verified Commit 7169aad7 authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

fix: fix index error

apply array_values after array_intersect

fix #4
parent a3b16184
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,9 @@ class SwitchAuth extends \SimpleSAML\Auth\ProcessingFilter
$possibleReplies = self::wasMFAPerformed(
$state
) ? AuthSwitcher::REPLY_CONTEXTS_MFA : AuthSwitcher::REPLY_CONTEXTS_SFA;
$possibleReplies = array_intersect($possibleReplies, $state[AuthSwitcher::SUPPORTED_REQUESTED_CONTEXTS]);
$possibleReplies = array_values(
array_intersect($possibleReplies, $state[AuthSwitcher::SUPPORTED_REQUESTED_CONTEXTS])
);
if (empty($possibleReplies)) {
self::noAuthnContextResponder($state);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment