Encapsulate authentication