![]() |
Adding Google/Facebook login to Myth/Auth? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34) +--- Thread: Adding Google/Facebook login to Myth/Auth? (/showthread.php?tid=79226) |
Adding Google/Facebook login to Myth/Auth? - Hermes - 05-14-2021 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 RE: Adding Google/Facebook login to Myth/Auth? - InsiteFX - 05-15-2021 This is what was used to add it to CodeIgniter 3. The League OAuth 2.0 Client RE: Adding Google/Facebook login to Myth/Auth? - includebeer - 05-15-2021 Maybe use HybridAuth? Or look at their code to see how they did it. https://hybridauth.github.io/ RE: Adding Google/Facebook login to Myth/Auth? - InsiteFX - 05-15-2021 Thanks @ includebeer that one slipped my mind. RE: Adding Google/Facebook login to Myth/Auth? - Hermes - 05-24-2021 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. |