Sha256: 2fdf0287e328ed2f377725f60cf38e059326f9804bbb8c8445dad2f35e845eb8
Contents?: true
Size: 1003 Bytes
Versions: 5
Compression:
Stored size: 1003 Bytes
Contents
module Saml module Kit class AuthenticationRequest < Document include Requestable def initialize(xml, configuration: Saml::Kit.configuration) super(xml, name: "AuthnRequest", configuration: configuration) end def assertion_consumer_service_url to_h[name]['AssertionConsumerServiceURL'] end def name_id_format to_h[name]['NameIDPolicy']['Format'] end def response_for(user, binding:, relay_state: nil) response_binding = provider.assertion_consumer_service_for(binding: binding) builder = Saml::Kit::Response.builder(user, self) do |x| x.embed_signature = provider.want_assertions_signed yield x if block_given? end response_binding.serialize(builder, relay_state: relay_state) end Builder = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Saml::Kit::AuthenticationRequest::Builder', 'Saml::Kit::Builders::AuthenticationRequest') end end end
Version data entries
5 entries across 5 versions & 1 rubygems