Sha256: 7f3a6c600f96f1e35a87e766322c0f1c9cd9e35cb17e581234ca031a93cb1ba2
Contents?: true
Size: 894 Bytes
Versions: 14
Compression:
Stored size: 894 Bytes
Contents
module Saml module Elements class SubjectConfirmation include Saml::Base class Methods BEARER = "urn:oasis:names:tc:SAML:2.0:cm:bearer" end tag "SubjectConfirmation" register_namespace 'saml', Saml::SAML_NAMESPACE namespace 'saml' attribute :_method, String, tag: 'Method' has_one :subject_confirmation_data, Saml::Elements::SubjectConfirmationData validates :_method, presence: true def initialize(*args) options = args.extract_options! @subject_confirmation_data = Saml::Elements::SubjectConfirmationData.new(recipient: options.delete(:recipient), in_response_to: options.delete(:in_response_to)) super(*(args << options)) @_method ||= Methods::BEARER end end end end
Version data entries
14 entries across 14 versions & 1 rubygems