question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does the chrome.identity api work in chrome extensions in brave?

See original GitHub issue

Description

I’m a chrome extension developer. In my extension I call chrome.identity.getAuthToken() to do oAuth, this normally pops up a sign-in window in Chrome. The identity API is what made oAuth possible in extensions. However, in Brave, the popup doesn’t appear, and in the console it shows Unchecked runtime.lastError: The user turned off browser signin.

So is chrome.identity supported in Brave?

Steps to Reproduce

  1. call chrome.identity.getAuthToken() in an extension. (if you want to try with an existing extension, try the extension “Full Screen for Google Tasks”.

Actual result:

No oAuth window appears. In the console it shows Unchecked runtime.lastError: The user turned off browser signin.

Expected result:

oAuth window appears.

Brave version (brave://version info)

Brave | 1.2.42 Chromium: 79.0.3945.117 (Official Build) (64-bit) Revision | 04f0a055010adab4484f7497fbfdbf312c307f1d-refs/branch-heads/3945@{#1019} OS | Windows 10 OS Version 1903 (Build 18362.295)

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes
  • Can you reproduce this issue with the beta channel?
  • Can you reproduce this issue with the dev channel?
  • Can you reproduce this issue with the nightly channel?

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? No
  • Does the issue resolve itself when disabling Brave Rewards? No
  • Is the issue reproducible on the latest version of Chrome? No

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
jumdecommented, Dec 13, 2020

Hi @ss87codes - You should be able to use this api by enabling Allow Google login for extensions in brave://settings/extensions. If you are running into any issues, let us know.

3reactions
ss87codescommented, Dec 13, 2020

@jumde @bsclifton any update on this pls? We are looking to provide Google Auth via chrome extn on brave.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow Google login Third Parties and Extensions - GitHub
If you navigate to brave://settings/extensions , you will see an option to enable Allow extensions to use chrome.identity api . extensions. When ...
Read more >
chrome.identity - Chrome Developers
Use the chrome.identity API to get OAuth2 access tokens. Permissions. identity ... This ID will not change for the lifetime of the account....
Read more >
How to add or install Chrome extensions - Brave Browser
And, like Chrome, Brave supports most extensions from the Chrome Web Store. That means “Brave extensions” or “Brave add-ons” are exactly the ...
Read more >
How to authenticate in a Chrome extension? (with manifest v3)
I've been working on this for the last 3 days. A couple issue I've had with the identity API is brave browser blocks...
Read more >
Using Google Keep Extension on Brave Browser
I finally successfully got Google's Keep Chrome Extension to work with ... But now I can natively use these Google extensions in Brave...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found