I am trying to install apps using wso2 app manager, but its not actually getting installed on my device. I am attaching the log below
You can install apps on your device with APP Manager(APPM) and Enterprise Mobility Manager(EMM)combination. Follow below steps to integrate those two products and install apps on your device through app manager. These steps were extracted from here
There are two separate cases for APPM and EMM integration
APPM and EMM on a single JVM. ex : EMM standalone pack.
APPM and EMM on separate JVMs. ex : clustered scenario
For the first case, EMM standalone vanilla pack should work without changing any configuration.
For the second case, There are some configurations which should be done. Follow the below steps to configure APPM and EMM on a separate JVMs.
If you run APPM and EMM on same machine change the port offset of one pack. Let's change the port offset of APPM pack.
i) Change the port offset of carbon.xml to 10 which is in /repository/conf directory.
ii) Since APPM default authentication mechanism is SAML SSO change the port of IdentityProviderUrl also in app-manager.xml
<!-- URL of the IDP use for SSO -->
<IdentityProviderUrl>https://localhost:9453/samlsso</IdentityProviderUrl>
<Configurators>
<Configurator>
<name>wso2is</name>
<version>5.0.0</version>
<providerClass>org.wso2.carbon.appmgt.impl.idp.sso.configurator.IS500SAMLSSOConfigurator</providerClass>
<parameters>
<providerURL>https://localhost:9453</providerURL>
<username>admin</username>
<password>admin</password>
</parameters>
</Configurator>
</Configurators>
</SSOConfiguration>
iii) Change the port offset to 9453 for all the ports found in sso-idp-config.xml which is located in /repository/conf/identity directory.
Now setting port offset is done.
Now create a mobile app by going to App Manager publisher. publish it and it will be available in APPM store.
Create an OAuth application in EMM by following article How to map existing oauth apps in wso2.
Open the app-manager.xml in APPM and find for a configuration called MobileAppsConfiguration. change ActiveMDM property to WSO2MDM.
ex: WSO2MDM
Change the MDM properties named as WSO2MDM as follows. Change the port to EMM port of ServerURL and TokenApiURL. Here client key and client secret is which returned from EMM when OAuth application is created.
<MDM name="WSO2MDM" bundle="org.wso2.carbon.appmgt.mdm.restconnector">
<Property name="ImageURL">/store/extensions/assets/mobileapp/resources/models/%s.png</Property>
<Property name="ServerURL">https://localhost:9453/mdm-admin</Property>
<Property name="TokenApiURL">https://localhost:9453/oauth2/token</Property>
<Property name="ClientKey">veQtMV1aH1iX0AFWQckJLiooTxUa</Property>
<Property name="ClientSecret">cFGPUbV11yf9WgsL18d1Oga6JR0a</Property>
<Property name="AuthUser">admin</Property>
<Property name="AuthPass">admin</Property>
</MDM>
Enroll your device in MDM.
Now you can install apps using app manager store to devices enrolled in EMM.
Related
I'm using WSO2 Intergration 6.6.0 , my attention : I want multiple projects can use/reuse Endpoint in registry resource project , is it possible ?
I created a registry resource project with 1 HTTP Endpoint , created a composite application archive including registry resource project and upload it to ESB server successfully.
But I don't know how to use/import this endpoint in a project.
Please help.
If your endpoint exists in a registry you can use it like
<call>
<endpoint key="gov:/endpoints/endpoint.xml"/>
</call>
In this example I used endpoint stored in governance registry in endpoints directory named endpoint.xml.
I am trying to browse local H2 db for WSO2 api manager. I made the change in the WSO2_HOME/repository/conf/carbon.xml. I added below configuration.
<H2DatabaseConfiguration>
<property name="web"/>
<property name="webPort">8082</property>
<property name="webAllowOthers"/>
</H2DatabaseConfiguration>
After I restart WSO2 api server the change in the file WSO2_HOME/repository/conf/carbon.xml gets lost. As a result I am not able to connect to H2 db. I am working on version WSO2 3.0.0.
In WSO2 APIM 3.0.0, the configuration model is different. You need to add the following to ../repository/conf/deployment.toml
[database_configuration]
enable_h2_console = true
Ref: https://apim.docs.wso2.com/en/latest/Reference/ConfigCatalog/#enabling-the-h2-database-console
In addition to Bee's answer it is important to mention that we also need to provide proper jdbc URL for that
copy the location of the <API_Manager_home>/repository/database/[databaseName] (here do not copy .mv part i.e extension part)
for me the JDBC URL was jdbc:h2:/Users/akshay/code/w/98/98_base_1/repository/database/WSO2AM_DB
default username and password is wso2carbon/wso2carbon
After I installed WSO2 EEM (Enterprise Mobility Manger), I could add device to device management. But I couldn't open the Publisher/Store, all the page will jump to the https://localhost:9443/publisher/acs or https://localhost:9443/samlsso. Should I to install the WSO2 Identity Server or config the SSO for it?
You don't need to install any identity components or configure sso explicitely. They are already there in vanilla EMM. When you go to https://localhost:9443/publisher, it should be redirected to login page.
https://localhost:9443/authenticationendpoint/login.do
Then when you enter credentials it should redirect you in below urls.
1) https://localhost:9443/publisher/acs
2) https://localhost:9443/publisher
If this doesn't work for you, there should be exceptions in log file. Please check that.
There was a missing part in EMM documentation in the SSO configuration section[1]. Hope you are trying out this VM. Please follow the steps which are given in here in order to get publisher and store working properly.
The reason which you encountered becuase of app-manager.xml file that is in the /repository/conf directory didn't properly configure.
<SSOConfiguration>
<!-- URL of the IDP use for SSO -->
<IdentityProviderUrl>https://<EMM_HOST>:<EMM_HTTPS_PORT>/samlsso</IdentityProviderUrl>
<Configurators>
<Configurator>
<name>wso2is</name>
<version>5.0.0</version>
<providerClass>org.wso2.carbon.appmgt.impl.idp.sso.configurator.IS500SAMLSSOConfigurator</providerClass>
<parameters>
<providerURL>https://<EMM_HOST>:<EMM_HTTPS_PORT></providerURL>
<username>admin</username>
<password>admin</password>
</parameters>
</Configurator>
</Configurators>
</SSOConfiguration>
1.https://docs.wso2.com/display/EMM201/General+Server+Configurations
I am running only WSO2 APP Manager and published an Android and iOS mobile apps, I don't want to use MDM and I want to download and install apps directly on devices through WSO2 app manager's store without MDM/EMM integration.
But when I try to tap the install button, it's showing that Select your device window with "Sorry you don't have devices to install this app" message
Please check my few configurations of app-manager.xml,
<Config name="IsCatalog">false</Config>
<!-- Enables app to download direcly to the mobile device from the App Manager without MDM -->
<Config name="EnableDirectDownload">true</Config>
<Config name="EnableMDMOperations">false</Config>
<Config name="ActiveMDM">WSO2EMM</Config>
<Config name="EnableSelfUnsubscription">true</Config>
<Config name="EnableSubscriptionFromDevices">true</Config>
<Config name="EnableSampleDevices">false</Config>
<Config name="AppDownloadURLHost">%https%</Config>
<Config name="IosPlistPath">publisher/api/mobileapp/getplist</Config>
Kindly help me to setup a private mobile app store by opening the wso2 store and install apps on devices without WSO2-MDM.
Change the value of EnableSubscriptionFromDevices to false.Only you need to EnableDirectDownload . check https://jenananthan.wordpress.com/2015/11/20/how-to-use-mobile-store-in-wso2-appmanager-without-mdm/
This seems to a bug https://wso2.org/jira/browse/APPM-1580.
As the woraround update the line[1] in the file /repository/deployment/server/jaggeryapps/store/extensions/assets/mobileapp/modules/mod-ent-install.js
as follow
var location = serverAddress + "/store/api/mobileapp/getfile/" +asset.attributes.overview_url;
1.https://github.com/wso2/carbon-appmgt/blob/master/features/org.wso2.carbon.appmgt.store.feature/src/main/resources/store/extensions/assets/mobileapp/modules/mod-ent-install.js#L140
I made the configurations as per the Documentation. But as I try to subscribe the app from the android mobile,I get the error as ERROR - MDMOperationsImpl Cannot connect to Token API Endpoint
ERROR - MDMOperationsImpl No OK response received form the API. Is there any other configurations to be done to make this work.
Can you explain the scenario you are trying to perform and the EMM version that you use.
EMM 2.0.0 now has in built AppM features which allow EMM to be used without integrating with AppM, in case publishing of only mobile applications is required. If you need to publish both web and mobile applications you will have to integrate AppM with EMM.
In the document you have refered above , section [1] applies to EMM 2.0.0 and above and section [2] applies to versions below 2.0.0
From the error you have mentioned, the issue seems to be related to the following property.
<Property name="TokenApiURL">https://localhost:9448/oauth2/token</Property>
Can you check whether this URL contains the correct host and port ( 9443 + port offset) of EMM .
[1] https://docs.wso2.com/display/APPM100/Integrating+a+Mobile+Device+Manager#IntegratingaMobileDeviceManager-IntegratingWSO2MDM
[2] https://docs.wso2.com/display/APPM100/Integrating+a+Mobile+Device+Manager#IntegratingaMobileDeviceManager-IntegratingWSO2EMM