Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
36ec1fc2
Commit
36ec1fc2
authored
Aug 28, 2018
by
Bertrand Gauthier
Browse files
Shib: vérification que l'eppn usurpé contient bien un domaine
parent
878a1d3d
Pipeline
#1885
failed with stages
in 9 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Service/ShibService.php
View file @
36ec1fc2
...
...
@@ -142,6 +142,8 @@ EOS;
try
{
Assertion
::
keyIsset
(
$simulate
,
'eppn'
,
"Clé 'eppn' introuvable ou sans valeur dans l'option 'unicaen-auth.shibboleth.simulate'"
);
Assertion
::
contains
(
$simulate
[
'eppn'
],
'@'
,
"L'eppn '"
.
$simulate
[
'eppn'
]
.
"' n'est pas de la forme 'id@domaine' attendue (ex: 'tartempion@unicaen.fr')"
);
Assertion
::
eq
(
count
(
array_intersect
(
$keys
=
[
'supannEmpId'
,
'supannEtuId'
],
array_keys
(
$simulate
))),
1
,
"L'une ou l'autre de ces clés doit être présente dans l'option 'unicaen-auth.shibboleth.simulate': "
.
implode
(
', '
,
$keys
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment