Sha256: 8b71669233a423ec185fbaec31b1125b42a9515dcff1da3e432512c2d6368723

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

module Rack
  class Saml
    require 'rack/saml/misc/onelogin_setting'

    class OneloginResponse < AbstractResponse
      include OneloginSetting
      #extend Forwardable

      def initialize(request, saml_config, metadata)
        super(request, saml_config, metadata)
        @response = Onelogin::Saml::Response.new(@request.params['SAMLResponse'])
        @response.settings = saml_settings
      end

      def is_valid?
        @response.is_valid?
      end

      def attributes
        @response.attributes
      end

      #def_delegator :@response, :is_valid?, :attributes
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-saml-0.0.1 lib/rack/saml/response/onelogin_response.rb