I have installed phpbb3 version in my cakephp application. I want to use same login for phpbb which is used in my cake application. But I am getting issues in it.
I have used this component PhpBB3 APi Bridge but it gives error that cannot redeclare user class. I am using User class in my application and cannot modify it. It seems phpbb also use User class.
After reading on net, I am inserting direct values in phpbb_session table and saving sid cookie but it's not logging in the user to phpbb forum.
I have searched alot but could not find any workable solution. Any help will be highly appreciated.
Thanks in advance.
Related
I am having a hard time finding assistance on securing my application. I want to create a role based system, in CakePHP, that would allow me to assign users to a role(s), assign permissions to a role, and use the roles to control who can see/do what on my application. I recall there being something you could use in CakePHP 2.X but I can't find anything in 3.0. Is this still supported? Is there a recommended way to do this? In particular, I need to know the table structure, so I can add them to my database diagram.
thanks
You may want to use TinyAuth plugin by dereuromark or the official ACL plugin by cakephp.
The ActionsAuthorize & CrudAuthorize adapter available in CakePHP 2.x
have now been moved to a separate plugin cakephp/acl.
https://book.cakephp.org/3.0/en/controllers/components/authentication.html#authorization
Hi I am Confused at creating the ARO users and groups and in which controller they
are defined
Please help me Thanks in Advance
ACL in general can get confused and complicated. Most times ACL is overkill for most APPs we develop anyway. I think Role Base Authentication with admin routing is much easier to setup and is enough for most situations. On my first CakePHP I developed, I used ACL, but did not actually need it, although it was a good learning opportunity. I am currently upgrading/redesigning to 2.0 and I am using role based for that site, with admin and members.
If you are trying to learn, I would say go for it and use the following CakePHP tutorial: CakePHP Simple Acl Controller Application Tutorial. To manage it, it can be very difficult. I would suggest the following plugin: Alaxos - Plugin ACL 2.0. The down side with this, is that is takes a long time to process when you need to make a simple change like adding a function to an existing controller, that might not be worth it, specially if you are using shared hosting with execution limition.
Bottom line: Use it if you REALLY/ABSOLUTELY need for your site. If not stay away from ACL.
I'm looking for an advanced CakePHP authentification component or plugin. I've used the core auth plugin and it's fine. I'm however looking for something a bit more advanced that allow to keep track of multiple sessions for the same user. Main features/reasons would be: Ability for user to see active sessions and allow the user to end active sessions. This method is used by facebook and other large sites.
If you do not know of an Auth component that does what I mentioned above do you know of any Auth component that does more than CakePHP's core/built-in component?
I searched the CakePHP bakery section and Googled to find an Auth component but didn't find any.
I don't know if there is something built-in for Auth in CakePHP with that complexity, try this plugin
https://github.com/Theaxiom/SuperAuth
Or check in the official github repository from CakeDC team https://github.com/CakeDC
also try to find something in http://plugins.cakephp.org/
By the way, maybe you can ask directly to core guys on irc ;) go to http://webchat.freenode.net/ and channel cakephp.
I have a hard question. I'd like the joomla login does not use its own database for users/password but I want to use my database users with my table fields, my passwords etc..
I don't know from where start, I thought I could edit database request for login to my db or create a little script to automatically add the users on joomla database.
I tried to see components/com_users/views/login/tmpl/default_login.php but it seems that there is nothing.
Can someone help me figure out what to change?
Maybe the simple thing is import my database users into database user joomla, is there any plugin or something else that you know?
p.s. I use Clarion theme build on Gantry framework, Joomla! 2.5.6 Stable, PHP 5.2.17
I would suggest that you find or create an authentication plugin that does this for you. Joomla can support multiple authentication systems.
Have a look at creating an Authentication Plugin for Joomla 1.5. The basic idea is described there.
Summary of the question:
I would like to create a CakePHP based registration and login system offering multiple different gateways such as OpenID, Facebook, Twitter, and so forth. I would like the system to allow a user to associate multiple forms of identification with their account.
After much searching, I am turning up a blank on anything that would allow more than one method of authorization. Cake's authorization system does complicate the matter, so using a tutorial for general PHP is not really effective. Does anyone have a solution, or somewhere I can start from?
Example:
To give a simple example, looking at the StackExchange network: you can login/register using a stack exchange account, Google, Yahoo, Facebook, or OpenID. Once logged in, you can add more of these methods to your account so that you are recognized a multitude of ways. I realize StackExchange probably isn't written in Cake, but it serves as an example.
Thank you!
Original Question
Here's the scoop: I'd like to integrate a simple registration/login system for each of the main services that offer oauth/openid in CakePHP.
Basically, I'd like my users to be able to register the old fashion way (including validation e-mail) or using an existing service to verify themselves. I'd like them to be able to login afterwards using that service, or with a username and password.
Now, I have found extremely in depth plugins for full facebook integration and the like, but the bottom line is that I want to just use this for registration and login at this point, and I would like the experience to be the same regardless of which service they choose (plus, I'd like to understand how it works... because this is all about learning CakePHP after all).
I'd also like them to be able to link other services once the account is created if they so desire. In a nut shell, they're account should be able to be linked to any number of login services, or none at all.
How on earth do I go about this?
Thank you,
James
Looks like there is now a third-party library available using Opauth as detailed on this bakery thread
Here is the CakePHP version's github page:
https://github.com/uzyn/cakephp-opauth
Great question - our CakePHP development studio may be looking at this in the coming months also. I suspect you'll have more luck researching this as a general PHP question and then how you can port that solution into Cake. Definitely post back with anything you discover.
You might find this thread a helpful starting point, although it was posted back in 2010:
Best way to implement Single-Sign-On with all major providers?