Sha256: 3855b8b33f6eb473615401ed812776e03691c6959f7a6e4a3b0937c77886eff9
Contents?: true
Size: 909 Bytes
Versions: 31
Compression:
Stored size: 909 Bytes
Contents
module Rack module OAuth2 module Server class Resource class MAC < Resource def _call(env) self.request = Request.new(env) super end private class Request < Resource::Request attr_reader :nonce, :ts, :ext, :signature def setup! auth_params = Rack::Auth::Digest::Params.parse(@auth_header.params).with_indifferent_access @access_token = auth_params[:id] @nonce = auth_params[:nonce] @ts = auth_params[:ts] @ext = auth_params[:ext] @signature = auth_params[:mac] self end def oauth2? @auth_header.provided? && @auth_header.scheme.to_s == 'mac' end end end end end end end require 'rack/oauth2/server/resource/mac/error'
Version data entries
31 entries across 31 versions & 1 rubygems