Refatoring getCredentials in IdentityPlugin.