class SoarAm::AmApi

Public Instance Methods

authorize(service_identifier, resource_identifier, authentication_identifier, params) click to toggle source
# File lib/soar_am.rb, line 13
def authorize(service_identifier, resource_identifier, authentication_identifier, params)
  raise NotImplementedError.new "Not implemented"
end
authorized?(service_identifier, resource_identifier, request) click to toggle source
# File lib/soar_am.rb, line 6
def authorized?(service_identifier, resource_identifier, request)
  authentication = SoarAuthentication::Authentication.new(request)
  return false if not authentication.authenticated?

  authorize(service_identifier, resource_identifier, authentication.identifier, request.params)
end