Sha256: a84525c99cffd82f7647e7a3a6ae2001b2afb772271a3f6ad81f035e374fc95a

Contents?: true

Size: 731 Bytes

Versions: 39

Compression:

Stored size: 731 Bytes

Contents

module Rack
  module OAuth2
    module Server
      class Token
        class AuthorizationCode < Abstract::Handler
          def _call(env)
            @request  = Request.new(env)
            @response = Response.new(request)
            super
          end

          class Request < Token::Request
            include Server::Extension::PKCE::TokenRequest

            attr_required :code
            attr_optional :redirect_uri

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
rack-oauth2-1.13.0.beta lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.12.0 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.11.0 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.10.1 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.10.0 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.9.3 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.9.2 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.9.1 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.9.0 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.8.2 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.8.1 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.8.0 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.7.1 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.7.0 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.6.4 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.6.3 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.6.2 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.6.1 lib/rack/oauth2/server/token/authorization_code.rb
rack-oauth2-1.6.0 lib/rack/oauth2/server/token/authorization_code.rb