Please help I installed wso2 APIM and now configuring. I created new REST API, and enter url "View in Dev Portal", redirected to localhost for me I changed hostname in deployment.toml (ip-addr). Why redirecting to localhost for me?
Asked
Active
Viewed 3,558 times
2 Answers
4
Uncomment and update this configuration.
#[apim.devportal]
#url = "https://localhost:${mgt.transport.https.port}/devportal"

Bee
- 12,251
- 11
- 46
- 73
-
3This works. Make sure to also uncomment `[apim.devportal]`, that was my first mistake – Jonathan Lin Nov 04 '20 at 07:44
-
How and where can i try this if i have a docker hub image (portainer) running already? (running but redirects me to localhost instead of staying on my local ip) Thanks – Mr Rebel Apr 06 '22 at 15:09
0
Login to the Carbon console (/carbon) and go to Service Providers and select Store/Dev Portal as Application, and expand Inbound Authentication Configuration and click on edit. It will open the inbound authentication configurations, edit the callback URL by replacing the localhost with your IP/hostname and update it.
Now, the dev-portal will not be redirected to the localhost.
The same applies for the publisher as well.

Prabakaran Thodithot Sembiyan
- 425
- 3
- 17
-
-
You have to first call https://localhost:9443/devportal URL so the entry appears. – pringi Feb 24 '22 at 17:01
-
@Prabakaran Answer is correct but miss some steps/flow for changing the callback URL that is confusing. here is the official troubleshooting of the error: https://apim.docs.wso2.com/en/latest/troubleshooting/troubleshooting-invalid-callback-error/ – Noor Khan Sep 26 '22 at 05:04