Is it possible to access google drive realtime api from a Firefox extension - google-drive-realtime-api

I know GDRA is available for Chrome extensions, but I need it for Firefox. If I choose the "Web" option I need to provide an OAuth return address, which I don't have of course. Is there a way around this, or can I use the Chrome version of GDRA with Firefox?

If you can get an OAuth token, you can use the Realtime API. I'm not familiar with the Firefox extension API, but you might take a look at this OAuth implementation which is designed to be used in Firefox extensions:
https://github.com/mozilla/oauthorizer

Related

How to connect a Chrome extension made with React to Metamask and other wallets?

I need to connect Metamask to a Chrome extension I'm doing. I'm not a crypto expert, I'm using ethers js and following some tutorials but the extension doesn't recognize that Metamask is in the browser. I run the same scripts in a normal web app (not Chrome extension) and everything works perfectly and I can interact with Metamask and all of that. I've been trying to understand why it's not working and I'm kind of lost at this point.
I've been reading the Chrome Developers documentation and it seems like there's a way to send messages with some data between two extensions. But I can't figure out how to introduce that to my project, and also the amount of data you can share seems to be limited somehow.
I've searched in Stack Overflow but I don't understand the answers to those questions. Or how to apply them to my case.
I found this but it looks that only works with MetaMask and not with other wallets: Connect to MetaMask via chrome extension
Use https://github.com/MetaMask/extension-provider.
You can do it simple! I can do it with my chrome extension + metamask easy.
This lib helps a lot.

Detecting/redirecting browser that does not support SNI with GAE

I set up SNI/SSL on my app engine app using this excellent page.
I'd like my site to work for people still on older browsers that don't support SNI. Ideally, I'd like to detect these older browsers and redirect them to https://myapp.appspot.com.
I've seen some posts about people doing this with Apache rewrite rules, but of course you can't do that with app engine.
The ever so unhelpful GAE documentation states
We recommend detecting browsers that do not support SNI and
recommending a browser that supports it.
but doesn't give us any clue how to do that.
Any ideas how to do this?
You'll need to use SSL with Virtual IP.
The reason for this is that older browsers that don't support SNI simply don't send any indication of the server name (host) that was requested - only the IP address. Since typically Google hosts many web applications on their externally advertised and shared IP addresses there is simply no way for Google to send the request to your application in that shared scenario.

Which ad network for cross platform web apps

It is really unclear what to use when you want to put ads on a cross-platform web application published as is on a website and also on the stores through phonegap.
Admob, Adsense ...?
Moreover, which one has a simple html/js integration system?
For now, I am using inmobi and their js api is very simple and nice, but I have cross domain problems...
Can you help clarify ?
this is Akshay, JS Dev, InMobi. InMobi is an ad-distributor. The ads/creatives are made by the advertisers. Also, these ads are placed in an iframe so that these ads cannot access the data present in your page, thus providing security. Because some ads try to "burst" out of the iframe, chrome throws the warning. However, these warnings can be safely ignored and will not affect your website's functionality.
That being said, InMobi's javascript is not responsible for these issues, rather the advertiser and InMobi has no control over this. There are some ad networks which require a dummy page to be present on your domain. By using such ad networks, the chrome warnings disappear (because the iframe is on your server and cross domain problems do not occur). However, by doing so, the ad has complete access to your webpage, compromising security.

Programmatically login to site with Apache basic authentication from WPF .net application

We have a requirement to open a web site URL in default browser of the client machine from our WPF application. All this time we were using simple Process.Start(URL) and it was working fine. Until now where one of customer has this "URL" behind basic authentication. The site they want us to browse using URL is hosted on Apache web server. From what I know, if we have https://username:password#domain.com it directly takes us in site without the username/password challenge and it works fine in Chrome and Firefox, however newer version on IE stopped supporting it for security reasons.
Can someone suggest some alternate approach to achieve same considering following objectives ?
List item
Browse to URL with passing in username password.
Open default browser in client's desktop machine.
Don't want to user browser control
At minimum should work in 3 browsers - IE, Firefox and Chrome
We cannot make changes to client desktop's machine, so solution shouldn't require any special settings.
The workaround for developers from the Microsoft Support site : http://support.microsoft.com/kb/834489
Workarounds for application and Web site developers
URLs that are opened by objects that call WinInet or Urlmon functions
For objects that use an HTTP or an HTTPS URL that includes user
information when they call a WinInet or Urlmon function such as
InternetOpenURL, rewrite the object to use one of the following
methods to send user information to the Web site: Use the
InternetSetOption function and include the following option flags:
INTERNET_OPTION_USERNAME INTERNET_OPTION_PASSWORD Note For these
flags, the InternetSetOption option must have a handle returned by the
InternetConnect function. Therefore, if the application uses the
InternetOpenUrl function, modify the application to use the
InternetConnect, HttpOpenRequest and HttpSendRequest WinInet
functions. For more information about how to use these functions,
visit the following Microsoft Web sites:
http://msdn2.microsoft.com/en-us/library/Aa384363
http://msdn2.microsoft.com/en-us/library/Aa384233
http://msdn2.microsoft.com/en-us/library/aa384247.aspx Use the
IAuthenticate Interface. For more information about how to use the
IAuthenticate Interface, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms775080.aspx
Was this option tried ?

Chrome Extension: retrieve AD credentials from session to auto-login on Wordpress

I need to create a Chrome extension that will allow us to get the user's credentials so that he will be automatically loging into the intranet (heavily-modified Wordpress).
I know for sure that Firefox can access Registry and AD credentials, but with the erratic updates and extensions that are constantly disabled by those, we can't afford to manually check every time firefox has an update.
I've searched on Google and so far I haven't found any answer. I've checked on Google labs and also on the Chrome extension store to see if there was a similar extension, but I found nothing either.
I've seen ADM released by chrome but this is for network administrators who want to centralize settings.
Any one has a clue on this?
This is not well documented, but after some research I found that this capability is built into Chrome. All you need to do is add the Wordpress site to the "Intranet" zone on a Windows PC.
The setting is accessible from Chrome (even though it is a Windows setting):
Settings/Advanced/Change Proxy Settings/Security/Local Intranet/Sites

Resources