Class: SpRailsSaml::Authnrequest
- Inherits:
-
Object
- Object
- SpRailsSaml::Authnrequest
- Includes:
- ActionDispatch::Routing, ActionView::Helpers
- Defined in:
- lib/sp-rails-saml/authnrequest.rb
Overview
SAML2 Authentication.
Instance Method Summary collapse
-
#initialize(saml_setting) ⇒ Authnrequest
constructor
A new instance of Authnrequest.
- #to_url ⇒ Object
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_url ⇒ Object
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 |