Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-perun
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-perun
Commits
dc5005f1
Verified
Commit
dc5005f1
authored
2 years ago
by
Dominik Frantisek Bucik
Browse files
Options
Downloads
Patches
Plain Diff
fix:
Fix naming error preventing updateUes from working
parent
238311a1
No related branches found
No related tags found
1 merge request
!306
fix: 🐛 Fix naming error preventing updateUes from working
Pipeline
#258841
passed
2 years ago
Stage: .pre
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/UESUpdateHelper.php
+14
-4
14 additions, 4 deletions
lib/UESUpdateHelper.php
with
14 additions
and
4 deletions
lib/UESUpdateHelper.php
+
14
−
4
View file @
dc5005f1
...
@@ -5,6 +5,7 @@ namespace SimpleSAML\Module\perun;
...
@@ -5,6 +5,7 @@ namespace SimpleSAML\Module\perun;
use
Exception
;
use
Exception
;
use
SimpleSAML\Configuration
;
use
SimpleSAML\Configuration
;
use
SimpleSAML\Logger
;
use
SimpleSAML\Logger
;
use
SimpleSAML\Module\perun\Exception
as
PerunException
;
class
UESUpdateHelper
class
UESUpdateHelper
{
{
...
@@ -82,15 +83,20 @@ class UESUpdateHelper
...
@@ -82,15 +83,20 @@ class UESUpdateHelper
$attrValue
=
[
$attrValue
];
$attrValue
=
[
$attrValue
];
}
}
if
(
empty
(
$attrValue
))
{
continue
;
}
foreach
(
$attrValue
as
$extLogin
)
{
foreach
(
$attrValue
as
$extLogin
)
{
if
(
empty
(
$extLogin
))
{
continue
;
}
$userExtSource
=
self
::
getUserExtSource
(
$adapter
,
$extSourceName
,
$extLogin
);
$userExtSource
=
self
::
getUserExtSource
(
$adapter
,
$extSourceName
,
$extLogin
);
if
(
$userExtSource
!==
null
)
{
if
(
$userExtSource
!==
null
)
{
Logger
::
debug
(
Logger
::
debug
(
self
::
DEBUG_PREFIX
.
'Found user ext source for combination extSourceName \''
self
::
DEBUG_PREFIX
.
'Found user ext source for combination extSourceName \''
.
$extSourceName
.
'\' and extLogin \''
.
$extLogin
.
'\''
.
$extSourceName
.
'\' and extLogin \''
.
$extLogin
.
'\''
);
);
return
$userExtSource
;
return
$userExtSource
;
}
}
}
}
...
@@ -103,7 +109,11 @@ class UESUpdateHelper
...
@@ -103,7 +109,11 @@ class UESUpdateHelper
{
{
try
{
try
{
return
$adapter
->
getUserExtSource
(
$extSourceName
,
$extLogin
);
return
$adapter
->
getUserExtSource
(
$extSourceName
,
$extLogin
);
}
catch
(
SimpleSAML\Module\perun\Exception
$ex
)
{
}
catch
(
PerunException
$ex
)
{
Logger
::
debug
(
self
::
DEBUG_PREFIX
.
'Did not find extSource for combination of parameters extSourceName: \''
.
$extSourceName
.
'\', extLogin: \''
.
$extLogin
.
'\''
);
return
null
;
return
null
;
}
}
}
}
...
@@ -217,7 +227,7 @@ class UESUpdateHelper
...
@@ -217,7 +227,7 @@ class UESUpdateHelper
strpos
(
$attributeType
,
self
::
MAP_TYPE
);
strpos
(
$attributeType
,
self
::
MAP_TYPE
);
}
}
public
static
function
convertToString
(
$newValue
)
public
static
function
convertToString
(
$newValue
)
:
string
{
{
if
(
!
empty
(
$newValue
))
{
if
(
!
empty
(
$newValue
))
{
$newValue
=
array_unique
(
$newValue
);
$newValue
=
array_unique
(
$newValue
);
...
...
This diff is collapsed.
Click to expand it.
Jednotné přihlášení test
@9008807
mentioned in commit
7441eb75
·
2 years ago
mentioned in commit
7441eb75
mentioned in commit 7441eb75e9fae7bf647586854a1a1a485fc78c96
Toggle commit list
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