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.

This commit is contained in:
Tim Almdal
2009-10-29 19:16:08 -07:00
parent 04bf50bfb4
commit c6fbd34f28
4 changed files with 59 additions and 0 deletions

View File

@@ -190,4 +190,18 @@ class IdentityProvider_Core {
public function groups() {
return $this->driver->groups();
}
/**
* @see IdentityProvider_Driver::add_user_to_group.
*/
public function add_user_to_group($user, $group_id) {
return $this->driver->add_user_to_group($user, $group_id);
}
/**
* @see IdentityProvider_Driver::remove_user_to_group.
*/
public function remove_user_from_group($user, $group_id) {
return $this->driver->remove_user_from_group($user, $group_id);
}
} // End Identity