CodeIgniter Forums
Need of Built in Authentication system - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: Need of Built in Authentication system (/showthread.php?tid=80646)



Need of Built in Authentication system - Kiranrs - 11-25-2021

Hi,
I recently doing a major project on Codeigniter 4.1.5 and it was proposed to be done in Laravel. But the improvements in the latest version of Codeigniter 4 was sufficient for us to continue in CI4. Our team was tested and did some mock projects around a few months for testing the new framework and it's simply amazing. Kudos for developers and maintaners for keeping this framework as simple as possible. 
Only one thing we really miss , not only me my team mates also, is the lacking of some important built in capabilities Authentication,ORM etc.. There is few items in our list, but I didn't vote for that. But I'm just want to say that the framework will much better if we integrate built in Authentication capability. Becasue most of the applications are build with authentication functionality. That will help this framework to next level. So I wish authentication plugin needs to be there in 4.2 or 4.3.
Thanks


RE: Need of Built in Authentication system - sammyskills - 11-26-2021

Hi,

Well, IMHO, I don't think a built-in authentication will be great, even laravel doesn't come with any authentication built-in. In fact, you cannot get the debug bar that CI4 provides out-of-the-box in laravel except you install a package.

With that being said, I believe that most of these frameworks try to keep things simple, so that you can always "extend" or "add" as your project requires.

I recommend you check out this CI4 authentication plugin. It is very robust and secure too. I've used it in a couple of projects and it worked just fine for all use cases.

Regards.


RE: Need of Built in Authentication system - InsiteFX - 11-26-2021

What your asking for are created as modules and that's just what Myth/Auth is a reusable module.


RE: Need of Built in Authentication system - FlavioSuar - 11-26-2021

There is the SimpleAuth module... It's really great!!
https://github.com/GeekLabsUK/SimpleAuth/

There is still a typo bug.
See the issue at https://github.com/GeekLabsUK/SimpleAuth/issues/4


RE: Need of Built in Authentication system - kenjis - 11-26-2021

https://codeigniter.com/user_guide/extending/authentication.html

See https://packagist.org/providers/codeigniter4/authentication-implementation
and https://github.com/lonnieezell/codeigniter-shield


RE: Need of Built in Authentication system - Kiranrs - 11-29-2021

Yes, there is an third party auth library available, but it causes some issues also. One example, is I can't use guzzlehttp library with myth/auth. So if we can integrate built in auth system, this wouldn't happen, I guess.


RE: Need of Built in Authentication system - InsiteFX - 11-29-2021

Why? jQuery uses guzzle and it runs fine with Myth/Auth.

SEE: Boilerplate with Myth/Auth in the Addins Topic.
Uses a jQuery Menu system.


RE: Need of Built in Authentication system - kenjis - 11-29-2021

(11-29-2021, 12:38 AM)Kiranrs Wrote: I can't use guzzlehttp library with  myth/auth. So if we can integrate built in auth system, this wouldn't happen, I guess.

As InsiteFX says, I also don't understand why you can't.
And why built-in auth system can.