Class: OmfCommon::Auth::PDP::TestPDP
- Inherits:
-
Object
- Object
- OmfCommon::Auth::PDP::TestPDP
- Defined in:
- lib/omf_common/auth/pdp/test_pdp.rb
Instance Method Summary collapse
- #authorize(msg, &block) ⇒ Object
-
#initialize(opts = {}) ⇒ TestPDP
constructor
A new instance of TestPDP.
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 (msg, &block) puts "AUTH(#{msg.issuer})>>> #{msg}" sender = msg.src.address msg end |