WSO2-IS 5.11.0 - Edit Resident Identity Provider - wso2

I've changed the external port of WSO2-IS docker container from 9443 to 9444 and now I want to edit the Resident IDP port of all services but I can't.
Home -> Identity Providers -> Resident -> Inbound Authentication Configuration -> OAuth2/OpenID Connect Configuration
How can I edit these ports?

These endpoints are deployed inside the identity server. So the ports of these services will be changed if you offset the product's port. Adding the following config on deployment.toml file will change the WSO-IS port from 9443(default)to 9444.
[server]
offset = "1"
Refer: https://is.docs.wso2.com/en/latest/references/default-ports-of-wso2-products/#changing-the-offset-for-default-ports

Related

Disable Port 9443 from API Manager

I don't want to expose ports to users.
therefore I want to use "https://hostname/devportal", "https://hostname/publisher" rather than "https://hostname:9443/devportal", "https://hostname:9443/publisher". what should I do?
Please help me on this.
thanks. (API manager version: 4.0)
You need to add the following two properties to the deployment.toml if you want to start WSO2 server on port 443. (Tip: Start everything on a fresh pack, if you are trying following on a pack you already started you may have to change already registered callback URLs)
[transport.https.properties]
proxyPort = 443
port = 443
Also, for an application to bind to a port <1000(In this case 443) it needs root permissions. Hence you will have to start the server with a user who has root access.
Having said that, this is not a good deployment pattern as to expose your servers directly to external access. You should probably deploy an LB fronting the WSO2 servers and expose LB to the external users.

wso2 identity server 502 Bad Gateway

I have both my wso2 api manager and wso2 identity server running on the same instance .So I wanted my wso2 identity server to run at port 9444. I restarted my wso2 identity server after adding an offset of 1 in the carbon.xml.
I am getting a 502 Bad gateway error when I try to access my carbon console on 9444 port or any other port.
Are there other places where I need to change the port in the wso2 identity server. I have not changed the port settings in any other config files in the identity server .They are still showing the default port settings
You have to change only port offset in carbon.xml for WSO2 Identity Server. Have a look [1]
[1] https://docs.wso2.com/display/IS570/Default+Ports+of+WSO2+Products

Monitor remote WSO2 ESB using JMX

I want to monitor my ESB using Jconsole and JMX. I can connect to JMX server from the localhost but for connecting from remote machine to my esb I can establish the connection.
I use WSO2 ESB 4.6 and this my JMX configuration in carbon.xml file.
<JMX>
<!--The port RMI registry is exposed-->
<RMIRegistryPort>9999</RMIRegistryPort>
<!--The port RMI server should be exposed-->
<RMIServerPort>11111</RMIServerPort>
</JMX>
I found the problem, my rmi service was running on the host ip which was "127.0.0.1". To connect remotely to the jvm I had to bind the external ip to the hostname. To do this in unix systems use command hostname to get the name of the hostname. Then check the ip that is assigned to the hostname, to find out this use ping $(hostname) you will see that system is pinging the hosname's ip.
If your host ip was the default 127.0.0.1 and you wanted to change it, just edit the file /etc/hosts as superuser. After rebooting the rmi service, you can reach it from the remote machine.
Have a look at wso2carbon.log, you will find an entry like INFO {org.wso2.carbon.core.init.JMXServerManager} - JMX Service URL : service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi {org.wso2.carbon.core.init.JMXServerManager}
Use given URL to connect to the carbon server from a remote JMX client (JVisualVM for example) and don't forget to define security credentials (default Username / Password is admin / admin)

distributed deployment of wso2 api manager

I have followed the procedure for cluster deployment of wso2 API manager mentioned in
Referencing: http://docs.wso2.org/display/CLUSTER420/Clustering+API+Manager
But when i am running API manager with different profile wso2 API manager is started but is not accessible from the browser.However, if I change the port offset in carbon.xml to 0 and then r everything runs fine.Please tell me where is the issue.
When you change the port offset in carbon.xml, all default port values will be adjusted according to the port offset values.
If port offset is 2, the default HTTPS port 9443 will be changed 9445 in the run time. So you should access the management console via 9445 port.
Also see following wiki page about changing port offset for API Manager.
http://docs.wso2.org/display/AM160/Changing+the+Default+Ports+with+Offset
I hope this helps

Modify the ports for the exposed API in WSO2 API manager

I have to expose an API with the port other than 8280. i modified that in axis2.xml to port :8286 for HTTP Transportreceiver . Even after restarting the apigateway service , it is Refusing the connection on the particualar port.
Whats the process for modifying the ports.
You just have to change the Port offset of the API Manager Server. For that change offset configuration in <PRODUCT_HOME>/repository/conf/carbon.xml
<Offset>1</Offset>
This will change the NIO port which is 8280 by default to 8281 (8280 + 1).
After that make sure to edit all the hardcoded endpoints of default APIs available by following[1]
[1]http://docs.wso2.org/wiki/display/AM140/Configuring+Port+Offset