Sha256: 24344e674388d8fa8d33e7226111ce3753f084f68997e3b681405ecc85268ab1

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

module Saml
  class Response
    include Saml::ComplexTypes::StatusResponseType

    tag "Response"
    has_one :assertion, Saml::Assertion, :tag => "Assertion"
    has_many :assertions, Saml::Assertion, :tag => "Assertion"

    def authn_failed?
      !success? && status.status_code.authn_failed?
    end

    def request_denied?
      !success? && status.status_code.request_denied?
    end

    def no_authn_context?
      !success? && status.status_code.no_authn_context?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
libsaml-2.0.6 lib/saml/response.rb
libsaml-2.0.5 lib/saml/response.rb