some modifications for preparing to implement the SSO feature for WBB 4.

Signed-off-by: TomWu <phperwuhan@gmail.com>