Support different types of identities