Sha256: aed6dc5661ffd7cf237e5494f43422dc77415e309b53144b835949db0bc989ee

Contents?: true

Size: 588 Bytes

Versions: 69

Compression:

Stored size: 588 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

69 entries across 69 versions & 2 rubygems

Version Path
rack-oauth2-1.5.1 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.5.0 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.4.0 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.3.1 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.3.0 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.2.3 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.2.2 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.2.1 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.2.0 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.1.1 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.1.0 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.0.10 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.0.9 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.0.8 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-revibe-1.0.7 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.0.7 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.0.6 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.0.5 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.0.4 lib/rack/oauth2/server/token/refresh_token.rb
rack-oauth2-1.0.3 lib/rack/oauth2/server/token/refresh_token.rb