laravel-socialite | Social OAuth Authentication for Laravel | Authentication library
kandi X-RAY | laravel-socialite Summary
kandi X-RAY | laravel-socialite Summary
:octocat: Social OAuth Authentication for Laravel 5. drivers: facebook, github, google, linkedin, weibo, qq, wechat and douban
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register the socialite manager .
- Get socialite manager .
- Get the facade accessor
laravel-socialite Key Features
laravel-socialite Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-socialite
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-socialite
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