Sha256: c01869237a258388b263bd2872d344794a0a423a1449a4496b319ee6e190a187
Contents?: true
Size: 766 Bytes
Versions: 2
Compression:
Stored size: 766 Bytes
Contents
# frozen_string_literal: true require 'graphql' module Osso module 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.5 | lib/osso/graphql/types/enterprise_account.rb |
osso-0.0.3.4 | lib/osso/graphql/types/enterprise_account.rb |