Make basicauth AMD compatible.