Rework auth.remote parameters using group_switch feature to simplify the process.