I have done the following exactly as below without configuring any other thing.
- Downloaded a fresh copy of wso2 emm 2.0.1 from wso2.com/products/enterprise-mobility-manager/
- Unzipped it in C: drive.
- Changed the email settings with my organisation settings.
- Downloaded mysql and mysqlconnector.
- Closed skype for safer side, Started the mysqld server and created regdb user, with the script which is in [EMM_HOME]/dbscripts/mysql.sql
- Downloaded the Android source code from Git https://github.com/wso2/product-emm/tree/master/modules/mobile-agents/android/client , I have imported client folder alone in my Android studio. Not sure if I also need any other folders. Also changed some code as it was showing me errors as startServiceAsUser() -> changed to startService();
- Changed the API_SERVER_PORT = "9763" from the Constants.java file.
- Started the carbon server from bin -> wso2server.bat using cmd.
- Logged in to carbon and the to emm console and added a policy a role and a user, got the mail with user name password.
- Run the android code on S3, I am able login to wso2 emm server in my same network machine and the user is authenticated from below urls from the log:. From my local machinehttp://172.24.145.14:9763/dynamic-client-web/register & also this from my local machinehttp://172.24.145.14:9763/oauth2/token
- Now in the getLicenseFromServer() method in the AuthenticationActivity class I am getting a 302 response code, when accessing this url http://172.24.145.14:9763/api/device-mgt/android/v1.0/configuration/license
I want to run the server and run the app in my mobile for POC purposes. I do not want any certificates or to access it from HTTPS. What exactly I am doing wrong ?
Also if I am hittinghttp://172.24.145.14:9763/api/device-mgt/android/v1.0/configuration/license link from my chrome it is automatically redirecting to the login page of carbon.