Sha256: 989549446cf5a171d5705bd51ad487203c9ab0e8f2909726784b338a3916faaf

Contents?: true

Size: 583 Bytes

Versions: 88

Compression:

Stored size: 583 Bytes

Contents

module Rack
  module OAuth2
    class AccessToken
      class Authenticator
        def initialize(token)
          @token = token
        end

        # Callback called in HTTPClient (before sending a request)
        # request:: HTTP::Message
        def filter_request(request)
          @token.authenticate(request)
        end

        # Callback called in HTTPClient (after received a response)
        # response:: HTTP::Message
        # request::  HTTP::Message
        def filter_response(response, request)
          # nothing to do
        end
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 2 rubygems

Version Path
rack-oauth2-1.21.3 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.21.2 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.21.1 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.21.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.20.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.19.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.18.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.17.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.16.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.15.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.14.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.13.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.13.0.beta lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.12.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.11.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.10.1 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.10.0 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.9.3 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.9.2 lib/rack/oauth2/access_token/authenticator.rb
rack-oauth2-1.9.1 lib/rack/oauth2/access_token/authenticator.rb