open id login and token generate way