Sha256: 1f731927a750dc23c94bc20315a1176550382e5141fc6de172110231d223fde7

Contents?: true

Size: 518 Bytes

Versions: 32

Compression:

Stored size: 518 Bytes

Contents

# encoding: UTF-8

module Vines
  class Stream
    class Http
      class Auth < Client::Auth
        def initialize(stream, success=BindRestart)
          super
        end

        def node(node)
          unless stream.valid_session?(node['sid']) && body?(node) && node['rid']
            raise StreamErrors::NotAuthorized
          end
          nodes = stream.parse_body(node)
          raise StreamErrors::NotAuthorized unless nodes.size == 1
          super(nodes.first)
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 4 rubygems

Version Path
diaspora-vines-0.2.0.develop.4 lib/vines/stream/http/auth.rb
diaspora-vines-0.2.0.develop.3 lib/vines/stream/http/auth.rb
diaspora-vines-0.2.0.develop.2 lib/vines/stream/http/auth.rb
diaspora-vines-0.2.0.develop.1 lib/vines/stream/http/auth.rb
diaspora-vines-0.1.28 lib/vines/stream/http/auth.rb
lygneo-vines-0.1.5 lib/vines/stream/http/auth.rb
lygneo-vines-0.1.1 lib/vines/stream/http/auth.rb
diaspora-vines-0.1.27 lib/vines/stream/http/auth.rb
diaspora-vines-0.1.26 lib/vines/stream/http/auth.rb
diaspora-vines-0.1.25 lib/vines/stream/http/auth.rb
diaspora-vines-0.1.24 lib/vines/stream/http/auth.rb
vines-0.4.10 lib/vines/stream/http/auth.rb
diaspora-vines-0.1.22 lib/vines/stream/http/auth.rb
diaspora-vines-0.1.21 lib/vines/stream/http/auth.rb
diaspora-vines-0.1.2 lib/vines/stream/http/auth.rb
vines-0.4.9 lib/vines/stream/http/auth.rb
vines-0.4.8 lib/vines/stream/http/auth.rb
vines-0.4.7 lib/vines/stream/http/auth.rb
vines-0.4.6 lib/vines/stream/http/auth.rb
vinesmod-0.4.5.2 lib/vines/stream/http/auth.rb