From 730b7c088ec2df1e7ef8034a3f5ce2839a9c3b5e Mon Sep 17 00:00:00 2001 From: Fernando Tadeu de Moraes Date: Wed, 4 May 2022 15:08:03 -0300 Subject: [PATCH] Allow id-admin to access user attributes --- IDMail.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; }