Commits

明点软件 committed 05a888e

改进

  • Participants
  • Parent commits 81af8f1

Comments (0)

Files changed (1)

File src/groovy/test/TestTaobaoAuthenticationDao.groovy

+package test
+
+import org.springframework.security.core.userdetails.UserDetails
+
+import com.mingidea.security.taobao.TaobaoAuthenticationDao
+import com.mingidea.security.taobao.TaobaoUser
+
+class TestTaobaoAuthenticationDao implements TaobaoAuthenticationDao {
+
+	public TaobaoUser find(String nick) {
+		return null;
+	}
+
+	public void update(TaobaoUser taobaoUser) {
+		// TODO Auto-generated method stub
+		
+	}
+
+	public void create(TaobaoUser taobaoUser) {
+		print 'create taobao user'
+
+	}
+
+	public UserDetails getPrincipal(TaobaoUser taobaoUser) {
+		// TODO Auto-generated method stub
+		return new org.springframework.security.core.userdetails.User("xx", "", true, true, true, true, []);
+	}
+
+}