module ShellyplugExporter::Gen::Helper::DigestAuthHelper

Defined in:

shellyplug_exporter/gen/helper/digest_auth_helper.cr

Constant Summary

PARAM_PATTERN = /(\w+)\s*=\s*(?:"([^"]*)"|([^,\s]+))/

Matches key="quoted value" and bare key=value pairs. A bare value must stop at the next comma or space, otherwise it swallows the parameters that follow it up to the next quote.

Class Method Summary

Class Method Detail

def self.digest_authorization(username : String, password : String, method : String, uri : String, www_auth : String) : String #

def self.ha1(username : String, realm : String, password : String) : String #

def self.parse_www_authenticate(header : String) : Hash(String, String) #