Atlassian account logon through WebBrowser control in WinForms application - c#

I m wondering how to log on Atlassian account in WebBrowser control.
Create new WinForms application in Visual Studio.
Place WebBrowser control on main form.
Set URL property of control as "https://id.atlassian.com/login"
Run application. You will see this screen.
Then enter valid credentials for Atlassian account.
See this error message below.
How to overcome this problem? Thank you.
P.S. I m, of course, aware that standard WebBrowser component uses very outdated IE by default. I properly updated registry to ensure that IE11 is loaded into control.

I found this issue JRACLOUD-71973 in official bug tracking of Atlassian indicating that it is general problem not only with Confluence but with JIRA also. I suppose that Atlassian cloud products do not work with IE 11 anymore in principle, be it full IE application or just WebBrowser control. It is astonishing that Atlassian actually dropped support of quite popular web browser. Perhaps, we must monitor this issue to know when / if this issue will be resolved.

Related

How to fix Windows internet explorer and webbrowser form control session problem?

I created something in C# that just uses the C# default WEBBROWSER CONTROL on a FORM CONTROL. My application logs in on the website using the WEBBROWSER CONTROL located on NEW Form2() then close(). Afterward it will browse the website using another WEBBROWSER CONTROL on NEW Form3(). This applications works on some windows and some not.
The problem is when I open Form3() , it forces me back to login page which means the session or cookie is not shared or saved. I need it to use old session and cookies after I logged in using another WEBBROWSER CONTROL on a past Form()
I have solved this before by following a page I read online but I no longer has access to it and didn't remember it by heart, big regret.
However the trick was related to something on the Server Manager > Internet Explorer or Registry I don't quite remember since I only did it once and it works.
Anyone knows how to solve this please help, much appreciation on any information.

Windows Credentials dialog won't show when navigating using axWebBrowser

I'm doing some maintenance work on a legacy app that is using AxSHDocVw.AxWebBrowser to access in an intranet website. The web site required Windows Authentication. When I navigate to the page directly using IE I get a pop-up asking for Active Directory credentials, but when I try to WebBrowser.navigate() to it I immediately get:
Refreshing the page using the provided link gives me an UNAUTHORIZED response.
Is there something I need to do when setting up the AxWebBrowser control so that it properly displays the credential popup?
Okay, found the answer, and as usual it's a coding issue. The original author of this code set it so that no pop-ups could happen (axwebbrowser.silent = true). He did it to prevent Javascript errors popping up (as opposed to, you know, FIXING the javascript errors), but a side effect was that the dialog box for credential entry wouldn't show up. Removal of that line fixed the issue.

How can Forms.WebBrowser use a plugin which works in IE

I have a Forms.WebBrowser which I use to navigate to a bank's login page. The users enter their credentials and log in. The problematic case concerns logging in with a third party Minikey which is a plug-in (shows in Manage add-ons in internet explorer). It doesn't work with the WebBrowser (instead, there is an error message from the web page, same as when the plug in isn't installed). On IE this login works fine.
I already tried the following:
I set some registry values: FEATURE_LOCALMACHINE_LOCKDOWN and FEATURE_SECURITYBAND, etc. -
with the latter the webbrowser should have shown the security band where the user could choose to run the plugin, but it did not work on every computer.
I reset the IE options
I Set Zone mapping by using the IInternetZoneManager interface.
Any solution enabling the login would help.
I would add that the problem appeared on Windows 7.1 and 8.1 64 bit machines.
I haven't found any topics relevant to my problem.
Thank you for your help!

How to get current conversation in xbap hosted by lync cwe?

I am implementing an extension of Lync conversation window(Lync cwe). Lync has an embedded browser, so I use xbap(WPF browser application) to display some information for this conversation. But I can't get the current conversation object in xbap code. Information about Lync CWE: http://msdn.microsoft.com/en-us/library/office/hh378589(v=office.14).aspx
I know that it is easy to achieve this in silverlight application by calling LyncClient.GetHostingConversation(). But for some reasons, I can't choose silverlight.
I found that Lync writes a key for every conversation in the browser. We can use javascript code to access the property: "external.Parameters". I also observe the method GetHostingConversation(), it uses HtmlPage.Window.Eval("external.Parameters") to get a key used to get the current conversation. But I don't know whether I can make use of this feature to get what I want in xbap.
I also tried to host an silverlight application in xbap. I hope that if I write the right information to the web browser control of xbap, then the silverlight application hosted in xbap can also get the current conversation object for me. But I failed to add external.Parameters. Information about hosting silverlight in xbap: http://msdn.microsoft.com/en-us/library/cc656722.aspx
Here is the steps I have made:
Create a WPF browser application
Add reference of Microsoft.Lync.Model and Microsoft.Lync.Utilities
Use the following code to get the current conversation object:
Conversation currentConversation = (Conversation)LyncClient.GetHostingConversation();
But visual studio told me LyncClient does not have a definition for GetHostingConversation.
So is it possible to get the current conversation object in xbap? And how?
Thanks.
The GetHostingConversation method is only available in Lync Silverlight applications. It looks like you're using WPF. If WPF is required, you need to find out how to get the conversation object in a Lync WPF app. My memory is it's a bit more work than in a Silverlight application. You might consider posting a question on the Lync SDK forum, here:
http://social.msdn.microsoft.com/Forums/lync/en-US/home?forum=communicatorsdk

How can I call a win app on client machine from my aspx web page?

I want to call a windows application on my clients machine from my aspx page , and If It's possible I want to send some parameter to the application . Any guids ?
The only way you can do that is to custom-develop an ActiveX control and host that control in your page. Then the user would have to allow ActiveX controls in his browser. Normally, a browser is a sandbox, so you cannot access Windows from it... But with ActiveX, this is possible.
Here is a tutorial for developing ActiveX controls in C#: http://haseebakhtar.wordpress.com/2011/05/31/creating-an-activex-control-in-net-using-c/
Of course you can still use the old way, that is VB6 or C++...
You may use Shell API in javascript to invoke your windows application. This works only in Internet explorer browser. You need to make sure that your browser security settings (At client) is also changed to "run activex controls"
Here is a sample.
I don't know the specific details, but this might point you in the right direction.
For instance, some IRC applications react when you click a link whose target is irc://some.host.com
Same goes for textmate application for mac:
txmt://open?«arguments»
This, however, is only possible if the target application has registered a custom URL schema in the user's machine. Furthermore, the User has to allow access to it.
You could write a ClickOnce application that you can launch from the web page.
If you make it a full-trust application, you can use it to launch the local Windows application. You can pass arguments to the ClickOnce application, which can parse them and pass them on to the local Windows application.
Alternatively, if you are the author of the local Windows application (and if it is C#/.Net) then you could make the Windows application itself a ClickOnce application.

Categories