Added support for phase parameter in the federated auth plugin