TheNetworg / oauth2-azure

Azure AD provider for the OAuth 2.0 Client.
https://packagist.org/packages/thenetworg/oauth2-azure
MIT License
230 stars 108 forks source link

Difference with Microsoft official tutorial #153

Closed JulioJu closed 2 years ago

JulioJu commented 2 years ago

Hi,

Currently, the official example from Microsoft Microsoft advise to use https://github.com/thephpleague/oauth2-client barely.

See also https://docs.microsoft.com/en-us/graph/tutorials/php?tutorial-step=3 (Laravel is not mandatory) .

What do you think about this official advise ?

Thanks in advance

JulioJu commented 2 years ago

It seams that there is some shortcut

JulioJu commented 2 years ago

See also official example at https://developer.microsoft.com/en-us/graph/quick-start?platform=option-php

hajekj commented 2 years ago

Hi, I think it depends what your use case is. If it is just plain authentication, you are all good with oauth2-client mentioned above. If you would like to do some advanced scenarios - like protecting an API, using on-behalf-of flow and calling APIs in an easier way, I believe this library is going to serve you much better.

JulioJu commented 2 years ago

Thanks for your answer @hajekj :-)