Specify the Port Number with the Authorized Redirect URL
When configuring the authorized redirect URL, ensure that you specify the port number. For example:
https://host:443/icsapis/agent/oauth/callback
Not specifying the port number in the URL results in an error saying the application wasn't authorized for the redirect URL.