class Osso::Models::EnterpriseAccount

Base class for Enterprises. This should map one-to-one with your own Account model. Persisting the EnterpriseAccount id in your application's database is recommended. The table also includes fields for external IDs such that you can persist your ID for an account in your Osso instance.

Public Instance Methods

identity_provider()
Alias for: provider
provider() click to toggle source
# File lib/osso/models/enterprise_account.rb, line 20
def provider
  return nil unless single_provider?

  identity_providers.first
end
Also aliased as: identity_provider
single_provider?() click to toggle source
# File lib/osso/models/enterprise_account.rb, line 16
def single_provider?
  identity_providers.not_pending.one?
end