Source

Grails Spring Security Taobao / src / groovy / test / TestTaobaoAuthenticationDao.groovy

Full commit
package test

import org.springframework.security.core.userdetails.UserDetails

import com.mingidea.security.taobao.TaobaoAuthenticationDao
import com.mingidea.security.taobao.TaobaoUser
import org.apache.commons.codec.digest.DigestUtils
import org.apache.commons.codec.binary.Base64

class TestTaobaoAuthenticationDao implements TaobaoAuthenticationDao {



	public TaobaoUser find(String nick, String appKey) {
		return null;
	}

	public void update(TaobaoUser taobaoUser) {
		// TODO Auto-generated method stub
		
	}

	public void create(TaobaoUser taobaoUser) {
		print 'create taobao user: ' + taobaoUser.nickname

	}

	public UserDetails getPrincipal(TaobaoUser taobaoUser) {
		// TODO Auto-generated method stub
		return new org.springframework.security.core.userdetails.User("xx", "", true, true, true, true, []);
	}

}