mobilefirst-adapters

How to access IBM MobileFirst 7.1 default attribute store in session independent mode

不打扰是莪最后的温柔 提交于 2020-01-17 06:52:43
问题 I am working on migrating a IBM MobileFirst 6.3 project to version 7.1 and enabling the 7.1 session independent mode. I have specified the attribute store as the worklight default runtime database. In the previous version I have used HTTPSession object in HTTP JavaScript adapters to dynamically store some minimal data related to the current user session as shown in the sample code below. var request = WL.Server.getClientRequest(); var session = request.getSession(); session.setAttribute("ID",

Mobilefirst 7.0 protecting a Java Adapter fails with Custom Authenticator

点点圈 提交于 2020-01-17 05:16:07
问题 Im following and using the sample code from Custom Authenticator and Login Module and UserAdapter from Java SQL Adapter. I want to get the user list after authenticated. My configuring the authenticationConfig.xml file <realms> <realm loginModule="CustomLoginModule" name="CustomAuthenticatorRealm"> <className>com.mypackage.MyCustomAuthenticator</className> </realm> </realms> <loginModules> <loginModule name="CustomLoginModule"> <className>com.mypackage.MyCustomLoginModule</className> <

Issue accessing MobileFirst adapters

亡梦爱人 提交于 2020-01-06 22:00:00
问题 I am using MobileFirst CLI 7.1, Java 1.8.0_65 (on Mac OS X 10.9.5 if it matters). I have been working without issue in my current environment for about a month now but have suddenly hit an issue with all the adapters I developed, which have been working successfully up until this point. The initial error surfaced when testing from a browser. I thought perhaps it was related to the way the WL JavaScript libraries authenticate with the adapters which run on the server (clearing the browser

Reading response from http adapter procedure

巧了我就是萌 提交于 2020-01-06 20:13:00
问题 I have a response from a web server: { "errors": [ ], "info": [ ], "isSuccessful": true, "responseHeaders": { "Connection": "close", "Content-Length": "159", "Content-Type": "text\/html", "Date": "Sat, 20 Feb 2016 11:15:35 GMT", "Server": "Apache", "X-Powered-By": "PHP\/5.2.17" }, "responseTime": 705, "statusCode": 200, "statusReason": "OK", "text": "True \n<!-- Hosting24 Analytics Code -->\n<script type=\"text\/javascript\" src=\"http:\/\/stats.hosting24.com\/count.php\"><\/script>\n<!-- End

IBM MobileFirst Platform Foundation 6.3: Can we edit the custom attributes of User Identity Object [MobileFirst Session]

送分小仙女□ 提交于 2020-01-06 02:33:42
问题 With the help of the following API calls, 1. WL.Server.setActiveUser 2. WL.Server.getCurrentUserIdentity We can create user session and get the user identity properties respectively. I have a scenario where I want to update the properties[custom attributes] in the user identity object when the session is active. I couldn't find an API which can do this task. Is there any way/work-around available. 回答1: In general activated userIdentity is immutable. Try this, it might work var userIdentity =

Calling setActiveUser throws error

你。 提交于 2019-12-29 08:19:46
问题 I am trying assign a userid to user and I am getting error . I am following as steps below. server details. <realm loginModule="AuthLoginModule" name="AuthRealm"> <className>com.worklight.integration.auth.AdapterAuthenticator</className> <parameter name="login-function" value="AuthAdapter.onAuthRequired"/> <parameter name="logout-function" value="AuthAdapter.onLogout"/> </realm> </realms> <loginModule name="AuthLoginModule"> <className>com.worklight.core.auth.ext.NonValidatingLoginModule<

How to invoke the url or link of an adapter

回眸只為那壹抹淺笑 提交于 2019-12-25 08:48:32
问题 I need know how to invoke the adapter from the development server in the cloud. In the local environment we have the option in eclipse but in the development server in the cloud, I can´t see the option for invoking. I use MobileFirst 7.0 Update - The notification based in tags does not arrive to my device. The problem is that in the console the notification is success, but these never arrive to my device. This is the message in my log. [4/1/15 19:39:03:451 CDT] 00000081 ht.integration.js

Failed to deploy a sample Javascript HTTP adapter on MFP 8 (MobileFoundation Bluemix)

限于喜欢 提交于 2019-12-25 06:48:03
问题 I am beginning my journey into the MobileFirst Platform 8 Beta, and I would like to deploy my very first sample adapter. I am using an instance of the Mobile Foundation service on Bluemix. When trying to deploy the sample adapter, I get the error stack below: ○ → mvn adapter:deploy -e [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building SampleAdapter 1.0-SNAPSHOT [INFO] --

PUT HTTP Adapter in MobileFirst Platform

空扰寡人 提交于 2019-12-25 04:38:19
问题 I am trying to post some data from my native android application. Native Code: WLProcedureInvocationData invocationData = new WLProcedureInvocationData("TaskAdapter", "updateTask"); int taskId = Integer.parseInt(tvTaskId.getText().toString()); String assignedTo = tvAssignedTo.getText().toString(); String address = ""; String description = ""; String latitude = "5.0"; String longitude = "5.0"; String status = "5.0"; String comments = "5.0"; String lastupdate = "5.0"; String userLatitude = "5.0

MobileFirst Hybrid Development - HTTP Adapter not working on device

≯℡__Kan透↙ 提交于 2019-12-25 03:32:44
问题 I am new to MobileFirst Hybrid development and I have started a prototype project which involves creating adatpers deploying and testing. I was able to create a javascript adatper (http adatper), which calls web api, I was able to deploy the adapter in MobileFirstDevelopment Server, in my case it is my local machine. The project runs successfully in mobile preview mode and also in android emulator, but when I test it in real android device, the adapter functionality does not work. I have