Sha256: 6578aafc3073c739294b8edefcf469d6da7e4bcb958420907a54ca5c3f734adf
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true module Osso module GraphQL 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.5 | lib/osso/graphql/mutations/set_saml_provider.rb |
osso-0.0.3.4 | lib/osso/graphql/mutations/set_saml_provider.rb |