Giter Club home page Giter Club logo

laravel-passport-socialite's People

Contributors

anandsiddharth avatar lenrsmith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-passport-socialite's Issues

"league/oauth2-server" requirement conflicts with the installer

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:

  • schedula/league-oauth2-social v1.0.2 requires league/oauth2-server ^6.0 -> satisfiable by league/oauth2-server[6.0.0, 6.0.1, 6.0.2, 6.1.0, 6.1.1].
    • don't install league/oauth2-server 6.0.0|don't install league/oauth2-server 7.2.0

Laravel 5.6;
"laravel/passport": "^6.0@dev",

Update to passport: ^7.0

- 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.

Problem with refreshing the token

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' => '', ] ]);

Laravel 8

Hi, any update for laravel 8?
Thanks

Google login

access token for google is it called tokenId in mobile app ??

Cannot get oAuth token or get this package to work

@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...

Problem getting oauth token

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

Laravel 6.x support

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.

Class Socialite not found error

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.

Cant install

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

Laravel 8 Support

Hi, is possible update Laravel 8 Support on “Packgist”, please ?

Thanks in advance.

Support Issue with laravel 6

- Conclusion: remove laravel/framework v6.18.10
- don't install illuminate/support 5.7.17|don't install laravel/framework 6.x-dev

Versioning error

Hi Anand

I am developing a web app with socialite and passport. But while installing your package I am facing the following versioning error. Do you have any suggestion on that ?

screen shot 2018-06-21 at 9 07 43 am

Laravel 6.0 cannot be installed

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].

OAuthServerException

Hi , @anandsiddharth

I am trying to get access_token from laravel passport but the request to /oauth/token always returns error 500.

2

I'm following the readme example

1

Note:
i'm using sfelix-martins/passport-multiauth

Your requirements could not be resolved to an installable set of packages.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.