Sha256: 38b34cf95372ccb111e00b15fbef8c2bfcb4aff0c3833fad44c3f2e9f72136c3

Contents?: true

Size: 530 Bytes

Versions: 41

Compression:

Stored size: 530 Bytes

Contents

module Doorkeeper
  module Request
    class AuthorizationCode
      def self.build(server)
        new(server.grant, server.client, server)
      end

      attr_accessor :grant, :client, :server

      def initialize(grant, client, server)
        @grant, @client, @server = grant, client, server
      end

      def request
        @request ||= OAuth::AuthorizationCodeRequest.new(Doorkeeper.configuration, grant, client, server.parameters)
      end

      def authorize
        request.authorize
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
doorkeeper-1.3.1 lib/doorkeeper/request/authorization_code.rb
doorkeeper-1.3.0 lib/doorkeeper/request/authorization_code.rb
doorkeeper-1.2.0 lib/doorkeeper/request/authorization_code.rb
doorkeeper-1.1.0 lib/doorkeeper/request/authorization_code.rb
doorkeeper-1.0.0 lib/doorkeeper/request/authorization_code.rb
doorkeeper-1.0.0.rc2 lib/doorkeeper/request/authorization_code.rb
doorkeeper-1.0.0.rc1 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.7.4 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.7.3 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.7.2 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.7.1 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.7.0 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.6.7 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.6.6 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.6.5 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.6.4 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.6.3 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.6.2 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.6.1 lib/doorkeeper/request/authorization_code.rb
doorkeeper-0.6.0 lib/doorkeeper/request/authorization_code.rb