Myaccount and Console apps in WSO2IS-5.11.0 are not working when the server started with port offset

拜拜、爱过 提交于 2021-02-04 07:47:10

问题


Changing the port by changing the offset in the deployment.toml or using -DportOffset doesn't get applied to the Console and the My Account applications.

How to reproduce:

  1. Change the offset by adding the following config to the deployment.toml
[server]
offset=2
  1. Start the server
  2. Access the console app from https://localhost:9445/console
  3. Access the my account app from https://localhost:9445/myaccount

Following error is displayed.

Observed, that the reason is that the callback URL is not changed when the hostname or port is changed. Even changing the URLs manually from the management console is not allowed.

What is the recommendation to get Myaccount and Console apps working when hostname or port is changed?


回答1:


An approach is to manually change the callback URL of the Myaccount and Console apps accordingly when a port or hostname change is done in the server, by removing these applications from the system applications list.

Steps:

  1. Change hostname or port of the server
  2. Remove Myaccount and Console apps from read only system apps by adding the following to the deployment.toml
     [system_applications]
     read_only_apps = []
    
  3. Restart the server
  4. Update callback URL of the myaccount and console apps from the management console accordingly.
  5. Change the issuer URI of the Resident IDP accordingly.



回答2:


These applications can be hosted externally. In that case the callback URLs can have different hostnames and ports.

Thus, it is not good to change the callback URLs automatically. So, the manual option is Aysh pointed in the above comment is the recommended approach ATM.



来源:https://stackoverflow.com/questions/65353663/myaccount-and-console-apps-in-wso2is-5-11-0-are-not-working-when-the-server-star

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!