Joomla and cakephp shared login - cakephp

I have a joomla instance and a cakephp instance in my site. What I want is to have a single login form for both the joomla and the cake instance.
Is this possible? Possibly there is a plugin that allows this?

You could use a Joomla-CakePHP bridge to execute Cake app in your Joomla instance.
If you want the two to work separately I think you can set up an authentication in Cake to user Joomla database and the data stored there when you are authenticating users.

You can achieve your task using session cookies.
Be aware that Joomla! writes by default session's data in database not in file
This link can help you to figure out how to proceed.

Related

CakePHP 3.0 Role Based Access Control

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

how to I add a database to zurb foundation?

I'm trying to add a login portion on foundation and allow users to upload their own photos. how do I do that ?
if this is not the right place where to ask please redirect me
The foundation framework is simply a tool for you to develop the "front-end" of your website or app. A database would be a "back-end" feature that you would then create a form for (front-end) to connect users to your database (back-end).
You can develop the back-end yourself or use a CMS such as wordpress which will likely already have the features you need. Hope that helps.

Administer DotNetNuke Users From Desktop Application?

There is the UserController class that lets us access and save user data.
I think UserController was meant to be used from within the context of a DNN website application, since it somehow already knows the connection string and other DNN settings.
So I take it that DNN Controller classes can't be used outside the context of a DNN website application, thus I can't add/revoke roles, reset password, and other administrative actions from a desktop application, correct?
If it's possible, please let me know. Thank you.
That's not possible out of the box but some reference can be available here which does somewhat similar things: http://iweb.codeplex.com/
Most of what you are asking for are pretty simple DB operation. You could use Entity Framework to map tables into classes in your .Net App and then issue Update commands. However, these will be executed outside of DNN and may not impact a currently logged on user unless you clear the cache of DNN or restart app.
You could write custom WebAPI methods to do so as Hammond suggested above. You need to ensure that these methods are secure though and only Admin / Host can execute them.

Joomla! 2.5 use login data from another database

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.

How Extract Data from django admin site?

I have a django admin page but i don't have the database file on my computer. How can i extract all datas from the admin page in a databse file (e.g. MyDB.sqlite) on my hard disk ?
You probably want to go through something specifically meant to support programmatic interaction with your Django site.
Checkout Django REST Framework for an example. There are others out there, too.

Resources