WSO2IoT 3.1.0 — Standalone Server SSO configuration
WSO2 IoT server consists following user interfaces.
- Devicemgt — Manages devices, policies, groups, all the device management capabilities are available here.
- Publisher — This helps to publish the mobile applications to the store.
- Store — This is the front end for the mobile applications store. Used for subscribing/installing/uninstalling applications from the devices.
- API-Store — This is the front for APIs, used for subscribing/unsubscribing to apis.
All the above are written in java-script running in server. These java-script are named as .jag files.
Configuration
As shown in the above picture, when SSO is configured all of the above web applications should redirect to the “authenticationendpoint”.
But out of the box IoT server — “devicemgt” application is configured to redirect to it’s own login page (/devicemgt/login) for SSO. Therefore to redirect it to “authenticationendpoint”, please comment the following line from <WSO2IoT-Home>/conf/identity/application-authentication.xml and restart the server.
<AuthenticationEndpointURL>/devicemgt/login</AuthenticationEndpointURL>
Then when you try to login “https://localhost:9443/devicemgt/” you will be redirected to following UI. Therefore customizing this UI will help to achieve your requirement.
To customize the above web application, please find the “basicauth.jsp” file in <WSO2IoT-Home>/repository/deployment/server/webapps/authenticationendpoint/
Please note: Following is optional, run only if you need to change the URL to IP
Out of the box IoT server works with “localhost” url. If you need to change it to a IP, please run the “change-ip.sh” script in <WSO2IoT-Home>/scripts/
