Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-cesnet
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
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp-module-cesnet
Commits
4488b9f9
Commit
4488b9f9
authored
6 years ago
by
Dominik František Bučík
Committed by
Pavel Vyskočil
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Merge pull request #15 from pajavyskocil/fixLoa
Set the default LoA to 0
parent
bfb858f1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+3
-1
3 additions, 1 deletion
CHANGELOG.md
lib/Auth/Process/ComputeLoA.php
+1
-1
1 addition, 1 deletion
lib/Auth/Process/ComputeLoA.php
with
4 additions
and
2 deletions
CHANGELOG.md
+
3
−
1
View file @
4488b9f9
...
@@ -2,9 +2,11 @@
...
@@ -2,9 +2,11 @@
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]
[Fixed]
-
Set the default LoA to 0 for IdP without or with empty attribute 'entityCategory'
## [v1.4.0]
## [v1.4.0]
[Cha
h
nged]
[Changed]
-
Changed ComputeLoA Process filter to add LoA=2 for people from university with affiliation='alum'
-
Changed ComputeLoA Process filter to add LoA=2 for people from university with affiliation='alum'
[Fixed]
[Fixed]
...
...
This diff is collapsed.
Click to expand it.
lib/Auth/Process/ComputeLoA.php
+
1
−
1
View file @
4488b9f9
...
@@ -80,7 +80,7 @@ class sspmod_cesnet_Auth_Process_ComputeLoA extends SimpleSAML_Auth_ProcessingFi
...
@@ -80,7 +80,7 @@ class sspmod_cesnet_Auth_Process_ComputeLoA extends SimpleSAML_Auth_ProcessingFi
private
function
getLoA
()
{
private
function
getLoA
()
{
if
(
is_null
(
$this
->
entityCategory
)
||
empty
(
$this
->
entityCategory
))
{
if
(
is_null
(
$this
->
entityCategory
)
||
empty
(
$this
->
entityCategory
))
{
return
2
;
return
0
;
}
elseif
(
$this
->
entityCategory
===
self
::
UNIVERSITY
)
{
}
elseif
(
$this
->
entityCategory
===
self
::
UNIVERSITY
)
{
foreach
(
$this
->
eduPersonScopedAffiliation
as
$affiliation
)
{
foreach
(
$this
->
eduPersonScopedAffiliation
as
$affiliation
)
{
if
(
preg_match
(
"/(^employee@.+\.cz$)|(^faculty@.+\.cz$)|(^member@.+\.cz$)|(^student@.+\.cz$)|(^staff@.+\.cz$)|(^alum@.+\.cz$)/"
,
$affiliation
,
$matches
))
{
if
(
preg_match
(
"/(^employee@.+\.cz$)|(^faculty@.+\.cz$)|(^member@.+\.cz$)|(^student@.+\.cz$)|(^staff@.+\.cz$)|(^alum@.+\.cz$)/"
,
$affiliation
,
$matches
))
{
...
...
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