Fixed authorisation issues

Authorisation calls now use https rather than http, huge thanks to
Nathan B for finding and fixing this issue!