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

fix: correct rollout_state handling

ignore only some rollout states
parent 2b13a03b
No related branches found
No related tags found
No related merge requests found
Pipeline #203285 passed with warnings with stages
in 16 minutes and 13 seconds
......@@ -167,7 +167,10 @@ class GetMfaTokensPrivacyIDEA extends \SimpleSAML\Auth\ProcessingFilter
$types = [];
foreach ($tokens as $token) {
foreach ($this->tokens_type as $type) {
if ($token['tokentype'] === strtolower($type) && empty($token['rollout_state'])) {
if (
$token['tokentype'] === strtolower($type)
&& !in_array($token['rollout_state'] ?? '', ['clientwait', 'verify'])
) {
$token[$this->token_type_attr] = $type;
$types[] = $token;
break;
......
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