Welcome Guest, Not a member yet? Register   Sign In
Adding Google/Facebook login to Myth/Auth?
#1

At the moment i am researching on how to extend Myth/Auth with a google/facebook login. But i do not really have a clue on where to start yet, beside some thoughts. I am thinking about changing Myth/Auth helper functions to check if there is a normal login or one where facebook/google is involved. But i am not sure yet if this is the right approach for this....

What would be a good starting point on how to intergrate google/facebook api login into Myth/Auth? Any tips and/or advice is welcome.

Greets,
Hermes
Reply
#2

This is what was used to add it to CodeIgniter 3.

The League OAuth 2.0 Client
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

Maybe use HybridAuth? Or look at their code to see how they did it.
https://hybridauth.github.io/
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#4

Thanks @ includebeer that one slipped my mind.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

For the learning experience i like to code things myself. I ended up writing two controllers that handles the login and share the session Myth/Auth uses for sign in users.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB