laravel-social | Laravel 5 package for OAuth Social Login | OAuth library
kandi X-RAY | laravel-social Summary
kandi X-RAY | laravel-social Summary
A Laravel 5 package for OAuth Social Login/Register implementation using Laravel socialite and (optionally) AdminLTE Laravel package
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register the services .
- Get an attribute from the meta model .
- Finds user by social user .
- Handle user callback .
- Get the environment file .
- Obtain OAuth client data .
- Run the migration .
- Register controller class .
- Get social provider .
- Get the user object .
laravel-social Key Features
laravel-social Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-social
QUESTION
I am working on a flutter application, and I want to implement social login (Google and Facebook).
My API is implemented with Laravel and uses Laravel-socialite to authenticate users, there is the backend, web frontend (using VueJs) and now I am working on the mobile application using flutter.
The web application is working good (using the vue-social-auth package).
What I have done till now:
- Used flutter_google_sign_in to handle authentication on the flutter app.
- Did configure the package and I can successfully get user info through that package.
Problem I am facing:
What I don't seem to get working is to send the user that just logged in to the backend in order to provide an in-app user experience.
This is what the vue-social-auth package provides and what I send to the backend, which is working fine:
...ANSWER
Answered 2020-Dec-10 at 10:21I have solved it, after some digging I found out Laravel-Socialite
has the functionality to log in users using their token built-in:
Socialite
documentation:
If you already have a valid access token for a user, you can retrieve their details using Socialite's userFromToken method.
QUESTION
I am working on Laravel 7 and for social login I am using Socialite package. I am following this article for reference and did exactly the same but I am getting an unauthorized response with a message - "Bad Credentials". I have also tried resetting the secret key.
Thanks for the response.
...ANSWER
Answered 2020-Oct-20 at 10:43Aside from making sure that your client_id
and client_secret
are set correctly, you also need to ensure that your redirect
value in your config/services.php
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-social
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page