adding authentication method for p4