Sets the authentication type to be used.