Some swift auth fixes

- talk over https
- and fix 2 issues with dispersion check