Laravel Socialite
Use users-au/socialite-provider when your Laravel app already owns its sign-in controllers and user model.
sh
composer require users-au/socialite-provider- In
config/services.php, add ausersauentry withclient_id,client_secret,redirectandhost. Use the Users.au project origin ashostand register your application's exact callback asredirect. - Register the provider's
SocialiteWasCalledlistener using the instructions for your Laravel version. - Start sign-in with
Socialite::driver('usersau')->redirect(). UseSocialite::driver('usersau')->user()from your callback to obtain the profile with state validation. - Link to a local account by the issuer and provider subject. Apply local membership and permissions before opening a session.
Provider 2 uses the standard sub as the Socialite ID, maps the avatar from picture and exposes granted claims through getRaw(). Optional claims can be absent. Keep the client secret on the server.
Provider setup and user fields · SocialiteProviders installation