Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-privacyidea
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
simplesamlphp-module-privacyidea
Commits
ae59aeab
Verified
Commit
ae59aeab
authored
3 years ago
by
Pavel Břoušek
Browse files
Options
Downloads
Patches
Plain Diff
fix: throw NoPassive when trying to do 2FA in passive request
introduced in
fe5daa27
but reverted without explanation in
9e320cfb
parent
880e351f
No related branches found
No related tags found
1 merge request
!3
fix: throw NoPassive when trying to do 2FA in passive request
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Auth/Process/PrivacyideaAuthProc.php
+5
-0
5 additions, 0 deletions
lib/Auth/Process/PrivacyideaAuthProc.php
with
5 additions
and
0 deletions
lib/Auth/Process/PrivacyideaAuthProc.php
+
5
−
0
View file @
ae59aeab
...
...
@@ -11,6 +11,7 @@ use SimpleSAML\Error\ConfigurationError;
use
SimpleSAML\Logger
;
use
SimpleSAML\Module
;
use
SimpleSAML\Module\privacyidea\Auth\Utils
;
use
SimpleSAML\Module\saml\Error\NoPassive
;
use
SimpleSAML\Utils\HTTP
;
/**
...
...
@@ -96,6 +97,10 @@ class PrivacyideaAuthProc extends ProcessingFilter
$username
=
$state
[
'Attributes'
][
$this
->
authProcConfig
[
'uidKey'
]][
0
];
$stateId
=
State
::
saveState
(
$state
,
'privacyidea:privacyidea'
);
if
(
isset
(
$state
[
'isPassive'
])
&&
true
===
$state
[
'isPassive'
])
{
throw
new
NoPassive
(
'Passive multi-factor authentication not supported.'
);
}
// Check if it should be controlled that user has no tokens and a new token should be enrolled.
if
(
!
empty
(
$this
->
authProcConfig
[
'doEnrollToken'
])
&&
true
===
$this
->
authProcConfig
[
'doEnrollToken'
])
{
$stateId
=
$this
->
enrollToken
(
$stateId
,
$username
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment