Skip to content
Snippets Groups Projects
Commit e14af961 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

Merge branch 'develop' of https://labs.maarch.org/maarch/MaarchCourrier into develop

parents bd4ce9eb c7696e77
No related branches found
No related tags found
No related merge requests found
...@@ -63,9 +63,13 @@ if($loginRequestArray['CAS_VERSION'] == 'CAS_VERSION_2_0'){ ...@@ -63,9 +63,13 @@ if($loginRequestArray['CAS_VERSION'] == 'CAS_VERSION_2_0'){
$Id = phpCAS::getUser(); $Id = phpCAS::getUser();
echo 'Identifiant : ' . phpCAS::getUser(); echo 'Identifiant : ' . phpCAS::getUser();
echo '<br/> phpCAS version : ' . phpCAS::getVersion(); echo '<br/> phpCAS version : ' . phpCAS::getVersion();
$tmpId = explode($id_separator, $Id); if(!empty($id_separator)){
$userId = $tmpId[0]; $tmpId = explode($id_separator, $Id);
$userId = $tmpId[0];
} else {
$userId = $Id;
}
} elseif($loginRequestArray['CAS_VERSION'] == 'SAML_VERSION_1_1'){ } elseif($loginRequestArray['CAS_VERSION'] == 'SAML_VERSION_1_1'){
// $attrSAML = phpCAS::getAttributes(); // $attrSAML = phpCAS::getAttributes();
// var_export($attrSAML); // var_export($attrSAML);
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
<WEB_CAS_URL>192.168.21.25</WEB_CAS_URL> <!-- ip --> <WEB_CAS_URL>192.168.21.25</WEB_CAS_URL> <!-- ip -->
<WEB_CAS_PORT>443</WEB_CAS_PORT> <WEB_CAS_PORT>443</WEB_CAS_PORT>
<WEB_CAS_CONTEXT>/cas-server-webapp-4.0.0</WEB_CAS_CONTEXT> <WEB_CAS_CONTEXT>/cas-server-webapp-4.0.0</WEB_CAS_CONTEXT>
<ID_SEPARATOR>@</ID_SEPARATOR><!--return id without string after the separator include--> <ID_SEPARATOR></ID_SEPARATOR><!--return id without string after the separator include-->
<PATH_CERTIFICATE></PATH_CERTIFICATE><!--path to the cas server certificate. absolute path. empty if no certificate--> <PATH_CERTIFICATE></PATH_CERTIFICATE><!--path to the cas server certificate. absolute path. empty if no certificate-->
</ROOT> </ROOT>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment