-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AuthorizationUrl is not correct #73
Comments
PhpLeagueAccessTokenProvider is missing to include $scopes in parameter list of ProviderFactory->create
Also, ProviderFactory->create method is missing to include neccesary data that $tokenRequestContext when creating GenericProvider as $clientOptions is empty kiota-authentication-phpleague-php/src/Oauth/ProviderFactory.php Lines 41 to 51 in 3335c7d
|
Thanks for your input. I ended giving up on using the php sdk, and moved everything talking to the MS Graph to a .NET component. |
Hello,
I am trying to upgrade my application to use msgraph-sdk-php v2 and found this issue in this package.
The authorization url is not correct because of:
The clientId and redirectId issues could be fixed in the ProviderFactory class when creating the GenericProvider.
The scopes issue could be fixed in the PhpLeagueAccessTokenProvider constructor and pass them to the ProviderFactory::create, and then to the GenericProvider.
The goal is to have the
League\OAuth2\Client\Provider\GenericProvider
class fully equipped, which might also require passing theclientSecret
to it, but it is not necessary forgetAuthorizationUrl()
.I can imagine that this fix might not be as simple as I described, but if you could look into it, it would be greatly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: