Must set identity type before providing credentials