fixed incorrect creation of IdentityProvider object that confused cache-key-generation