File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -97,20 +97,20 @@ private function addID($attributes, $request)
9797 foreach ($ this ->candidates as $ idCandidate ) {
9898 if (isset ($ attributes [$ idCandidate ][0 ])) {
9999 if (($ this ->add_authority ) && (isset ($ state ['saml:AuthenticatingAuthority ' ][0 ]))) {
100- return ($ this ->add_candidate ? $ idCandidate. ': ' : '' ). $ attributes [$ idCandidate ][0 ]. '! ' .
100+ return ($ this ->add_candidate ? $ idCandidate . ': ' : '' ) . $ attributes [$ idCandidate ][0 ] . '! ' .
101101 $ state ['saml:AuthenticatingAuthority ' ][0 ];
102102 } else {
103- return ($ this ->add_candidate ? $ idCandidate. ': ' : '' ). $ attributes [$ idCandidate ][0 ];
103+ return ($ this ->add_candidate ? $ idCandidate . ': ' : '' ) . $ attributes [$ idCandidate ][0 ];
104104 }
105105 }
106106 }
107107 /*
108108 * At this stage no usable id_candidate has been detected.
109109 */
110- throw new \SimpleSAML \Error \Exception ('This service needs at least one of the following
111- attributes to identity users: ' .implode (', ' , $ this ->candidates ).'. Unfortunately not
112- one of them was detected. Please ask your institution administrator to release one of
113- them, or try using another identity provider. ' );
110+ throw new \SimpleSAML \Error \Exception ('This service needs at least one of the following ' .
111+ ' attributes to identity users: ' .implode (', ' , $ this ->candidates ).'. Unfortunately not ' .
112+ ' one of them was detected. Please ask your institution administrator to release one of ' .
113+ ' them, or try using another identity provider. ' );
114114 }
115115
116116
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ private function getFullName($attributes)
2727 }
2828
2929 if (isset ($ attributes ['sn ' ]) && isset ($ attributes ['givenName ' ])) {
30- return $ attributes ['givenName ' ][0 ]. ' ' . $ attributes ['sn ' ][0 ];
30+ return $ attributes ['givenName ' ][0 ] . ' ' . $ attributes ['sn ' ][0 ];
3131 }
3232
3333 if (isset ($ attributes ['cn ' ])) {
Original file line number Diff line number Diff line change 11<?php
22
33$ projectRoot = dirname (__DIR__ );
4- require_once ($ projectRoot. '/vendor/autoload.php ' );
4+ require_once ($ projectRoot . '/vendor/autoload.php ' );
55
66// Symlink module into ssp vendor lib so that templates and urls can resolve correctly
7- $ linkPath = $ projectRoot. '/vendor/simplesamlphp/simplesamlphp/modules/negotiate ' ;
7+ $ linkPath = $ projectRoot . '/vendor/simplesamlphp/simplesamlphp/modules/negotiate ' ;
88if (file_exists ($ linkPath ) === false ) {
99 echo "Linking ' $ linkPath' to ' $ projectRoot' \n" ;
1010 symlink ($ projectRoot , $ linkPath );
You can’t perform that action at this time.
0 commit comments