Module: SAML::Bindings
- Defined in:
- lib/saml/bindings.rb,
lib/saml/bindings/http_post.rb,
lib/saml/bindings/http_redirect.rb
Defined Under Namespace
Classes: HTTPPost, HTTPRedirect
Class Method Summary collapse
Class Method Details
.from_endpoint(endpoint) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/saml/bindings.rb', line 4 def self.from_endpoint(endpoint) klass = case endpoint.binding when "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Bindings::HTTPPost when "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Bindings::HTTPRedirect else nil end klass.new end |