Sha256: 48136bff597210f960a4eb8d0e635f97d9cf7aa29e675ba6142215817f8795be
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true module Mutations class SetSamlProvider < BaseMutation null false argument :provider, Types::IdentityProviderService, required: true argument :id, ID, required: true field :identity_provider, Types::IdentityProvider, null: false field :errors, [String], null: false def resolve(provider:, id:) saml_provider = Osso::Models::SamlProvider.find(id) saml_provider.provider = provider saml_provider.save! { saml_provider: saml_provider, errors: [], } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.2 | lib/osso/graphql/mutations/set_saml_provider.rb |
osso-0.0.3.1 | lib/osso/graphql/mutations/set_saml_provider.rb |