Electron webview don't open site salesforce lightning - electron

I'm developing an application in electron to gather all the sites that the company uses in a single place, but when accessing the Salesforce site, an error occurs. I'm using webview to load the pages.
Does anybody know how to solve this?
Error access Microsoft
I already tried to change the user agent of the webview and it didn't work.

Related

Display webpage from desktop application (Minecraft authentication)

In this question I'm only asking what minecraft launcher uses to display the login webpage.
I am not asking for any clarification on how to log the user in, or anything related to that matter.
//Note that it probably does NOT use javafx
What software could be used to display a webpage or what exactly does minecraft use to display the authentication webpage?
Internet Explorer or Microsoft Edge Legacy WebView

WKWebView is blank when loading a Paypal captcha

A user can pay with Paypal inside our application.
We open the Paypal link inside a WKWebView.
But this is the result after the Paypal log-in.
When I inspect the WKWebView I find these 2 errors in the console:
Refused to load https://www.recaptcha.net/recaptcha/enterprise/... because it does not appear in the frame-ancestors directive of the Content Security Policy.
Failed https://www.recaptcha.net/recaptcha/enterprise/... to load resource: the server responded with a status of 404 ()
I did not find anything on the internet to how to solve this.
Thanks
We open the Paypal link inside a WKWebView.
You cannot do this. From the documentation
Do not use a WebView to display PayPal web pages within your
application
Your application must not use a WebView or similar custom browser
mechanism for display of PayPal web pages. Instead, use an appropriate
PayPal SDK to manage the PayPal experience or launch the PayPal web
page within the system browser or an approved browser-view mechanism
such as Safari View Controller on iOS or Chrome Custom Tabs on
Android.
--
If your own checkout/payment flow is happening in a webview (rather than native) and you need to open a PayPal checkout from there, consider using a popup bridge (iOS or android version) which will convert any web popup to open in an SFVC/CCT

Google OAuth denied in webapp when Safari was started via iOS homescreen

I developed a webapp which is accessing a user's Google Calendar and which was
working fine using Google's OAuth in the browser. But when a user puts it to his homescreen on iOS, it says something like "OAuth is no more supported in embedded browsers".
After searching the web I found out, this message is caused by Safari which reports a different user agent when opening it from homescreen.
But still I could not find any solution to that problem. Seems like I have to change the authentication completely to get it working.
Is there a way to "fix" Safari or is there a another authentication method? (Already saw Firebase, but I am not sure if it will work in for my situation).

Adobe AIR Mobile / OAuth2.0

We are currently trying to add OAuth2.0 for authentication into an existing Adobe AIR mobile app for a client. We are trying to carry this out by using this library https://github.com/charlesbihis/actionscript-oauth2 from this article.
We have tried using instances of the 'StageWebView' class and the Feathers UI 'WebView' class to display the authorization prompt page within the mobile app itself.
When we publish the app locally on our development PCs, the whole process works ok. However, as soon as it is published to our iPad(s) for testing, it is almost as if some security setting stops the "embedded" website from communicating with to the server.
As the website we are trying to communicate with is a https:// address, I'm assuming that this might be causing issues, but I can't confirm this.
Has anyone out there found themselves in a similar situation?
Thanks,
Dave

iOS URL Scheme: Online giving completion redirection challenge

We have an iOS native app, that allows for online giving for churches through a external web page. The native app opens the browser, and the once the user is done with their online giving on the web page it uses a URL scheme to return back to the native app.
This works great, but isn't ideal because when the user later returns to their web browser they see the remnant of the external web page.
Currently we just do some JavaScript and clean up the page so to speak to avoid duplicate gifts etc. Is there a way we can redirect the page to the users default page, or home page?
Or is there a better way to handle this?
You could handle your online gift in an internal UIWebView, which would give you much more control over this aspect of your application.

Resources