Sha256: 4f6d2623979ec8a64ae2f7a69c79ecc2b789eda7dea284688b1f80add7f08aea

Contents?: true

Size: 622 Bytes

Versions: 39

Compression:

Stored size: 622 Bytes

Contents

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

          class Request < Token::Request
            attr_required :username, :password

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
rack-oauth2-2.2.1 lib/rack/oauth2/server/token/password.rb
rack-oauth2-2.2.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-2.1.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-2.0.1 lib/rack/oauth2/server/token/password.rb
rack-oauth2-2.0.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-2.0.0.rc3 lib/rack/oauth2/server/token/password.rb
rack-oauth2-2.0.0.rc2 lib/rack/oauth2/server/token/password.rb
rack-oauth2-2.0.0.rc1 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.21.3 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.21.2 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.21.1 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.21.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.20.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.19.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.18.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.17.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.16.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.15.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.14.0 lib/rack/oauth2/server/token/password.rb
rack-oauth2-1.13.0 lib/rack/oauth2/server/token/password.rb