Controller/Component/OpauthComponent.php
public function mapData($authData) {
		$map = $this->mapKeysToFields;
		list(, $model) = pluginSplit($this->_authenticateObject->settings['userModel']);
		$provider = Inflector::underscore($authData['provider']);
		$data = array($model => array($provider . '_credentials' => serialize($authData['credentials'])));

		foreach ($this->mapKeysToFields as $key => $path) {
			$map[$key] = String::insert($path, compact('model', 'provider'), array('after' => ':'));
			$value = Hash::get($authData, $key);
			$mappedKey = explode('.', $map[$key]);
			if (!empty($this->_user[array_pop($mappedKey)]) || empty($value)) {
				continue;
			}

			$data = Hash::insert($data, $map[$key], Hash::get($authData, $key));
		}

		return $data;
	}
public function mapData($authData) {
		$map = $this->mapKeysToFields;
		list(, $model) = pluginSplit($this->_authenticateObject->settings['userModel']);
		$provider = Inflector::underscore($authData['provider']);
		$data = array($model => array($provider . '_credentials' => serialize($authData['credentials'])));

		foreach ($this->mapKeysToFields as $key => $path) {
			$map[$key] = String::insert($path, compact('model', 'provider'), array('after' => ':'));
			$value = Hash::get($authData, $key);
			$mappedKey = explode('.', $map[$key]);
			if (!empty($this->_user[array_pop($mappedKey)]) || empty($value)) {
				continue;
			}

			$data = Hash::insert($data, $map[$key], Hash::get($authData, $key));
		}

		return $data;
	}
public function mapData ( $ authData ) { $ map = $ this -> mapKeysToFields ; list ( , $ model ) = pluginSplit ( $ this -> _authenticateObject -> settings [ 'userModel' ] ) ; $ provider = Inflector :: underscore ( $ authData [ 'provider' ] ) ; $ data = array ( $ model => array ( $ provider . '_credentials' => serialize ( $ authData [ 'credentials' ] ) ) ) ; foreach ( $ this -> mapKeysToFields as $ key => $ path ) { $ map [ $ key ] = String :: insert ( $ path , compact ( 'model' , 'provider' ) , array ( 'after' => ':' ) ) ; $ value = Hash :: get ( $ authData , $ key ) ; $ mappedKey = explode ( '.' , $ map [ $ key ] ) ; if ( ! empty ( $ this -> _user [ array_pop ( $ mappedKey ) ] ) || empty ( $ value ) ) { continue ; } $ data = Hash :: insert ( $ data , $ map [ $ key ] , Hash :: get ( $ authData , $ key ) ) ; } return $ data ; }
Maps Opauth's data for use in models.

@param array $authData Opauth's data.
@return array Mapped data.
Maps Opauth s data for use in models .