The Method:
authenticator.GetAuthorizationCodeFromResponseUrl(redirectedUrl)
seems to parse a URL in the format:
https://my.hidrive.com/client/authorize?client_id=<client_id>&response_type=code&scope=admin,rw&code=a1BCD2EF
But the HiDrive Auth Server redirects to a URL in this format:
https://my.hidrive.com/client/authorize?client_id=<client_id>&response_type=code&scope=admin,rw#code/
a1BCD2EF
The Method:
authenticator.GetAuthorizationCodeFromResponseUrl(redirectedUrl)
seems to parse a URL in the format:
https://my.hidrive.com/client/authorize?client_id=<client_id>&response_type=code&scope=admin,rw&code=a1BCD2EF
But the HiDrive Auth Server redirects to a URL in this format:
https://my.hidrive.com/client/authorize?client_id=<client_id>&response_type=code&scope=admin,rw#code/
a1BCD2EF