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

Support the custom parameters of the access token request #707

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

maximepvrt
Copy link
Contributor

Currently, Laravel Socialite allows custom parameters to be added to the authentication request via the with method, providing flexibility to developers for handling various OAuth providers' unique requirements. However, there is no built-in support for adding custom parameters to the access token request.

Usage

$parameters = ['custom_param' => 'value'];

return Socialite::driver('provider')
    ->with($parameters)
    ->stateless()
    ->user();

With this update, the with method will now ensure that the custom parameters are included in both the authentication and access token requests.

Conclusion

This enhancement aligns the functionality of access token requests with that of authentication requests, providing a more cohesive and powerful toolset for developers using Laravel Socialite.

@taylorotwell taylorotwell merged commit c8234bf into laravel:5.x Jun 11, 2024
22 checks passed
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

Successfully merging this pull request may close these issues.

2 participants