mozilla / fxa-local-dev

An easy way to contribute to Firefox Accounts
28 stars 47 forks source link

In Nightly: FxA rejecting with error AUTH_ERROR: Invalid assertion #29

Closed vladikoff closed 9 years ago

vladikoff commented 9 years ago

Using a local server wuth FIREFOX_BIN=/Applications/FirefoxNightly.app/Contents/MacOS/firefox-bin npm start

This seems fine in "stable" Firefox.

@rfk any ideas what this could be?

INFO: 1438120583943 FirefoxAccounts ERROR   FxA rejecting with error AUTH_ERROR, details: {"name":"FxAccountsOAuthGrantClientError","code":401,"errno":1104,"error":"Bad Request","message":"Invalid assertion"}
INFO: 1438120583944 FirefoxAccounts ERROR   Could not retrieve profile data: Error: AUTH_ERROR (resource://gre/modules/FxAccounts.jsm:1264:18) JS Stack trace: FxAccountsInternal.prototype._error@FxAccounts.jsm:1264:18 < FxAccountsInternal.prototype._errorToErrorClass@FxAccounts.jsm:1252:14 < FxAccountsInternal.prototype.getOAuthToken<@FxAccounts.jsm:1196:13 < TaskImpl_run@Task.jsm:315:40 < Handler.prototype.process@Promise-backend.js:937:21 < this.PromiseWalker.walkerLoop@Promise-backend.js:813:7 < Promise*this.PromiseWalker.scheduleWalkerLoop@Promise-backend.js:744:11 < this.PromiseWalker.schedulePromise@Promise-backend.js:776:7 < this.PromiseWalker.completePromise@Promise-backend.js:711:7 < this.FxAccountsOAuthGrantClient.prototype._createRequest/</request.onComplete@FxAccountsOAuthGrantClient.jsm:175:16 < onStopRequest@rest.js:481:5
INFO: 1438120583945 FirefoxAccounts ERROR   FxA rejecting with error UNKNOWN_ERROR, details: Error: AUTH_ERROR (resource://gre/modules/FxAccounts.jsm:1264:18) JS Stack trace: FxAccountsInternal.prototype._error@FxAccounts.jsm:1264:18 < FxAccountsInternal.prototype._errorToErrorClass@FxAccounts.jsm:1252:14 < FxAccountsInternal.prototype.getOAuthToken<@FxAccounts.jsm:1196:13 < TaskImpl_run@Task.jsm:315:40 < Handler.prototype.process@Promise-backend.js:937:21 < this.PromiseWalker.walkerLoop@Promise-backend.js:813:7 < Promise*this.PromiseWalker.scheduleWalkerLoop@Promise-backend.js:744:11 < this.PromiseWalker.schedulePromise@Promise-backend.js:776:7 < this.PromiseWalker.completePromise@Promise-backend.js:711:7 < this.FxAccountsOAuthGrantClient.prototype._createRequest/</request.onComplete@FxAccountsOAuthGrantClient.jsm:175:16 < onStopRequest@rest.js:481:5
INFO: 1438120583946 FirefoxAccounts ERROR   Error updating FxA profile: Error: UNKNOWN_ERROR (resource://gre/modules/FxAccounts.jsm:1264:18) JS Stack trace: FxAccountsInternal.prototype._error@FxAccounts.jsm:1264:18 < FxAccountsInternal.prototype._errorToErrorClass@FxAccounts.jsm:1259:12 < FxAccountsInternal.prototype.getSignedInUserProfile/<@FxAccounts.jsm:1304:35 < promise callback*FxAccountsInternal.prototype.getSignedInUserProfile@FxAccounts.jsm:1295:1 < gFxAccounts.updateAppMenuItem/<@browser.js:11488:25 < Handler.prototype.process@Promise-backend.js:934:23 < this.PromiseWalker.walkerLoop@Promise-backend.js:813:7 < Promise*this.PromiseWalker.scheduleWalkerLoop@Promise-backend.js:744:11 < this.PromiseWalker.schedulePromise@Promise-backend.js:776:7 < this.PromiseWalker.completePromise@Promise-backend.js:711:7 < this.BrowserIDManager.prototype._fetchTokenForUser/getToken/cb@browserid_identity.js:566:16 < callCallback@tokenserverclient.js:276:11 < processTokenResponse@tokenserverclient.js:412:1 < onResponse@tokenserverclient.js:286:9 < onStopRequest@rest.js:481:5
vladikoff commented 9 years ago

Should be fixed via https://bugzilla.mozilla.org/show_bug.cgi?id=1182740

rfk commented 9 years ago

I wonder if it's trying to talk to production OAuth for the profile stuff, and we need to add additional config options into local profile customizations.

rfk commented 9 years ago

Yep, I think we need to set identity.fxaccounts.remote.oauth.uri and identity.fxaccounts.remote.profile.uri prefs to make this work. (Or actually get around to doing that service-discovery thing so that firefox can pick all of that up automatically)

shane-tomlinson commented 9 years ago

(Or actually get around to doing that service-discovery thing so that firefox can pick all of that up automatically)

Another reason for service discovery!

vladikoff commented 9 years ago

That fixed it! Thank you Ryan!!