def validate
      raise NotAuthenticatedError.new unless authenticated?
      raise ValidatorNotDefinedError.new unless config[:auth_service][:validator]

      auth_with_bootstrap = auth_response.merge({ :auth_service  => config[:auth_service] })

      response = auth_service.request config[:auth_service][:validator].to_sym, :session_data => auth_with_bootstrap
      response.status == 200 || response.status == 203
    end
def validate
      raise NotAuthenticatedError.new unless authenticated?
      raise ValidatorNotDefinedError.new unless config[:auth_service][:validator]

      auth_with_bootstrap = auth_response.merge({ :auth_service  => config[:auth_service] })

      response = auth_service.request config[:auth_service][:validator].to_sym, :session_data => auth_with_bootstrap
      response.status == 200 || response.status == 203
    end
Returns true if the session is still valid in the underlying provider. This method calls
 the <tt>validator</tt> request class declared under <tt>auth_service</tt> in the
 configuration. The validator can be any request class as long as:

 * The request class exists!
 * Is not an anonymous request. Otherwise it will always return true.
 * Does not require any parameters
 * It returns an HTTP status 200 or 203 to indicate auth info validity.
 * It returns any other HTTP status to indicate that the auth info is invalid.

 See Session::new for an example on how to specify the request class to use for session validation.

 Note that this method requires the session to be previously authenticated otherwise a
 NotAuthenticatedError will be raised. If you just want to check if the session was previously
 authenticated, use Session#authenticated? instead.