TdxGoogleAPIOAuth2AuthorizationAgent.RedirectUriPort Property
Specifies the port for a local HTTP server that authenticates and authorizes a Google data provider.
Declaration
property RedirectUriPort: Word read; write; default 0;
Property Value
Type | Default | Description |
---|---|---|
Word | 0 | A local HTTP server port. |
Remarks
The Google Authorization Agent component automatically generates a random port number for authentication and authorization via the loopback IP address. If the generated port number is already used by another application or service, the component throws the EIdSockedError exception when a user attempts to authorize in a Google account.
Use the RedirectUriPort property to manually specify a free port if the randomly generated port number is already in use on the client machine. Alternatively, you can append a colon followed by a port number to the RedirectUri property value:
Note
The Google Authorization Agent component generates a random port number if the RedirectUriPort property is set to 0. The RedirectUriPort property’s setter updates the RedirectUri
property value with a new port number.
The RedirectUriPort property’s default value is 0.