Sha256: 362268a569da36b106715bb1e03dbd2b8f63b8595ed7d3c460df5628485e8720

Contents?: true

Size: 590 Bytes

Versions: 12

Compression:

Stored size: 590 Bytes

Contents

module Rack
  module OAuth2
    module Server
      class Token
        class RefreshToken < Abstract::Handler

          def call(env)
            @request  = Request.new(env)
            @response = Response.new(request)
            super
          end

          class Request < Token::Request
            attr_required :refresh_token

            def initialize(env)
              super
              @grant_type    = :refresh_token
              @refresh_token = params['refresh_token']
              attr_missing!
            end
          end

        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rack-oauth2-0.5.1 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.5.0 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.4.6 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.4.5 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.4.4 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.4.3 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.4.2 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.4.1 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.4.0 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.3.1 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.3.0 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-0.3.0.alpha lib/rack/oauth2/server/token/refresh_token.rb