Class: OmfCommon::Auth::PDP::TestPDP

Inherits:
Object
  • Object
show all
Defined in:
omf_common/lib/omf_common/auth/pdp/test_pdp.rb

Instance Method Summary (collapse)

Constructor Details

- (TestPDP) initialize(opts = {})

Returns a new instance of TestPDP



11
12
13
# File 'omf_common/lib/omf_common/auth/pdp/test_pdp.rb', line 11

def initialize(opts = {})
  puts "AUTH INIT>>> #{opts}"
end

Instance Method Details

- (Object) authorize(msg, &block)



15
16
17
18
19
# File 'omf_common/lib/omf_common/auth/pdp/test_pdp.rb', line 15

def authorize(msg, &block)
  puts "AUTH(#{msg.issuer})>>> #{msg}"
  sender = msg.src.address
  msg
end