# frozen_string_literal: true require 'graphql' module Osso module GraphQL module Types class IdentityProvider < Types::BaseObject description 'Represents a SAML based IDP instance for an EnterpriseAccount' field :id, ID, null: false field :enterprise_account_id, ID, null: false field :service, Types::IdentityProviderService, null: true field :domain, String, null: false field :acs_url, String, null: false field :sso_url, String, null: true field :sso_cert, String, null: true field :status, Types::IdentityProviderStatus, null: false field :documentation_pdf_url, String, null: true def documentation_pdf_url ENV['BASE_URL'] + '/identity_provider/documentation/' + @object.id end end end end end