ibm-mobilefirst

Cordova Android application getting “invalid_client” from MobileFirst 8.0 server

℡╲_俬逩灬. 提交于 2019-12-05 10:03:52
My Cordova IOS application integrated with IBM MobileFirst v8 works fine. However I face a weird issue with Android . The scenario is, The user has to login into security check to access the application. The challenge handler is called and credentials are submitted to (runtime/api/preauth/v1/preauthorize). I see in the logs security check is passed. I can see the next call to authorization end point (runtime/api/az/v1/authorization) However I see a difference between Android and IOS in the parameters passed to this end point. Android response_type=code scope= client_id= redirect_uri=http:/

HTTPS Connection to Worklight Server 6.2

岁酱吖の 提交于 2019-12-05 08:08:41
问题 I have developed a app using worklight 6.2 targeting android and iOS, which should connect to the worklight server when the app starts. I did the following procedure. Developed an app in WL6.2 Enabled the connectOnStartup parameter as true. Added android environment Run the app on worklight development server. Now opened the worklight console using https://ip:10080/worklightconsole , the app is working fine. Since i need https connection, i opened the worklight console as, https://ip:10043

IBM MobileFirst certificate pinning best practices

こ雲淡風輕ζ 提交于 2019-12-05 07:24:09
We are developing an IBM MobileFirst 7.1 Hybrid mobile application, and planning to use the certificate pinning feature. We can find information on IBM website about the SSL certificate pinning on IBM MobileFirst website : Here is a post in the IBM Knowledge Center and Here is a tutorial and its sample project/code All these resources are great, but I have some questions : Are there any advantages to use native certificate pinning implementation for Android and iOS when my application is a hybrid application ? If I use the hybrid environment code, will the SSL certificate be included in the

Do IBM Worklight 6.1.01 Objective C libraries support iOS 7 armv7s architecture?

旧城冷巷雨未停 提交于 2019-12-04 22:48:34
I am trying to use the Worklight 6.1.0.1 Objective C libraries from Objective C code to call the Worklight adapter. I continue to get compile errors when I reference the libraries in my code and add libWorklightStaticLibProject.a to my project and compile for my iOS 7.1 iPhone5 phone (armv7s architecture). The compiler error is: ld: file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/uname/dev/acct/cordova/platforms/ios/WorklightSDK/libWorklightStaticLibProject.a file '/Users/uname/dev/acct/cordova/platforms/ios/WorklightSDK/libWorklightStaticLibProject.a' for

Unknown realm [myRealm]. null returned for key: isUserAuthenticated

两盒软妹~` 提交于 2019-12-04 21:13:14
I am using IBM Worklight 6.1 and trying to check if the user is authenticated or not: I have a Realm defined in server/conf/authenticationConfig.xml <realm name="myRealm" loginModule="myLoginModule"> <className>com.worklight.integration.auth.AdapterAuthenticator</className> <parameter name="login-function" value="authentication.onAuthRequired" /> <parameter name="logout-function" value="authentication.onLogout" /> </realm> and its login module <loginModule name="myLoginModule"> <className>com.worklight.core.auth.ext.NonValidatingLoginModule</className> </loginModule> and after logging in, or

How do I use Dojo inside of Worklight correctly?

流过昼夜 提交于 2019-12-04 19:36:41
I need some help as well as some advice on how to use Dojo correctly in my project. At the moment, this is what I'm doing: Say I setup a project named 'Test'. Test.html is the first file hit, and in that file I have the following: <script type="text/javascript" data-dojo-config="isDebug: false, async: true, parseOnLoad: true" src="dojo/dojo.js"></script> <script type="text/javascript" src="dojo/core-web-layer.js"></script> <script type="text/javascript" src="dojo/mobile-ui-layer.js"></script> <script type="text/javascript" src="dojo/mobile-compat-layer.js"></script> <script type="text

My IBM MobileFirst Platform 7.1 CLI-based server has some issues; how can I easily recreate it?

冷暖自知 提交于 2019-12-04 19:24:53
I'm working with an IBM MobileFirst Platform 7.1 server supported by the Command-Line interface; however, my server isn't starting and stopping correctly. How can I recreate it easily from scratch in one command? You might also give the "MFP eXtras" project a try --> https://github.com/kfbishop/mfpx The mfpx kill command will stop server, kill processes, clean tmp dirs, etc. MFPX is not supported / endorsed by IBM, just me (and AndrewF :). Feedback welcomed. This chain of commands forcibly kills your MobileFirst server, then deletes it and recreates it from scratch: kill -9 $(cat ~/.ibm

Using jax-ws in MobileFirst server (Liberty server)

谁说胖子不能爱 提交于 2019-12-04 18:48:22
We are trying to access SOAP 1.1 Web services from a Java JAX-RS adapter. We are using a SOAP Client that has been generated from our WSDL. But when unmarshalling soap fault we get the following exception: ... Caused by: java.lang.ExceptionInInitializerError at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:107) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78) at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135) at com.sun.proxy.$Proxy196.rechercherContrats(Unknown Source) at fr.sma.prod.adapter

Unable to build adapters using profiles and properties in Maven

孤街醉人 提交于 2019-12-04 15:21:12
I have created an http adapter using mfpdev adapter create but I found out the adatper.xml configuration file contains server connection configuration which I would like to change accordingly to dev,test,produciton environment. So I tried to use maven resource filter by changing the pom.xml as following pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.my.adapter</groupId> <artifactId

Worklight 6.0 WL development Server not starting

点点圈 提交于 2019-12-04 13:02:07
When I try to start my worklight development server Which is running on Windows 8 OS It gives me below error. CWWKE0005E: The runtime environment could not be launched. CWWKE0018E: An exception occurred while launching the runtime environment: java.lang.IllegalArgumentException: WebSphere-DefaultExtension-windowsnt(unknown) com.ibm.ws.kernel.boot.LaunchException: Caught unexpected exception java.lang.IllegalArgumentException: WebSphere-DefaultExtension-windowsnt(unknown) at com.ibm.ws.kernel.boot.internal.KernelBootstrap.rethrowException(KernelBootstrap.java:412) at com.ibm.ws.kernel.boot