Class: JSONRPC2::Auth Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/jsonrpc2/auth.rb

Overview

This class is abstract.

Base authentication class

Direct Known Subclasses

HttpAuth

Instance Method Summary collapse

Instance Method Details

#browser_check(env) ⇒ Object

Check authorisation for customers accessing API



13
14
15
# File 'lib/jsonrpc2/auth.rb', line 13

def browser_check(env)
  true
end

#client_check(env, rpc) ⇒ Object

Validate an API request



8
9
10
# File 'lib/jsonrpc2/auth.rb', line 8

def client_check(env, rpc)
  true
end

#inspectObject

Never show internal details of an API object



18
19
20
# File 'lib/jsonrpc2/auth.rb', line 18

def inspect
  "#<#{self.class.name}:#{object_id.to_s(16)}>"
end