module Riddl::Roles::OAuth::OnBehalf

Constants

WANTED

Public Class Methods

before(fullpath,method,parameters,headers,options) click to toggle source
# File lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Fon_behalf.rb, line 10
def self::before(fullpath,method,parameters,headers,options)
  unless WANTED.all?{ |e| options.has_key?(e) }
    raise ArgumentError, "Riddl::Options have to include: #{WANTED.join(', ')}"
  end
  Riddl::Roles::OAuth::sign(fullpath,method,parameters,headers,options)
end