Discourse sso login redirect to http://localhost:3000 but ember-cli is runing at localhost:4200
I can’t find any config items.
Ember CLI is Required in Development Mode
To run Ember CLI in development mode, please do the following:
$ bin/ember-cli
Then visit the following URL to use Discourse:
http://localhost:4200
When I access http://localhost:4200 sso login success.
My understanding is: after authenticating users in my API, I return the return_sso_url, which in this case, is localhost:3000 - the port that discourse back-end is running on. Discourse back-end will then verify the params before getting me logged in discourse site. But then it returns 3000, not 4200, I have to manually click on the 4200 port and see my log in succeeded.
How to redirect users to the right port (discourse front-end) after verifying and logging them in?
My question is the same as Discourse sso login redirect to localhost:3000?, but since I don’t see any solution provided in that thread, I create a new one.