Handling Multi-Factor Authentication #141
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Looks at first glance that the MFA token lifetime has expired on a trusted device and that each time the client tries to access the (old) Graph API during authentication, it demands re-authentication |
Beta Was this translation helpful? Give feedback.
-
@olimjonbakirov Did you fix the problem ? |
Beta Was this translation helpful? Give feedback.
@theblindfrog and @hlecorche I was able to solve it then years ago. As far as I remember the solution was to add 'scope' and I think 'User.Read' was mandatory for MFA to work.
$this->client = new \TheNetworg\OAuth2\Client\Provider\Azure([
'clientId' => env('azure.client_id'),
'clientSecret' => env('azure.client_secret'),
'scope' => ['openid', 'profile', 'email', 'User.Read'],
'redirectUri' => env('azure.redirect_uri')
]);
let me know if it does not work - I can look up further.