mobilefirst-adapters

submitAdapterAuthentication not working

流过昼夜 提交于 2019-12-02 10:06:49
问题 I have been trying to do a specific operation once I receive the submitAdapterAuthentication from the challenge handler and I could not do any operation because my code it does not even compile through it. I am using the submitAdapterAuthentication in one method of my angular service. The method looks like this: login: function (user, pass) { //promise var deferred = $q.defer(); //tempuser tempUser = {username: user, password: pass}; userObj.user = user; checkOnline().then(function (onl) { if

Configuration with id 'ADAPTER_CONTENT' for schema 'mfp_default_schema' with version '1.0' not found

白昼怎懂夜的黑 提交于 2019-12-02 07:30:39
问题 I am trying to deploy an JavaSQL Adapter with Hikari Pool using MobileFirst Foundation 8.0 and Postgres 9.5 On deploying, I get the following in the log: [ERROR ] FWLSE0321: State change failure. Caused by: java.lang.RuntimeException: User code thrown exception: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: sorry, too many clients already at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:516) at com.zaxxer.hikari.pool

Authorization failure calling MobileFirst Adapter

烂漫一生 提交于 2019-12-02 07:24:27
Not sure whether the same issue has been raised before (I tried to comment but was unable to do so - see link below) Anyway, I've just upgraded my development environment to MobileFirst Studio 7.1 and I'm having an issue with the adapters we created in 7.0. The adapters deploy without error but when I try to call WL.Client.invokeProcedure from my browser (I'm just testing as a web app at the moment) I get an error 500 in the browser console. I've tested the adapters using the "Run As ... > Call MobileFirst Adapter" menu option, and they work so this is only related to accessing the adapters

Unable to initialize AdaptersAPI Object in MobileFirst V8.0 adapter which is leading to NullPointerException

夙愿已清 提交于 2019-12-02 06:23:13
问题 I am developing the adapter in MFP V8. Below is my code to validate username and password: import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.Context; import javax.ws.rs.core.MediaType; import com.ibm.mfp.adapter.api.AdaptersAPI; import com.ibm.mfp.adapter.api.ConfigurationAPI; import com.ibm.mfp.security.checks.base.UserAuthenticationSecurityCheck; import com

Configuration with id 'ADAPTER_CONTENT' for schema 'mfp_default_schema' with version '1.0' not found

好久不见. 提交于 2019-12-02 04:35:51
I am trying to deploy an JavaSQL Adapter with Hikari Pool using MobileFirst Foundation 8.0 and Postgres 9.5 On deploying, I get the following in the log: [ERROR ] FWLSE0321: State change failure. Caused by: java.lang.RuntimeException: User code thrown exception: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: sorry, too many clients already at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:516) at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:118) at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:71)

submitAdapterAuthentication not working

夙愿已清 提交于 2019-12-02 04:14:07
I have been trying to do a specific operation once I receive the submitAdapterAuthentication from the challenge handler and I could not do any operation because my code it does not even compile through it. I am using the submitAdapterAuthentication in one method of my angular service. The method looks like this: login: function (user, pass) { //promise var deferred = $q.defer(); //tempuser tempUser = {username: user, password: pass}; userObj.user = user; checkOnline().then(function (onl) { if (onl) { //online console.log("attempting online login"); var auth = "Basic " + window.btoa(user + ":"

Download PDF file from through MobileFirst Adapter

拜拜、爱过 提交于 2019-11-28 12:32:59
问题 I am building an application to download the PDF file from out back-end server. I have written following code: On Backend Server, following is the method: @POST @Consumes(MediaType.APPLICATION_JSON) @Produces("application/pdf") public Response download() { ResponseBuilder response = Response.ok((Object) new File("myFile.pdf")); response.header("Content-Disposition", "attachment; filename=myFile.pdf"); Response responseBuilder = response.build(); return responseBuilder; } I am calling this

Mobilefirst 8 extend login timeout by acquiring resource / manual trigger

自古美人都是妖i 提交于 2019-11-28 12:15:09
问题 Platform: ionic 3 Objective: For protected resources, there's a scope to protected with security checking with timeout. Beside kicking out user when idling like 1 min, refresh login session(access token?) after each adapter call . If better, can refresh login session with a call. Finding: Tried obtainAccessToken and insert that in WLResourceRequest . To me, it just uses Remember Me Duration instead of Success State Expiration . But after Remember Me Duration , it still logout without updating