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

Authentication plugins #395

Closed
speedfl opened this issue Mar 28, 2018 · 15 comments
Closed

Authentication plugins #395

speedfl opened this issue Mar 28, 2018 · 15 comments

Comments

@speedfl
Copy link

speedfl commented Mar 28, 2018

I saw that push plugin is already mentionned.

However lot of apps are using facebook, linkedin and google login.

I think it could be nice to have them in Capacitor

@adil-Pathan
Copy link

Yes, absolutely right bro.

@janpio
Copy link
Contributor

janpio commented Mar 28, 2018

It would probably help if you would provide links to the actual and specific plugins you are using and whose functionality you want to use with Capacitor.

@speedfl
Copy link
Author

speedfl commented Mar 28, 2018

Facebook : https://github.com/jeduan/cordova-plugin-facebook4
Linkedin :
https://github.com/zyra/cordova-plugin-linkedin
Google+ :
https://github.com/EddyVerbruggen/cordova-plugin-googleplus

It could be nice to add a unique plugin like :
SocialAuthPlugin which agregate thoses plugins. And to signin we could have :

socialAuth.signinGoogle()
socialAuth.signinLinkedin()
socialAuth.signinFacebook()

@ghost
Copy link

ghost commented Apr 3, 2018

Cool, please include socialAuth.signinTwitter(), socialAuth.signinInstagram()

@ghost
Copy link

ghost commented Jul 2, 2018

I'm not sure about these ones, as i'm using server side authentication even with facebook to integrate single-sign on with a normal login feature.

@speedfl
Copy link
Author

speedfl commented Jul 3, 2018

FSS repository can you explain how you perform server side authentication as Facebook is using oauth?
For me I have multiple step:
Step 1 get approval on client side (website or mobile app)
Step 2 send Auth token to server
Step 3 validate Auth token and retrieve profile information (like s'user ID)
Step 4 compare the user ID with what I have in DB => if exists it is a login, if not it is a sign-up. Then I answer with my own token

However even in this schemas you need the plug-in to proceed with the acceptation of the user on client side

After if you have another solution I would be happy to check it because Facebook plug-in cause me lot of trouble!

@TitikshaDaga
Copy link

Hi,
I am developing an application which has linkedin authentication and I am using ionic capacitor. I installed the cordova plugin without any installation variables as capacitor doesn't support it. My question is that where do I put in the installation variables for ios and android and in what tag?

@jcesarmobile
Copy link
Member

this highly depends on the plugin you are using, not all of them handle the variables the same way

@TitikshaDaga
Copy link

I want to use the following plugin
https://ionicframework.com/docs/native/linkedin/

@jcesarmobile
Copy link
Member

Issues tagged with plugin request are closed but tracked for reactions to gauge interest.
If you are interested in this plugin, add the thumbs up emoji (+1) reaction on the issue so we can sort them based on it.

@TitikshaDaga there is another issue for the variables/strings of plugins, #624

@corysmc
Copy link

corysmc commented Nov 2, 2018

Facebook : https://github.com/jeduan/cordova-plugin-facebook4
Linkedin :
https://github.com/zyra/cordova-plugin-linkedin
Google+ :
https://github.com/EddyVerbruggen/cordova-plugin-googleplus

It could be nice to add a unique plugin like :
SocialAuthPlugin which agregate thoses plugins. And to signin we could have :

socialAuth.signinGoogle()
socialAuth.signinLinkedin()
socialAuth.signinFacebook()

@speedfl were you able to successfully implement any of these social log ins (specifically google +)? I get build issues when trying the googleplus plugin. I've tried several other approaches, and read I've read that you need to downgrade to uiwebview to get google auth to work (capacitor uses wkwebview)

@oliverandersencox
Copy link

@corysmc Facebook works fine - check out this article on how to make it work with capacitor https://www.joshmorony.com/using-cordova-plugins-that-require-install-variables-with-capacitor/ - There are just a few steps once the package is installed, and it works great.

I am currently implementing google into my app so will let you know how it is

@Sampath-Lokuge
Copy link

@oliverandersencox Can you tell us how to do that with google login?
https://ionicframework.com/docs/native/google-plus

@oliverandersencox
Copy link

@Sampath-Lokuge i had no luck with google login, however will try again this week!

@Ionitron
Copy link
Collaborator

👋

We now have a repo for Capacitor Community proposals.

This request has been moved to capacitor-community/proposals#17. Please 👍 the issue if you'd like to see this plugin for Capacitor!

Thanks!
Ionitron 💙

@ionic-team ionic-team locked and limited conversation to collaborators Jun 17, 2020
@ionic-team ionic-team unlocked this conversation Nov 14, 2022
@ionic-team ionic-team locked as resolved and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants