Sha256: 51b1036b933944450298d351e891d38dd79645abf61e8ca65b5e9fd810d1a74f
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 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: false argument :sso_url, String, required: false argument :sso_cert, String, required: false field :identity_provider, Types::IdentityProvider, null: false field :errors, [String], null: false def resolve(id:, **args) provider = Osso::Models::IdentityProvider.find(id) return unauthorized unless authorized? return response_data(identity_provider: provider) if provider.update(args) response_error(errors: provder.errors.messages) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
osso-0.0.3.6 | lib/osso/graphql/mutations/configure_identity_provider.rb |