Bharat Mediratta
d45a737779
Update copyright to 2013. Fixes #1953 .
2013-01-21 01:22:01 -05:00
Bharat Mediratta
bf2bb3e1ea
Update copyright to 2012. #1822
2012-02-27 09:48:23 -08:00
Tim Almdal
7f8056b593
fix for ticket #1759 . correct parameter names to match usage.
2011-08-04 19:44:19 -07:00
Bharat Mediratta
423daa52d5
Update copyright to 2011.
2011-01-21 23:01:06 -08:00
Bharat Mediratta
a88b3f5808
Implement IdentityProvider_Gallery_Driver::admin_user() properly such
...
that it's not hardcoded to return the user with id 2. Create
user::admin_user() which finds an appropriate admin and returns it.
Fixes #1358 .
2010-09-11 00:47:48 -07:00
Bharat Mediratta
8a36c24f39
Fix some broken identity APIs:
...
- add_user_to_group and remove_user_from_group should take Group_Definition instances
to be consistent
- add_user_to_group and remove_user_from_group in drivers/IdentityProvider.php should
not be static
2010-09-06 18:20:46 -07:00
Bharat Mediratta
c3c2b45280
Update the copyright to 2010. It's only 3 months into the year :-)
2010-03-03 10:15:34 -08:00
Bharat Mediratta
f20fa2cfed
Change IdentityProvider::create_user() to take $email as well, since that's a required
...
parameter for the Gallery driver.
2010-01-17 20:37:25 -08:00
Bharat Mediratta
ab7be17b7f
Switch to model based validation approach.
2010-01-17 20:17:50 -08:00
Bharat Mediratta
058a84ed76
Convert ORM::in() to ORM::where(.., "IN", ..) for K24 compatibility.
2010-01-06 17:04:44 -08:00
Bharat Mediratta
c10386fe87
Convert html::specialchars() to html::chars()
2009-12-18 01:05:02 -08:00
Tim Almdal
c6fbd34f28
Add the add_user_to_group and remove_user_from_group api method calls. If the identity provider isn't writable, the method implementations should throw an Invalid Operation exception.
2009-10-29 19:16:08 -07:00
Tim Almdal
0bb2b7659f
Add the admin_user api function to the identity helper and the IdentityProvider interface.
2009-10-29 11:12:55 -07:00
Tim Almdal
c24d01bb9c
Standardize the use of the lookup methods
2009-10-23 10:52:42 -07:00
Tim Almdal
b74b131e25
Change Identity adminstration to use the uninstall/install methods when changing providers.
2009-10-22 22:30:25 -07:00
Tim Almdal
3c936d661a
Change the name of identity library from Identity to IdentityProvider. Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-22 13:11:03 -07:00
Tim Almdal
f04177f138
re-add the lookup_group_by_name API Method.
2009-10-21 11:49:42 -07:00
Tim Almdal
b28c758d4a
Add lookup_group Identity provider API and change the permissions controller to use it to get the group it is modifying
2009-10-20 17:21:33 -07:00
Tim Almdal
3ece1a01f2
Add a groups api method on the Identity provider and change access_Core::_get_all_groups() to use this to get the defined groups.
2009-10-20 17:01:19 -07:00
Tim Almdal
7f9441c33d
Changes to Identity interface to allow for multiple Identity providers. What I've tested to this point, is you can install a new provider, switch to it, login as administrator, uninstall the default user module, reinstall the user module, switch back to the user module and login.
2009-10-20 16:32:22 -07:00
Tim Almdal
098b57bf18
Simplify the user interface by moving the password reset functionality into the user module
...
Bagging the User_Definition and Group_Definition abstract classes and replacing them with interfaces with the same names.
Make sure all the unit tests work.
2009-10-19 12:53:44 -07:00
Tim Almdal
bc241e44c2
Cleanup merge of user/group helpers into Identity interface. Reduce redundant code in the user module and remove references to the Identity helper from the user module as the user module should be able to access things directly. Simplify the get_user_list api method to just accept an array of ids to return user objects for.
2009-10-16 08:55:26 -07:00
Tim Almdal
5b4f309163
Clean up phpDoc and change the Identity driver so only one configuration can be active at a given time.
2009-10-14 09:47:04 -07:00
Tim Almdal
ab73a4092f
Correct typo in method name
2009-10-13 12:03:55 -07:00
Tim Almdal
d9720b77e9
Merge branch 'master' into talmdal_dev
...
Conflicts:
modules/gallery/controllers/admin_users.php
modules/gallery/controllers/password.php
modules/gallery/helpers/group.php
modules/gallery/helpers/user.php
modules/notification/helpers/notification.php
2009-10-13 11:48:42 -07:00
Tim Almdal
c068384504
Encapsulate the user and group model in Gallery_User and Gallery_Group classes which extend the User_Definition and Group_Definition classes defined in the Identity API
2009-10-06 11:20:51 -07:00
Tim Almdal
6e59de2fb5
Change the notification handler to use the Identity API to lookup subscribers
...
for event notifications. This drove out some issues in the user::users and
group::groups API backend.
2009-10-06 07:55:31 -07:00
Tim Almdal
8285cd58e2
Handle the filters on Identity/Gallery::list_users and Identity/Gallery::list_groups
2009-10-05 18:10:39 -07:00
Tim Almdal
ca17727478
Access the form validation rules via the API for groups and users
2009-10-05 17:08:27 -07:00
Tim Almdal
08c01fec6c
The initial commit of refactoring the user/group adminsitration into a driver.
...
Create an Identity library that defines the interface the Gallery3 expects
Move the user and group helpers into the gallery module to provide the familiar
interface into the Identity library.
Create a Gallery Identity back-end that is supplied by the user module.
The vision here is that all user and group code that is gallery or ui specific
is contained within the core product. Anything that relates to manipulating a
user or group is contained in the back end code that can be replaced.
2009-10-05 16:27:52 -07:00
Bharat Mediratta
993742feb3
Move 3rd party PasswordHash library into the "lib" dir for
...
consistency. No 3rd party libs in "libraries", at least for now.
2009-05-18 03:39:42 +00:00
Tim Almdal
74216a3c63
The login processing is starting to take shape. Login_Form is gone. The html for the login form is retrieve via an ajax call when the user clicks on login. Can't login with a valid id yet, but you certainly get error messages when things are wrong :-)
2008-11-12 21:42:40 +00:00
Tim Almdal
1da2428183
More updates for user management. The controllers don't work yet. But the login link in the header wil open up a login box like the mockup
2008-11-12 03:40:49 +00:00
Tim Almdal
9f261213a5
Reset PasswordHash.php to its original state and exclude it from the file_structure_test
2008-11-11 06:21:21 +00:00
Tim Almdal
62bb63a70d
New user module with password support. This supports the same password mechanism as g1 and g2 to facilitate a migration.
2008-11-11 04:57:49 +00:00
Tim Almdal
7bcf7efc09
Remove the complexity of a interface driven user management module
2008-11-10 21:29:30 +00:00
Tim Almdal
0a8d5edbdc
Early look at the User/Auth module refactoring. It will look for a driver based on the contents of the user/config/user.php file. And load that driver based on the User_Driver interface. There is a default User_Gallery_Driver class that will provide the actual interface implementation. Replacing this driver will allow a completely different user and authentication implementation to be used... hopefully will reduce issues with embedding and other user management systems. Removed from unit tests so they will still run.
2008-11-10 20:17:09 +00:00