Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 403: access_denied The developer hasn’t given you access to this app despite a new project being created [duplicate]

Please note: This is NOT a duplicate as I followed the SO only verified answer by creating a new project yet it didn't work. Also my case is with chrome extension or chrome app client ID from dev console.

Error:

Error 403: access_denied The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If you think you should have access, contact the developer

Even though, just like the other post I'm accessing it from owner account. At the same time, I can't leave a comment on the answer of that post as my reputation isn't high enough. Nonetheless,

I am trying to retrieve access token from the user via:

manifest.json:

{
    "manifest_version": 2,
    "name": "To be named",
    "description": "This extension helps...",
    "version": "0.1.0",
    "browser_action":{
        "default_popup":"popup.html"
    },
    "permissions": [
        "storage",
        "identity",
        "identity.email",
        "http://127.0.0.1:5000/Time"
    ],

    "oauth2":{
        "client_id":"10977...esr6.apps.googleusercontent.com",
        "scopes":["https://www.googleapis.com/auth/userinfo.profile"]
    },
    "background": {
        "scripts": ["background.js"],
        "persistent": false
    },  
    "content_scripts": [{
        "matches": ["https://www.blank.org/"], 
        "js": ["content.js"],
        "css": ["styles.css"]
    }]
}

background.js:

chrome.identity.getAuthToken({ 'interactive': true }, function(token) {
  if (token){alert('token is ' + token)}
  else{alert('token not present')}
});

P.S: I don't want to go through the verifying route as I am in a testing stage. Also I'd expect verification to be not needed from the owner.

like image 811
Daniyal dehleh Avatar asked Jan 17 '21 00:01

Daniyal dehleh


People also ask

How do I fix 403 authorization error?

You can try to fix error 403 in Google Chrome by refreshing the page, double-checking the address, clearing the cache and cookies from your browser, confirming that you have authorization to view the page, contacting the web site directly, or returning to the page later.

What is Error 403 Access_denied?

Error 403: access_denied. The developer hasn't given you access to this app. It's currently being tested and it hasn't been verified by Google. If you think you should have access, contact the developer ([email protected]).


1 Answers

Solution:

  1. Go to your developer console.
  2. Go to OAuth consent screen.
  3. Go to +Add users, under test users.
  4. Add the users for the test (even the owner email address if not working without it)
like image 193
Daniyal dehleh Avatar answered Oct 19 '22 00:10

Daniyal dehleh