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.1.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.0.3 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.0.2 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.0.1 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb
scimitar-1.0.0 spec/apps/dummy/app/controllers/custom_request_verifiers_controller.rb