lib/arachni/rpc/server/handler.rb
# Authenticates the client based on the token in the request.
#
# It will raise an exception if the token doesn't check-out.
Authenticates the client based on the token in the request.
It will raise an exception if the token doesn't check-out.
Authenticates the client based on the token in the request . It will raise an exception if the token doesn ' t check - out .
def authenticate!
        return if valid_token?( @request.token )
        msg = "Token missing or invalid while calling: #{@request.message}"
        @server.logger.error( 'Authenticator' ){
            msg + " [on behalf of #{peer_ip_address}]"
        }
        fail Exceptions::InvalidToken.new( msg )
    end
def authenticate! return if valid_token? ( @request . token ) msg = "Token missing or invalid while calling: #{@request.message}" @server . logger . error ( 'Authenticator' ) { msg + " [on behalf of #{peer_ip_address}]" } fail Exceptions :: InvalidToken . new ( msg ) end
Authenticates the client based on the token in the request.
Authenticates the client based on the token in the request .