ninenizil / android2cloud

Automatically exported from code.google.com/p/android2cloud
0 stars 0 forks source link

Chrome Extension Authentication Error #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. loading unpacked extension
2.
3.

What is the expected output? What do you see instead?
I expect to see a grant auth page as I did when installing android2cloud 
extension. But instead it stops with redirecting... in the page and flags the 
following error:
   Uncaught Error: No oauth token or token secret
When in the developer tool this is the section of code that it's flagging.
   ChromeExOAuth.prototype.signURL = function(url, method, opt_params) {
  var token = this.getToken();
  var secret = this.getTokenSecret();
  if (!token || !secret) {
    throw new Error("No oauth token or token secret");
  }

What version of the product are you using? On what operating system?
nexus2cloud - Version: 1.0.1.1 (Unpacked)
android2cloud-chrome-1.zip

What handset are you using? What version of Android is it running?
Nexus One - 2.2

Have you rooted or installed a variation or mod of Android on your phone?
rooted and a variation of android

If you don't mind sharing, what username are you using? What server?
nexus2cloud.appspot.com
vince@pimentel-solutions.com

Please provide any additional information below.

Original issue reported on code.google.com by Vince.KO...@gmail.com on 6 Aug 2010 at 8:45

GoogleCodeExporter commented 8 years ago
Did you change the manifest.json file?

Original comment by foran.pa...@gmail.com on 6 Aug 2010 at 11:18

GoogleCodeExporter commented 8 years ago
Yup got it swapped out with the following.

{
  "name": "nexus2chrome",
  "version": "1.0.1.1",
  "description": "A way to push content from your Android phone to your Chrome web browser.",
  "browser_action": {
    "default_icon": "icon.png"
  },
  "permissions": [
    "tabs",
        "notifications",
    "http://nexus2chrome.appspot.com/",
    "https://nexus2chrome.appspot.com/"
  ],
  "background_page": "background.html",
  "icons": { "16": "icon.png",
             "48": "icon48.png",
            "128": "icon128.png" }
}

Original comment by Vince.KO...@gmail.com on 6 Aug 2010 at 11:50

GoogleCodeExporter commented 8 years ago
edit to last post.

I grabbed the wrong file, I have been also playing with one that is created on 
a gmail.com email. Here is the correct file.

{
  "name": "nexus2cloud",
  "version": "1.0.1.1",
  "description": "A way to push content from your Android phone to your Chrome web browser.",
  "browser_action": {
    "default_icon": "icon.png"
  },
  "permissions": [
    "tabs",
        "notifications",
    "http://nexus2cloud.appspot.com/",
    "https://nexus2cloud.appspot.com/"
  ],
  "background_page": "background.html",
  "icons": { "16": "icon.png",
             "48": "icon48.png",
            "128": "icon128.png" }
}

Original comment by Vince.KO...@gmail.com on 6 Aug 2010 at 11:53

GoogleCodeExporter commented 8 years ago
Can you check your datastore? Click the background.html link, and open the 
storage tab. Does it have an oauth_token and oauth_token_secret value?

Original comment by foran.pa...@gmail.com on 7 Aug 2010 at 1:26

GoogleCodeExporter commented 8 years ago
No background.html link in the datastore tabs. Only a id=1 link

Original comment by Vince.KO...@gmail.com on 7 Aug 2010 at 2:26

GoogleCodeExporter commented 8 years ago
If you open chrome://extensions, under android2cloud, you should see a 
background.html link. Clicking on it opens the development menu. In that, 
there's a datastore tab. It should have a last_link, oauth_token, and 
oauth_token_secret value.

Original comment by foran.pa...@gmail.com on 7 Aug 2010 at 8:03

GoogleCodeExporter commented 8 years ago
ok, going in that way and looking at your extension i see the values that you 
are talking about. When i do the same steps for my copy of your extension that 
area is blank.
Your extension did have one occurrence of the same error generated at the same 
line as posted above. Mine continues to produce the same error over and over as 
the extension is left on.

Original comment by Vince.KO...@gmail.com on 9 Aug 2010 at 11:22

GoogleCodeExporter commented 8 years ago
Vince, thanks for the information. i'm going to investigate this, and see if I 
can't get to the bottom of it. It definitely sounds like something's going 
wrong, but I can't say for sure what it is yet.

Original comment by foran.pa...@gmail.com on 10 Aug 2010 at 12:58

GoogleCodeExporter commented 8 years ago
Just cleaning up issues and labels. Still trying to get to the bottom of this-- 
sorry!

Original comment by foran.pa...@gmail.com on 7 Sep 2010 at 7:02

GoogleCodeExporter commented 8 years ago
Issue 25 has been merged into this issue.

Original comment by foran.pa...@gmail.com on 7 Sep 2010 at 7:03

GoogleCodeExporter commented 8 years ago
Issue 36 has been merged into this issue.

Original comment by foran.pa...@gmail.com on 7 Sep 2010 at 7:09

GoogleCodeExporter commented 8 years ago

Original comment by foran.pa...@gmail.com on 28 Dec 2010 at 7:25