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