Walty Yeung
Walty Yeung

Reputation: 3564

Use OAuth 2.0 in Firefox WebExtension

I have built an open sourced extension some time ago, and the extension needs OAuth 2.0 to access some Google Drive API.

Currently, my Chrome extension uses identity.launchWebAuthFlow to access to the OAuth, and Firefox XPI extension uses oauthorizer for the OAuth.

Now, I want to convert the Firefox extension from XPI to WebExtension for easier maintenance in the future (as Chrome and Firefox WebExtensions are very much alike).

I thought the migration should be easy as I already got two versions of extensions on hand. But after some research I can't find an easy way to access the OAuth 2.0 inside the Firefox WebExtension.

Some advices would be greatly appreciated.

Upvotes: 1

Views: 1362

Answers (1)

johnnydev
johnnydev

Reputation: 164

I'm currently using it!

Bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=1305421

you can see if features are supported here:

http://arewewebextensionsyet.com/#identity

Upvotes: 3

Related Questions