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
...@@ -167,7 +167,10 @@ class GetMfaTokensPrivacyIDEA extends \SimpleSAML\Auth\ProcessingFilter ...@@ -167,7 +167,10 @@ class GetMfaTokensPrivacyIDEA extends \SimpleSAML\Auth\ProcessingFilter
$types = []; $types = [];
foreach ($tokens as $token) { foreach ($tokens as $token) {
foreach ($this->tokens_type as $type) { 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; $token[$this->token_type_attr] = $type;
$types[] = $token; $types[] = $token;
break; 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