# Authentication plugin

**URL:** <https://discourse.cakephp.org/t/authentication-plugin/12040>\
**Category:** Plugins\
**Tags:** help\
**Created:** [May 26, 2024, 3:01pm UTC](https://discourse.cakephp.org/t/authentication-plugin/12040 "2024-05-26T15:01:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![willian.simas](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@willian.simas](https://discourse.cakephp.org/u/willian.simas)\
**Post date:** [May 26, 2024, 3:01pm UTC](https://discourse.cakephp.org/t/authentication-plugin/12040/1 "2024-05-26T15:01:19Z")

</div>

Hello guys, I started a project with cakephp recently, about 1 or 2 months ago. Parts of the project already developed:  
Routes, templates (respective views), controllers (respective functions for each view).  
I’m stuck trying to implement the cakephp “Authentication” plugin. I need to implement the authentication functionality to proceed with the rest of the system, such as access control, for example. My doubt is:  
Can I find another way or means to implement authentication? or just with plugins?

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [May 26, 2024, 4:13pm UTC](https://discourse.cakephp.org/t/authentication-plugin/12040/2 "2024-05-26T16:13:50Z")

</div>

Of course you can write your own, but authentication is very hard to get right, and very easy to make not very secure. Using a plugin (there are many options) is a good way to save a lot of time and get a robust solution.

---

<div class="post-metadata">

**Author:** ![willian.simas](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@willian.simas](https://discourse.cakephp.org/u/willian.simas)\
**Post date:** [May 26, 2024, 9:55pm UTC](https://discourse.cakephp.org/t/authentication-plugin/12040/3 "2024-05-26T21:55:28Z")

</div>

I’m a beginner in the programming area, I have almost 9 months of experience, I had a brief contact with JS (react and nextjs), currently after contact with PHP, I developed some projects with pure PHP but now I’m adopting Frameworks.  
When I tried to install the plugin as the documentation suggests, it reported that some directories requested permission. There were many permission requests. I almost gave up. But, after granting the necessary permissions I was able to install it.  
Now I’m trying to implement authentication.  
Thanks for the answer!!!

---

<div class="post-metadata">

**Author:** ![bgrinter](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/bgrinter/32/1381_2.png) [@bgrinter](https://discourse.cakephp.org/u/bgrinter)\
**Post date:** [May 28, 2024, 10:20am UTC](https://discourse.cakephp.org/t/authentication-plugin/12040/4 "2024-05-28T10:20:13Z")

</div>

Absolutely - don’t re-invent the wheel. The existing plugins are great!

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [May 28, 2024, 10:52am UTC](https://discourse.cakephp.org/t/authentication-plugin/12040/5 "2024-05-28T10:52:22Z")

</div>

I showcased the whole setup process from a fresh app installation here:

[![](https://img.youtube.com/vi/EgN_iEVjQIA/maxresdefault.jpg "WORKSHOP - Authentication & Authorization by Kevin Pfeifer") ](https://www.youtube.com/watch?v=EgN_iEVjQIA)

Maybe this helps you get a feel for it.

---

<div class="post-metadata">

**Author:** ![isabellaandersen](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/isabellaandersen/32/3161_2.png) [@isabellaandersen](https://discourse.cakephp.org/u/isabellaandersen)\
**Post date:** [July 9, 2024, 7:21am UTC](https://discourse.cakephp.org/t/authentication-plugin/12040/6 "2024-07-09T07:21:33Z")

</div>

Hello,  
Can you please explain your problem in more.
