Class: SpRailsSaml::Authnrequest

Inherits:
Object
  • Object
show all
Includes:
ActionDispatch::Routing, ActionView::Helpers
Defined in:
lib/sp-rails-saml/authnrequest.rb

Overview

SAML2 Authentication.

Instance Method Summary collapse

Constructor Details

#initialize(saml_setting) ⇒ Authnrequest

Returns a new instance of Authnrequest.



13
14
15
# File 'lib/sp-rails-saml/authnrequest.rb', line 13

def initialize(saml_setting)
  @saml_setting = saml_setting
end

Instance Method Details

#to_urlObject



17
18
19
20
# File 'lib/sp-rails-saml/authnrequest.rb', line 17

def to_url
  request = OneLogin::RubySaml::Authrequest.new
  request.create(ruby_saml_settings)
end