Home Connect auth issues

Hi I’m having auth issues with the Home Connect HACS integration and hoping someone can help I’ve tried my IP address and port in http and https, I’ve tried my duckdns address, again both http and https (I am set to run securely on https) and I’ve tried my cloud address. I’ve also tried switching which address I am logged in via to match the redirect, in case that made a difference. I had managed to get to log into home connect but then I got a 500 server error, but now I am just getting not authorised errors.
Any clues?

Thanks in advance

Mark