Sha256: d04b14d2b06d70b12651ddc3e5dfdc8bd6c4ee5837ae07eb18bda15b1d47840a
Contents?: true
Size: 747 Bytes
Versions: 3
Compression:
Stored size: 747 Bytes
Contents
module SamlRequestMacros def make_saml_request(requested_saml_acs_url = "https://foo.example.com/saml/consume") auth_request = OneLogin::RubySaml::Authrequest.new auth_url = auth_request.create(saml_settings(requested_saml_acs_url)) CGI.unescape(auth_url.split("=").last) end def saml_settings(saml_acs_url = "https://foo.example.com/saml/consume") settings = OneLogin::RubySaml::Settings.new settings.assertion_consumer_service_url = saml_acs_url settings.issuer = "http://example.com/issuer" settings.idp_sso_target_url = "http://idp.com/saml/idp" settings.idp_cert_fingerprint = SamlIdp::Default::FINGERPRINT settings.name_identifier_format = SamlIdp::Default::NAME_ID_FORMAT settings end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
saml_idp-0.2.1 | spec/support/saml_request_macros.rb |
saml_idp-0.2.0 | spec/support/saml_request_macros.rb |
saml_idp-0.2.0.pre | spec/support/saml_request_macros.rb |