Class: SSOlo::Templates::Entry
- Inherits:
-
Object
- Object
- SSOlo::Templates::Entry
- Defined in:
- lib/ssolo/templates/entry.rb
Overview
Returns HTML for a form that contains an in-progress SAML request, with a field to specify a custom Name ID/email address.
Class Method Summary collapse
Class Method Details
.call(request) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/ssolo/templates/entry.rb', line 8 def self.call(request) " <!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n </head>\n <body>\n <form method=\"get\" action=\"\#{request.base_url}/saml\">\n <input type=\"hidden\" name=\"SAMLRequest\" value=\"\#{request.params['SAMLRequest']}\">\n <input type=\"hidden\" name=\"RelayState\" value=\"\#{request.params['RelayState']}\">\n\n <label for=\"name_id\">Email / Name ID</label>\n <input type=\"text\" name=\"name_id\" id=\"name_id\">\n\n <input type=\"submit\" value=\"Submit\">\n </form>\n </body>\n </html>\n HTML\nend\n" |