Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it an implementation for single sign on? #1

Open
jacinto-joao opened this issue Jul 12, 2018 · 2 comments
Open

Is it an implementation for single sign on? #1

jacinto-joao opened this issue Jul 12, 2018 · 2 comments

Comments

@jacinto-joao
Copy link

Hi @qwildz ,

I found your repo while looking for a solution for a single sign-on with Laravel,
especially with Laravel Passport, which I've been playing around recently.

So just wanted to find from you how does it passport-sso-client works/?

I went through your code and I could see some lights for what I'm looking to achieve, but I need to get some info about the use case of this implementation.
any help would be appreciated.

Regards

@qwildz
Copy link
Owner

qwildz commented Jul 18, 2018

Hi @jjoao07,

Thanks for checking my repo. I'm sorry for this late reply because I rarely checking my GitHub notification. And my repo still not documented well.

This repo was intended to be used personally. Laravel has Passport which provides OAuth Server and Socialite for allowing the user to login via Facebook/Twitter/GitHub. But Socialite still doesn't provide a provider to authenticate with Laravel Passport. If you have tried Laravel Socialite, you will get familiarized with passport-sso-client.

But, you have to build another OAuth Server using this: https://github.com/qwildz/passport-extended . It still not documented too. But I suggest you to learn how to use Laravel Passport. The installation steps will be the same.

After you installed the server, next you can include "qwildz/passport-sso-client": "dev-master" in your website's composer file and publish the sso.php config file with php artisan vendor:publish. Set the url of the server you've installed before, client_id, client_secret.

Sorry if the explanation is not enough for you. Let me know if you have any question.

Regards.

@jacinto-joao
Copy link
Author

Hi @qwildz

Thanks for your feedback.

So if understood what u said above, it like the passport client work well with laravel Socialite.
Something like with passport client I will have a login with FB, twitter and laravel client, which will be my own implementation using your package on top of passport.

I will check it deep and let u know if I get stuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants