getProvider

abstract fun getProvider(): String

Gets the identifier of the identity provider that forged this Identity instance. The returned value closely depends on the used authentication method:

  • Anonymous login: anonymous
  • Email/password login: password
  • OAuth2 login: google, facebook, orange...
  • Mobile Connect login: mobileconnect
  • OIDC login: oidc.<oidc-provider-name>
  • Implicit login: wassup
  • Custom login: custom.<custom-provider-name>

Return

The identifier of the identity provider that forged this Identity instance