Sha256: 173b34d15da80884b3c38fe3b6f1b655c03dc23b14f4085a2788ce4741af9e7b
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 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:) identity_provider = Osso::Models::IdentityProvider.find(id) identity_provider.service = provider identity_provider.save! { identity_provider: identity_provider, errors: [], } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems