Skip to content

Handling Multi-Factor Authentication #141

Discussion options

You must be logged in to vote

Also bumping for this. @olimjonbakirov did you figure out how to get this to work?

@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.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@olimjonbakirov
Comment options

@hajekj
Comment options

Comment options

You must be logged in to vote
3 replies
@theblindfrog
Comment options

@olimjonbakirov
Comment options

Answer selected by olimjonbakirov
@theblindfrog
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants