module ActionController::HttpAuthentication::Token
def raw_params(auth)
pairs by the standardized :, ;, or \t
This method takes an authorization body and splits up the key-value
def raw_params(auth) _raw_params = auth.sub(TOKEN_REGEX, "").split(WHITESPACED_AUTHN_PAIR_DELIMITERS) _raw_params.reject!(&:empty?) if !_raw_params.first&.start_with?(TOKEN_KEY) _raw_params[0] = "#{TOKEN_KEY}#{_raw_params.first}" end _raw_params end