More bits from Authenticate upstream

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>