diff --git a/IDMail.php b/IDMail.php index 9fd1e22..25b1162 100644 --- a/IDMail.php +++ b/IDMail.php @@ -55,6 +55,14 @@ private function login() ] ]); + # Allow id-admin to access user attributes + $response = $client->post("https://idpcafe.usp.br/idp/profile/SAML2/Redirect/SSO?execution=e1s2;jsessionid=$jsessionid", [ + 'form_params' => [ + '_shib_idp_consentOptions' => '_shib_idp_globalConsent', + '_eventId_proceed' => 'Aceitar', + ] + ]); + return $client; }