Sha256: 868c2de3b1b33695e3aa4c4d4cf7b05bdd6e59870b3a987fb73fc19689cb4434
Contents?: true
Size: 892 Bytes
Versions: 2
Compression:
Stored size: 892 Bytes
Contents
# frozen_string_literal: true module Osso module GraphQL module Mutations class ConfigureIdentityProvider < BaseMutation null false argument :id, ID, required: true argument :service, 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:, service:) 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.5 | lib/osso/graphql/mutations/configure_identity_provider.rb |
osso-0.0.3.4 | lib/osso/graphql/mutations/configure_identity_provider.rb |