<?php

class OpauthModule extends CWebModule {

	public $securitySalt;
	public $securityIteration = 300;
	public $securityTimeout = '2 minutes';
	public $strategies;
	public $debug;

	public function init() {
		$this->setImport(array(
			'opauth.vendors.Opauth.Opauth',
		));
		if (is_null($this->debug)) {
			if (defined('YII_DEBUG')) {
				$this->debug = true;
			}
		}
		$path = Yii::app()->createUrl($this->id) . '/';
		$opauth = new Opauth(array(
			'Security.salt' => $this->securitySalt,
			'Security.iteration' => $this->securityIteration,
			'Security.timeout' => $this->securityTimeout,
			'debug' => $this->debug,
			'path' => $path,
			'strategies' => $this->strategies,
		));
	}

	public function beforeControllerAction($controller, $action) {
		if (parent::beforeControllerAction($controller, $action)) {
			return true;
		}
		else
			return false;
	}

}

<?php

class OpauthModule extends CWebModule {

	public $securitySalt;
	public $strategies;
	public $debug;

	public function init() {
		$this->setImport(array(
			'opauth.vendors.Opauth.Opauth',
		));
		if (is_null($this->debug)) {

		}
		exit;
		$path = Yii::app()->createUrl($this->id) . '/';
		$opauth = new Opauth(array(
			'Security.salt' => $this->securitySalt,
			'path' => $path,
			'strategies' => $this->strategies,
		));
	}

	public function beforeControllerAction($controller, $action) {
		if (parent::beforeControllerAction($controller, $action)) {
			return true;
		}
		else
			return false;
	}

}

--- 
+++ 
@@ -3,6 +3,8 @@
 class OpauthModule extends CWebModule {
 
 	public $securitySalt;
+	public $securityIteration = 300;
+	public $securityTimeout = '2 minutes';
 	public $strategies;
 	public $debug;
 
@@ -11,12 +13,16 @@
 			'opauth.vendors.Opauth.Opauth',
 		));
 		if (is_null($this->debug)) {
-
+			if (defined('YII_DEBUG')) {
+				$this->debug = true;
+			}
 		}
-		exit;
 		$path = Yii::app()->createUrl($this->id) . '/';
 		$opauth = new Opauth(array(
 			'Security.salt' => $this->securitySalt,
+			'Security.iteration' => $this->securityIteration,
+			'Security.timeout' => $this->securityTimeout,
+			'debug' => $this->debug,
 			'path' => $path,
 			'strategies' => $this->strategies,
 		));
Implement more security options and debug options.
