Sha256: eabc77fc6687fb61d9ab35bd0d3ccc7246ac4dccd9fdebadd589af234fe22faa
Contents?: true
Size: 762 Bytes
Versions: 2
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true module Mutations class ConfigureIdentityProvider < BaseMutation null false argument :id, ID, required: true # argument :provider, Types::IdentityProviderService, required: true argument :sso_url, String, required: true argument :sso_cert, String, required: true field :identity_provider, Types::IdentityProvider, null: true field :errors, [String], null: false def resolve(id:, sso_url:, sso_cert:) provider = Osso::Models::SamlProvider.find(id) provider.update( idp_cert: sso_cert, idp_sso_target_url: sso_url, ) return_data(identity_provider: provider) # rescue StandardError => e # return_error(errors: e.full_message) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.2 | lib/osso/graphql/mutations/configure_identity_provider.rb |
osso-0.0.3.1 | lib/osso/graphql/mutations/configure_identity_provider.rb |