Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-elixir
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
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp-module-elixir
Commits
dcfaf6c8
Unverified
Commit
dcfaf6c8
authored
6 years ago
by
Pavel Vyskočil
Browse files
Options
Downloads
Patches
Plain Diff
Added support for MFA
parent
cbdab3d5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
themes/elixir/perun/disco-tpl.php
+18
-0
18 additions, 0 deletions
themes/elixir/perun/disco-tpl.php
with
20 additions
and
0 deletions
CHANGELOG.md
+
2
−
0
View file @
dcfaf6c8
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
All notable changes to this project will be documented in this file.
All notable changes to this project will be documented in this file.
## [Unreleased]
## [Unreleased]
[Added]
-
Added support for MFA
## [v1.2.2]
## [v1.2.2]
[Removed]
[Removed]
...
...
This diff is collapsed.
Click to expand it.
themes/elixir/perun/disco-tpl.php
+
18
−
0
View file @
dcfaf6c8
...
@@ -23,11 +23,15 @@ const WARNING_USER_CAN_CONTINUE = 'userCanContinue';
...
@@ -23,11 +23,15 @@ const WARNING_USER_CAN_CONTINUE = 'userCanContinue';
const
WARNING_TITLE
=
'title'
;
const
WARNING_TITLE
=
'title'
;
const
WARNING_TEXT
=
'text'
;
const
WARNING_TEXT
=
'text'
;
const
MFA_IDENTIFIER
=
"https://refeds.org/profile/mfa"
;
const
MFA_IDP
=
"https://stepup.elixir-finland.org/idp/shibboleth"
;
$warningIsOn
=
false
;
$warningIsOn
=
false
;
$warningUserCanContinue
=
null
;
$warningUserCanContinue
=
null
;
$warningTitle
=
null
;
$warningTitle
=
null
;
$warningText
=
null
;
$warningText
=
null
;
$config
=
null
;
$config
=
null
;
$authContextClassRef
=
null
;
try
{
try
{
$config
=
SimpleSAML_Configuration
::
getConfig
(
WARNING_CONFIG_FILE_NAME
);
$config
=
SimpleSAML_Configuration
::
getConfig
(
WARNING_CONFIG_FILE_NAME
);
...
@@ -68,8 +72,22 @@ if ($warningIsOn && !$warningUserCanContinue) {
...
@@ -68,8 +72,22 @@ if ($warningIsOn && !$warningUserCanContinue) {
$this
->
data
[
'header'
]
=
$this
->
t
(
'{elixir:elixir:warning}'
);
$this
->
data
[
'header'
]
=
$this
->
t
(
'{elixir:elixir:warning}'
);
}
}
if
(
isset
(
$this
->
data
[
'AuthnContextClassRef'
]))
{
$authContextClassRef
=
$this
->
data
[
'AuthnContextClassRef'
];
}
$this
->
includeAtTemplateBase
(
'includes/header.php'
);
$this
->
includeAtTemplateBase
(
'includes/header.php'
);
if
(
$authContextClassRef
!=
null
)
{
foreach
(
$authContextClassRef
as
$value
)
{
if
(
substr
(
$value
,
0
,
strlen
(
MFA_IDENTIFIER
))
===
MFA_IDENTIFIER
)
{
SimpleSAML\Logger
::
info
(
"Redirecting to "
.
MFA_IDP
);
$url
=
$this
->
getContinueUrl
(
MFA_IDP
);
SimpleSAML\Utils\HTTP
::
redirectTrustedURL
(
$url
);
exit
;
}
}
}
if
(
$warningIsOn
)
{
if
(
$warningIsOn
)
{
if
(
$warningUserCanContinue
)
{
if
(
$warningUserCanContinue
)
{
...
...
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