#master - raise exception when authentication failed