Skip to content
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

Missing options in oauth provider #78

Open
a77icu5 opened this issue Mar 21, 2024 · 0 comments
Open

Missing options in oauth provider #78

a77icu5 opened this issue Mar 21, 2024 · 0 comments

Comments

@a77icu5
Copy link

a77icu5 commented Mar 21, 2024

ClientId, ClientSecret and additional parameters are not persisted in oauth provider https://github.com/microsoft/kiota-authentication-phpleague-php/blob/dev/src/Oauth/ProviderFactory.php#L32

Consider the following example

$tenantId = '';
$clientId = '';
$clientSecret = '';

$clientCredentials = new ClientCredentialContext($tenantId, $clientId, $clientSecret);

$accessTokenProvider = new PhpLeagueAccessTokenProvider($clientCredentials);
$accessTokenProvider->getOauthProvider()->authorize(); 
Details

Result: The request body must contain the following parameter: 'client_id'.
https://login.microsoftonline.com/{$tenantId}/oauth2/v2.0/authorize?state=randomstring&response_type=code&approval_prompt=auto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant