WSO2IoT 3.1.0 — Standalone Server SSO configuration

WSO2 IoT server consists following user interfaces.

  1. Devicemgt — Manages devices, policies, groups, all the device management capabilities are available here.
  2. Publisher — This helps to publish the mobile applications to the store.
  3. Store — This is the front end for the mobile applications store. Used for subscribing/installing/uninstalling applications from the devices.
  4. 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/

)
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade