can chrome extension connect to backend application in the desktop - google-chrome

is there any way with chrome extension to get / set parameters with command line application in the desktop ?
with out using npnpi ? maybe http?

No there is not any feasible way to do it for security reasons. However you can register a custom protocol like example:// and install a program on client system to handle your custom protocol. Hope this helps!

Related

how to implement sso for openshift

I'd like to implement kind of SSO for openshift, what I mean: from my webapp a user can open openshift console in a new window without giving his credentials. I've configured Basic Authentication Remote and it's working, can open new window and post username/password but it's looks that openshift is protected with crsf token. Thus not sure if it's possible at all. It seems that developing custom identity provider is not supported either. Any idea ?
PS I'm aware of Request Header Identity Provider but that solution requires my webapp to provide idp functionality (not even sure if it's feasible), also apache (we use nginx), a lot of issues for dev to install it all on a single computer due to port conflicts, valid ssl etc etc
Best option will be to use oauth proxy. See if this helps in your case.
https://github.com/openshift/oauth-proxy
Finally I've implemented SSO using js postMessage to send user/token data and Basic Authentication Remote.

Is it possible to access COM objects from chrome extension?

I have a desktop application for which I wanna create a chrome extension. I just need to know if I can access windows COM objects from a chrome extension.
No, you cannot (directly).
If you need that, you'll need to create some native application "proxy" that will talk to your extension over Native Messaging protocol, and talk to your existing application via whatever native method you want (e.g. COM).
Note that this Native Host application cannot be bundled with the extension in Web Store; but you could bundle it with your desktop application.

How to access installed apps through browser

1password's chrome extension checks to see if the app is installed on your desktop before you can actually do anything.
I was wondering on how could I implement something similar?
This is probably implemented using the Native Messaging API.
Alternatively, the app can simply have a web server / websockets server open on the local machine, but it would mean the connection will only work while the app is running.

register/add host to chrome remote desktop extension host list using CRD API

I've installed chrome remote desktop extension for desktop sharing.
https://chrome.google.com/webstore/detail/chrome-remote-desktop/gbchcmhmhahfdphkhkmpfmihenigjmpp?hl=en-US&utm_source=chrome-ntp-launcher
Im very impressed. Its fast and easy.
There's an option to add your computer to My Computers list by Enabling remote connection. The computers in the lists are also called hosts, Google has also provide an API to add/update/list/delete the hosts. https://developers.google.com/chrome/remote-desktop/v1/reference/hosts/insert
Now my question is; has anyone able to add host/computer to host lists using the Google Chrome Remote Desktop API? If yes, can you help me out with this.
Please let me know if you need more explanation.
Done it myself. I've used the php CURL for sending the host insert request. API only supports json content-type so you need to send data in json format.

How can I launch an OSX application from the browser?

I'm coding an admin panel with a web interface that will only be run locally (not client-facing or hosted on an external server), and it would be helpful if it could launch an application from an <a href="">. Is this possible? I understand that this could be a browser security thing, but I also know that there are iTunes and App Store links (not quite sure how those work either), and I assume this is also possible for launching "x" application. How can I do this?
it is only possible if the application you want to start registers its own URI scheme with the OS. Though you could write your own app that starts other apps on demand. You'll have to register your own scheme then.
Found a solution! Instead of using an <a href="">, I've decided to run a shell command from a PHP script that just does open application_name.app and redirect back to the referrer.