Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
749 views
in Technique[技术] by (71.8m points)

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

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.

enter image description here

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...