Firefox goes blank on refreshing an Intermediate page - c#

I'm working through a problem, where my Web application gets directed to a 3rd party application. There is an intermediate page, from where I can go back to my application or another 3rd party application. However, on refreshing this screen on Firefox, this screen goes blank with no html being loaded. The same thing works on Chrome but Firefox got the issue. On debugging locally this works well for both. Getting issue on deployed version only.
Note: This is a Dot Net angular application.
The link doesn't change on refreshing though.
While debugging, I figured out Request.UrlReferrer object is null, so I hardcoded it with the correct object data. Works well for firefox locally but not on deployed version.
Refreshed caches and cookies.

Related

Why doesn't the browser redirect to sign-inpage, when we add parameters to the Url?

I'm working on an add-in for Outlook from Ms Office. Basically we have integrated a part of our web application in Outlook by using a Webview2 in C#.Net (this used to be a WebBrowser control). The problem I'm having, is that the page should redirect to the sign-in page if the user is not signed in. But it doesn't, at least not when we use the complete link. The page does not redirect, and we get a 302 response.
Let's say we try to connect to example.com/index.php?page=settings&action=edit, we would be redirected to example.com/login.php That's actually working fine.
But we're adding parameters to let the browser know we're working with Outlook. so example.com/index.php?page=settings&action=edit&compact=true&outlookVersionCode=2&outlookVersion=1.0.1
This doesn't work. It has worked before, back when we used the WebBrowser control, which uses Internet Explorer. Now we replaced it with a WebView, which's rendering engine is Edge (Chromium).
Even when we just add "compact=true", it doesn't redirect. I've tested this in Chrome, Firefox and Edge, and it all gave the same result.
Edit: In Internet Explorer it somehow works just fine.
Kind regards,
Dries

Appium: logging in via Auth0, cannot find the correct PageSource/elements

Scenario to be automated:
Open app and click the Login button
A browser opens an Auth0 login page
Enter credentials and confirm
Redirected to app, logged in per the credentials
Issue: In step 3, the login HTML inputs are not in the PageSource.
I’m using the Appium Nuget package, C# bindings.
Observations made:
According to the developer, the login screen is "opened in an internal browser inside of the web application, wrapped by the native app".
When launching the app, there are 2 Contexts (NATIVE and WEBVIEW_OurApp)
When the browser for Auth0 has opened, there is a 3rd Context available (WEBVIEW_Chrome)
Switching to this new Context does not provide me with the input elements of the Login page. Rather, I only get the following (relevant) DIV element:
https:/ourapp.auth0.com/authorize? client_id=abc&response_type=token%20code&redirect_uri=com.ourdomain.ourapp%3A%2F%2Fourapp.auth0.com%2Fcordova%2Fcom.ourdomain.ourapp%2Fcallback&audience=https%3A%2F%2Four-api.ourapp.be&scope=openid%20offline_access&auth0Client=abc%3D%3D
Anyone some ideas on how to make this flow work please?
Just posting the solution to this weird issue:
There was (is) some kind of configuration or installation issue with my Appium. I fixed it by installing the Appium Desktop software and starting a server session there (instead of via code).
Then I simply used this server session in code, which works fine.
Additionally, when running the faulty case before, the Appium icon never appeared in the notification bar. When running correctly, the icon should always be visible.
Finally, I noticed that a device running Android 6.0.0 doesn't work as intended also. It works fine with newer versions.

Does launching app for an http link on Windows 10 require server-side changes?

I followed the guide HERE to link my app to an https URI. It works perfectly fine during testing, for both Debug and Release versions: when I click a hyperlink for the website, the app is launched instead of Edge. The OnActivated event is triggered and the app goes to the desired page, all well and good.
Keep in mind, I'm not using the LaunchUriAsync technique that opens the link only if the app is in foreground.
But when I uploaded the app to the store and downloaded it on the same device I was testing on, the app is not launched. Instead, the webpage opens in Edge. Why is this happening? Is it really mandatory to do some server-side changes to make this work? I'm afraid I don't have access to that, as my app is a third party alternative.
Can someone informed on this topic tell me how I can go about this?
Also, the app does show up under the "Apps for websites" section in Settings -> System when installed through the Store.
The document has a mistake before 8/26, The Json file name should be "windows-app-web-link", not "microsoft-app-uri-handlers". If you have referenced the previous document to lead to not work, please update.
If you still have issues after updated, please test the configuration of your app and website by running the App host registration verifier tool (Details please see the 'Test it out: Local validation tool' section of https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/web-to-app-linking)
Because according to the document,
all side loaded apps with AppUriHandlers will have validated links for the host on install. You do not need to have a JSON file uploaded to test the feature. It seems may be something wrong with the JSON file so you can have a test.

Webbrowser control issue with cookies

i have created web browser control in c#. I used to open .net website into this control. Once page is completely loaded.i was using cookies of this browser control to create httprequest and used to execute request. I used to get data which was needed for me.
But all of sudden this stopped working. I checkd to see what happened then i found that issues are with cookies are being formed throught browser control.For example, if i use page url on IE browser and then get cookie and supply it to httprequest. It works good. But same thing with web browser control is not working now.
Another thing, Forget about httprequest, Download from webbrowser control itselft is also failing. But its working in IE. What could be stopping it to download fail in web browser control and work in IE.
Dont understand how.please help.
This issue is not with the cookies. it is with the browser emulation. By default webbrowser control take IE emulation. but if you need to mention which browser version you want control to use. By using registry.
I emulated IE to my application by changing registry information. and it started working.

Extra Page showing up When Running my ASP.NET C# facebook app

I am attempting to get my ASP.NET(C#) facebook app working and it is giving me some problems.
I can get the app to run and auth the user. My problem is that when i run the app outside of the facebook app page(as just a website) my app is running fine, but when i run as an app on facebook(inside the facebook iframe) it shows an extra page. This page is link to my permissions page and if clicked, the app works fine from there.the problem is that the extra page that is showing.
i tried redirecting to the allow permissions page in the Page_init but that did not work.
i have also tried to to add the javascript(both by hardcoding and adding it dynamically, but that is also not working.
This problem is only when i try to gain permissions from user. Any help would be appreciated.
EDIT: To "fix" my problem, i abandoned ASP.NET, and made my app in php. good luck to any who has this problem. I am still curious about the solution.

Categories

Resources