setIdentityProvider

Provide a custom identity provider. This is mainly used for unit testing (optional).