ãªãããµã³ãã«ã³ã¼ããè¦ã¤ãããªãã£ãã®ã§æ¸ãã¦ããã OAuth::Signitureã¨ããã¯ã©ã¹ãå©ç¨ã§ããã require 'oauth' def verify(request) consumer = OAuth::Consumer.new( 'SOME CONSUMER KEY', 'SOME CONSUMER SECRET', :site => 'http://api.example.com' ) headers = oauth_headers(request) signature = OAuth::Signature.build(request) do [headers['oauth_token_secret'], consumer.secret] end signature.verify end def oauth_headers headers = {} request.
{{#tags}}- {{label}}
{{/tags}}