Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r215 - in registry/trunk/app: Controller webroot/auth/logout

Subject: COmanage Developers List

List archive

[comanage-dev] r215 - in registry/trunk/app: Controller webroot/auth/logout


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r215 - in registry/trunk/app: Controller webroot/auth/logout
  • Date: Wed, 8 Feb 2012 20:24:17 -0500

Author: benno
Date: 2012-02-08 20:24:17 -0500 (Wed, 08 Feb 2012)
New Revision: 215

Modified:
registry/trunk/app/Controller/UsersController.php
registry/trunk/app/webroot/auth/logout/index.php
Log:
Fix logout for CO-238

Modified: registry/trunk/app/Controller/UsersController.php
===================================================================
--- registry/trunk/app/Controller/UsersController.php 2012-02-07 19:11:04
UTC (rev 214)
+++ registry/trunk/app/Controller/UsersController.php 2012-02-09 01:24:17
UTC (rev 215)
@@ -36,6 +36,31 @@
);

/**
+ * Authorization for this Controller, called by Auth component
+ * - precondition: Session.Auth holds data used for authz decisions
+ * - postcondition: $permissions set with calculated permissions
+ *
+ * @since COmanage Registry v0.4
+ * @return Array Permissions
+ */
+
+ function isAuthorized() {
+ // Construct the permission set for this user, which will also be passed
to the view.
+ $p = array();
+
+ // Determine what operations this user can perform
+
+ // Login?
+ $p['login'] = true;
+
+ // Logout
+ $p['logout'] = true;
+
+ $this->set('permissions', $p);
+ return($p[$this->action]);
+ }
+
+ /**
* Login a user
* - precondition: User has been authenticated
* - precondition: Session updated with User information

Modified: registry/trunk/app/webroot/auth/logout/index.php
===================================================================
--- registry/trunk/app/webroot/auth/logout/index.php 2012-02-07 19:11:04
UTC (rev 214)
+++ registry/trunk/app/webroot/auth/logout/index.php 2012-02-09 01:24:17
UTC (rev 215)
@@ -19,14 +19,10 @@
*
*/

- // Since this page isn't part of the framework, we need to reconfigure
- // to access the Cake session
+// Since this page isn't part of the framework, we need to reconfigure
+// to access the Cake session

- session_name("CAKEPHP");
- session_start();
-?>
-<ol>
-<li>Log out of SSO</li>
-<li>Log out of Apache Module</li>
-<li><a href="<?php echo $_SESSION['Auth']['external']['return']; ?>">Logout
of Cake</a></li>
-</ol>
\ No newline at end of file
+session_name("CAKEPHP");
+session_start();
+
+header("Location: " . "/registry/users/logout");



  • [comanage-dev] r215 - in registry/trunk/app: Controller webroot/auth/logout, svnlog, 02/08/2012

Archive powered by MHonArc 2.6.16.

Top of Page