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

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

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ TestPDP

Returns a new instance of TestPDP.



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

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

Instance Method Details

#authorize(msg, &block) ⇒ Object



15
16
17
18
19
# File '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