laravel-social | A social login package for Laravel | Authentication library
kandi X-RAY | laravel-social Summary
kandi X-RAY | laravel-social Summary
A social login package for Laravel 4.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process login .
- Process the connect request .
- Refresh an access token .
- Makes a request to Twitter .
- Create a new social service .
- Register the package .
- Register the providers .
- Get the OAuth spec for the given provider .
- Get provider by name .
- Register social services .
laravel-social Key Features
laravel-social Examples and Code Snippets
$ php artisan migrate:publish mmanos/laravel-social
$ php artisan migrate
use Mmanos\Social\SocialTrait;
class User extends Eloquent
{
use SocialTrait;
}
Log in with Twitter
Log in with Twitter
"mmanos/laravel-social": "dev-master"
'providers' => array(
// ...
'Mmanos\Social\SocialServiceProvider',
)
'aliases' => array(
// ...
'Social' => 'Mmanos\Social\Facades\Social',
)
$ php artisan asset:publish mmanos/laravel-social
{{ HTML::style('/packages/mmanos/laravel-social/css/socialbuttons.css') }}
Log in with Twitter
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
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