Class: OmniAuth::Strategies::BisXmlDecryptLogonId

Inherits:
ERB
  • Object
show all
Defined in:
lib/omniauth-nwbbis.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logon_id, options = {}) ⇒ BisXmlDecryptLogonId

Returns a new instance of BisXmlDecryptLogonId.



244
245
246
247
248
249
# File 'lib/omniauth-nwbbis.rb', line 244

def initialize(logon_id, options = {})
    @logon_id = logon_id
    @template = options.fetch(:template, self.class.template)

    super(@template)
end

Class Method Details

.templateObject



235
236
237
238
239
240
241
242
# File 'lib/omniauth-nwbbis.rb', line 235

def self.template
    %{
        <EntschluesselLogonID xmlns="http://tempuri.org/">
          <sender>bis</sender>
          <data><%= @logon_id %></data>
        </EntschluesselLogonID>
    }
end

Instance Method Details

#resultObject



251
252
253
# File 'lib/omniauth-nwbbis.rb', line 251

def result
    super(binding)
end