Web View with form post - ibm-mobilefirst

I am using IBM Worklight 6.2 for building hybrid application.I need to do integration with payment gateway.For that i need to post data through my html form.I am able to hit the server with action in html and the payment gateway opens in my mobile.
Now the problem is once the gateway page opens.I am not able to go back to my application .I did every possible way to override this.I think the payment gateway is secured and back button is disabled in their server pages.
I am newbie to IBM Worklight .Kindly help me resolving this..For Information code is mentioned below..
<form class="form" action="http://example.com/" method="post">
<input type="hidden" name="checksum" id="checksum">
<input type="submit" value ="Pay Now">
</form>
Somebody suggested me using Webview...but i am not sure how to use Web view..
Also I cannot use Jquery AJAX Call.The only way is to submit the form..
Kindly bear with me and thanks in advance

To open another webview, you can follow the sample provided as part of the following tutorial: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/6.3/advanced-topics/integrating-server-generated-pages-hybrid-applications/
Basically you use a Cordova plug-in to open another webview ontop of your application.
You may also consider using Corodva InAppBrowser: https://cordova.apache.org/docs/en/3.0.0/cordova/inappbrowser/inappbrowser.html
Cordova is built-into Worklight, so you need only to use its APIs. No configuration needed.

Related

Xamarin Forms (iOS) - share cookies between application login and Microsoft PowerApp

Currently I'm trying to create an App in Xamarin Forms that shares its login session (logging-in with Microsoft) with a webview that contains a Microsoft PowerApp (as my application, it uses Microsoft account to login).
I just created a custom webview and a custom webview render. In Android custom render I used Android.Webkit.CookieManager.Instance.SetAcceptThirdPartyCookies(Control, true); to accept third party cookies and it works well.
But I'm having trouble with iOS where I couldn't find a similar way to accept third party cookies and I can't go through it. I've already tried to use NSHttpCookieStorage.SharedStorage.AcceptPolicy = NSHttpCookieAcceptPolicy.Always; but it didn't work for me.
I'm not using Xamarin in a long time, so any help will be really appreciated.
Thanks
S.

WorldPay Integration with Ionic 4, getting payment details through a provided template form

So there is this Payment provider called World Pay, that enables applications to collect payment information via their own provided template form (https://beta.developer.worldpay.com/docs/wpop/template-form).
A working implementation of this for Angular can be found here:
How to integrate worldpay with angular2
Using this code I’ve managed to get it working for Android (and on the browser), but not on iOS. More specifically on the iOs builds the template form does not load, I just get a blank page.
The error I get in the iOS logs is:
ERROR Internal navigation rejected - <allow-navigation> not set for url='about:blank'
I have added:
<allow-navigation href="https://cdn.worldpay.com/*" />
into the config.xml and it has made no difference.
There is a lot of advise online to not use iframes on Ionic apps and to use the in cordova app browser instead, however I am not sure how to open the a browser page when all I have is the address of a script (https://cdn.worldpay.com/v1/worldpay.js).
Any help would be greatly appreciated.

Is it possible to sign in to my website and use the e-mail and password to authenticate on power bi?

I have a website and I want to put power bi dashboards for clients. I want use an iframe tag with power bi authentication (secure embed code),. However, if I use this technique the client has to sign in on the power bi website and my website. I would like that the client sign in to website and use the account and password to request a login on power bi with an API. Is this possible? If so, how can I do this? Which API do I have to use?
I saw this example.
<!-- iframe example -->
<iframe width="800" height="600" src="..." frameborder="0" allowFullScreen="true"></iframe>
I think what you are looking for is called "App owns data". You can find full instructions here.
The other solution would be to publish to web and then embedding the code in your website. Please notice that this is public sharing and everyone who will get hold of the link will be able to access your reports.

upload the html page into custom page of CA Agile rally through code

Is there any way to upload the Html page into custom page of CA Agile rally through code instead of manually doing it, through Web apis.
There is currently no fully supported way to do this via the API. There are private endpoints in the product which could technically be used for this but there is no guarantee their paths or arguments will not change.
If you'd like to explore doing this you can inspect the network tab in your browser when you create a new page (/slm/wt/new.sp) and when you add a custom html app to it (/slm/dashboard/addpanel.sp) and when you edit the settings with your code (/slm/dashboard/changepanelsettings.sp)

IBM Worklight login Page

I'm in the process of building an end-to-end application.
I want to incorporate a simple login page that will verify credentials against a database. I need the page to be the first page that is displayed when I run the application. I have read the various modules on authentication but their design is a little different.
I have found other resources on like Sunil's notes on how to enable form-based login but this involves modifying auth.js that isn't present in Worklight v6.0.
I'm also unsure if I should use the single sign on approach, but that would mean getting additional software like Websphere Portal which I'm not too keen on.
FYI, my UI is entirely built using dojo/dojo mobile.
Are you using Worklight 6.0? If you are seeing some of our older sample projects may help you out. You should check out one of our older samples based around form-based authentication, here is a link to all tutorials and samples:
http://www-01.ibm.com/support/knowledgecenter/SSZH4A_6.0.0/com.ibm.worklight.getstart.doc/start/c_gettingstarted.html
Here is a link to form based authentication tutorial and below the form based authentication sample:
Tutorial: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v600/08_02_Form_based_authentication.pdf
Sample: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v600/FormBasedAuthenticationProject.zip