class OmfCommon::Auth::PDP::TestPDP

Public Class Methods

new(opts = {}) click to toggle source
# File lib/omf_common/auth/pdp/test_pdp.rb, line 11
def initialize(opts = {})
  puts "AUTH INIT>>> #{opts}"
end

Public Instance Methods

authorize(msg, &block) click to toggle source
# 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