Sha256: c7ffbce78ae877f955ae2d349b6fe3e00885296d524cdf629ba15fd6e171ba51
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
# frozen_string_literal: true require 'graphql' module Types class EnterpriseAccount < Types::BaseObject description 'An Account for a company that wishes to use SAML via Osso' implements GraphQL::Types::Relay::Node global_id_field :gid field :id, ID, null: false field :name, String, null: false field :domain, String, null: false field :identity_providers, [Types::IdentityProvider], null: true field :status, String, null: false def name object.domain.gsub('.com', '') end def status 'active' end def identity_providers object.saml_providers end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.2 | lib/osso/graphql/types/enterprise_account.rb |
osso-0.0.3.1 | lib/osso/graphql/types/enterprise_account.rb |