Sha256: 614141d9b40e4ca6a8b28354b4ed39ac0fa3b006e0759ae92361e406117fcb2e
Contents?: true
Size: 910 Bytes
Versions: 5
Compression:
Stored size: 910 Bytes
Contents
module Rack class Saml require 'rack/saml/misc/onelogin_setting' class OneloginResponse < AbstractResponse include OneloginSetting #extend Forwardable def initialize(request, config, metadata) super(request, config, metadata) @response = OneLogin::RubySaml::Response.new(@request.params['SAMLResponse'], { :allowed_clock_drift => config['allowed_clock_drift'] }) @response.settings = saml_settings end def is_valid? begin if config['validation_error'] @response.validate! else @response.is_valid? end rescue OneLogin::RubySaml::ValidationError => e raise ValidationError.new(e.message) end end def attributes @response.attributes end #def_delegator :@response, :is_valid?, :attributes end end end
Version data entries
5 entries across 5 versions & 1 rubygems