Sha256: 005a0d0954da2cc43f6e28a03e92396b5036f606d6c25d13d4b3dfda6df0d0ba
Contents?: true
Size: 469 Bytes
Versions: 23
Compression:
Stored size: 469 Bytes
Contents
require 'rest-core/middleware' # http://tools.ietf.org/html/rfc6749 class RestCore::Oauth2Query def self.members; [:access_token]; end include RestCore::Middleware def call env, &k local = if access_token(env) env.merge(REQUEST_QUERY => {'access_token' => access_token(env)}. merge(env[REQUEST_QUERY])) else env end app.call(local, &k) end end
Version data entries
23 entries across 23 versions & 1 rubygems