Changing oauth2office2 Port

Status
Not open for further replies.

noneya

Premier Customer
Basic Certified
Joined
Jun 16, 2023
Messages
21
Reaction score
1
Hello, I was successfully able to change the external ports used for most of the https applications surround my 3cx env, however I am unable to get the oauth2office2 redirect URI to correctly set.

Current setup Internet -> Firewall (NAT 5432 -> 443) -> 3CX
Changes made: Settings -> Parameters -> Search for FQDN and add port 5432 to the URI

Affected parameters:
  • WEB_ROOT_EXT_SEC
  • MYPHONE_LINK_EXT_SEC
  • REPORTER_LINK_EXT_SEC
  • PROVISIONING_LINK_EXT_SEC
  • MANAGEMENT_LINK_EXT_SEC
  • CALLUS_LINK_EXT_SEC
This is the error that I get:

1686923476906.png
AADSTS50011: The redirect URI 'https://my-pbx.3cx.us:443/oauth2office2' specified in the request does not match the redirect URIs configured for the application '8f28a897-0199-xxxxxxx'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.

Note that 3CX is sending a return URI using port 443 NOT 5432


Please advise on how to approach this.
 
Please note that you should not manually change your HTTPS ports after installing the system.

You can choose the HTTPS port during the installation only and advise taking a backup of the current system, redeploying to a new machine using the 3cx ISO since your system is installed on a Linux-based OS, and choosing the preferred HTTPS port during the configuration stage.
 
Last edited:
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet