schedula / laravel-passport-socialite Goto Github PK
View Code? Open in Web Editor NEWThe missing social authentication plugin (i.e. SocialGrant) for laravel passport.
License: MIT License
The missing social authentication plugin (i.e. SocialGrant) for laravel passport.
License: MIT License
there's a requirement in laravel/passport package: "league/oauth2-server": "^7.0".
And trying to install laravel-passport-socialite I'm getting the following error:
Laravel 5.6;
"laravel/passport": "^6.0@dev",
- schedula/laravel-passport-socialite v1.0.2 requires laravel/passport ^5.0 || ^6.0 -> satisfiable by laravel/passport[5.0.x-dev, 6.0.x-dev, v5.0.0, v5.0.1, v5.0.2, v5.0.3, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.0.5, v6.0.6, v6.0.7] but these conflict with your requirements or minimum-stability.
When I send refresh token that I get from social auth using Linkedin access token, I get 401, and description "The refresh token is invalid".
The Guzzle snippet that I'm using:
$response = $http->post($url, [ 'form_params' => [ 'grant_type' => 'refresh_token', 'refresh_token' => $refreshToken, 'client_id' => $client_id, 'client_secret' => $client_secret, 'scope' => '', ] ]);
I have an issue when installing the package.
currently, I have socialite ^4.0 installed but this package requires laravel/socialite ^3.0
Hi, any update for laravel 8?
Thanks
access token for google is it called tokenId in mobile app ??
Currently only supports v7. I don't think there are DC that effect his package.
@anandsiddharth thanks for the effort but I am trying to get this working as an end-to-end example so I can both move on to other parts of my app, and that this helps more people that are stuck. I'm just not able to figure out how to get this working.
Here's my code. I followed all the instructions in the readme. I even included some sample github and google API keys in my .env.example, so you can copy that as-is for your .env file.
https://gitlab.com/connecteev/_laravel_auth_socialite_with_laravel_passport/tree/schedula_laravel_passport_socialite
I also created a readme which contains the setup instructions. I also recorded some short videos in trying to get this (and social auth in general using laravel passport + socialite) working.
I'm stuck on step 1 and am not able to get a valid token.
POST http://localhost:8000/api/auth/social/github
This is the error I get back:
{
"error": "Client error: `GET https://api.github.com/user?access_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODAwMFwvYXBpXC92MVwvYXV0aFwvbG9naW5cL2dpdGh1YlwvY2FsbGJhY2siLCJpYXQiOjE1NzE0NDQyMDgsImV4cCI6MTU3MTQ0NzgwOCwibmJmIjoxNTcxNDQ0MjA4LCJqdGkiOiJrNjlTNHpNZ041dUhLSUtwIiwic3ViIjoyOCwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSJ9.Kbfia0I_SovgjyRsu1CVrxHWqhTKF6UBeS7aKnDlZPQ` resulted in a `401 Unauthorized` response:\n{\n \"message\": \"Bad credentials\",\n \"documentation_url\": \"https://developer.github.com/v3\"\n}\n\n"
}
What am I doing wrong?
How can we make this more dummy-proof (and I realize I may be the dummy here)? What would be awesome is if we can get this working and then use that as a reference going forward, possibly even in a "demo" or "example" branch in this repo itself.
Please advise...
When i try to get the token the response comes empty, what can i do, the client_id and secret that i am using are password clients
Using version ^2.0 for schedula/laravel-passport-socialite
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for schedula/laravel-passport-socialite ^2.0 -> satisfiable by schedula/laravel-passport-socialite[v2.0.0].
- Conclusion: remove laravel/framework v6.0.4
- Conclusion: don't install laravel/framework v6.0.4
- schedula/laravel-passport-socialite v2.0.0 requires illuminate/support ~5.7 -> satisfiable by illuminate/support[5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.7.0,
v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.4, v5.8.8, v5.8.9].
- don't install illuminate/support 5.7.17|don't install laravel/framework v6.0.4
- don't install illuminate/support 5.7.18|don't install laravel/framework v6.0.4
and goes on.
Its showing me "Error." as error description. I tried to catch and print. Its says Class Socialite not found error.
So please fix this in
File name : laravel-passport-socialite/src/Bridge/UserSocialRepository.php
Line no : 17
Line : use Socialite;
its should be like 'use Laravel\Socialite\Facades\Socialite'. Please fix this asap. I am waiting for this.
Hi, i want install this package in my project, i make new project and use compose require schedula/laravel-passport-socialit but say i cant install this package because i need remove laravel/framework, How i can install this repository to use passport with socialite? is in laravel 7.4
Hi, is possible update Laravel 8 Support on “Packgist”, please ?
Thanks in advance.
- Conclusion: remove laravel/framework v6.18.10
- don't install illuminate/support 5.7.17|don't install laravel/framework 6.x-dev
There is an error on last line of issueToken method.
Problem 1
- Installation request for schedula/laravel-passport-socialite ^2.0 -> satisfiable by schedula/laravel-passport-socialite[v2.0.0].
- Conclusion: remove laravel/framework v6.0.4
- Conclusion: don't install laravel/framework v6.0.4
- schedula/laravel-passport-socialite v2.0.0 requires illuminate/support ~5.7 -> satisfiable by illuminate/support[5.7.17, 5.7.18, 5.7.19, 5.7.x-dev, 5.8.x-dev, v5.7.0, v5.7.1, v5.7.10, v5.7.11, v5.7.15, v5.7.2, v5.7.20, v5.7.21, v5.7.22, v5.7.23, v5.7.26, v5.7.27, v5.7.28, v5.7.3, v5.7.4, v5.7.5, v5.7.6, v5.7.7, v5.7.8, v5.7.9, v5.8.0, v5.8.11, v5.8.12, v5.8.14, v5.8.15, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.20, v5.8.22, v5.8.24, v5.8.27, v5.8.28, v5.8.29, v5.8.3, v5.8.30, v5.8.31, v5.8.32, v5.8.33, v5.8.34, v5.8.35, v5.8.36, v5.8.4, v5.8.8, v5.8.9].
Hi , @anandsiddharth
I am trying to get access_token from laravel passport but the request to /oauth/token always returns error 500.
I'm following the readme example
Note:
i'm using sfelix-martins/passport-multiauth
Hello any idea about what is wrong at the moment of installing this package?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for league/oauth2-server (locked at 7.2.0) -> satisfiable by league/oauth2-server[7.2.0].
- Conclusion: don't install schedula/laravel-passport-socialite v1.0.2
- Conclusion: don't install schedula/laravel-passport-socialite v1.0.1
- Can only install one of: laravel/passport[5.0.x-dev, v6.0.3].
- Can only install one of: laravel/passport[v6.0.3, 5.0.x-dev].
- Can only install one of: laravel/passport[5.0.x-dev, v6.0.3].
- schedula/laravel-passport-socialite v1.0.0 requires laravel/passport ^5.0 -> satisfiable by laravel/passport[5.0.x-dev].
- Installation request for schedula/laravel-passport-socialite ^1.0 -> satisfiable by schedula/laravel-passport-socialite[v1.0.0, v1.0.1, v1.0.2].
- Installation request for laravel/passport (locked at v6.0.3, required as ^6.0) -> satisfiable by laravel/passport[v6.0.3].
Installation failed, reverting ./composer.json to its original content.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.