[gaia] add support for authentication(closes #14605)