Sha256: c93086b4824766efde66cee74699e6b36a50d5f7de945340fbf926c3477827b0

Contents?: true

Size: 598 Bytes

Versions: 45

Compression:

Stored size: 598 Bytes

Contents

# For tests only - uses custom 'index' implementation which returns information
# from the Rails 'request' object in its response.
#
class CustomRequestVerifiersController < Scimitar::ActiveRecordBackedResourcesController

  def index
    render json: {
      request: {
        is_scim: request.format == :scim,
        format: request.format.to_s,
        content_type: request.headers['CONTENT_TYPE']
      }
    }
  end

  def create
    # Used for invalid JSON input tests
  end

  protected

    def storage_class
      MockUser
    end

    def storage_scope
      MockUser.all
    end

end

Version data entries

45 entries across 45 versions & 2 rubygems

Version Path
scimitar-1.11.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.10.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.10.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.9.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.8.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.7.3 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
powerhome-scimitar-1.0.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.7.2 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.8.2 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.8.1 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.7.1 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.8.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.7.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.7.1 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.6.1 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.7.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.6.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.6.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.5.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-2.4.3 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb