Closed Bug 1590181 Opened 6 years ago Closed 6 years ago

auth0 strategy: user is null

Categories

(Taskcluster :: Services, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: hassan)

Details

https://sentry.prod.mozaws.net/operations/taskcluster-cloudops-stage/issues/6509397/

TypeError: Cannot read property 'identity' of null
  File "/app/services/web-server/src/login/strategies/mozilla-auth0.js", line 217, col 28, in Strategy.passport.use.Auth0Strategy [as _verify]
    identity: user.identity,
  File "internal/process/next_tick.js", line 68, col 7, in process._tickCallback

This is happening in the firefox-ci deployment, too -- https://bugzilla.mozilla.org/show_bug.cgi?id=1590181

Flags: needinfo?(helfi92)

And, possibly related -- https://sentry.prod.mozaws.net/operations/taskcluster-firefox-ci/issues/6529960/?query=is:unresolved

Error: Forbidden
  File "/app/node_modules/superagent/lib/node/index.js", line 857, col 15, in Request.callback
    err = new Error(msg);
  File "/app/node_modules/superagent/lib/node/index.js", line 1100, col 20, in null.<anonymous>
    _this4.callback(null, _this4._emitResponse(obj, files));
  File "/app/node_modules/superagent/lib/node/parsers/json.js", line 22, col 7, in IncomingMessage.<anonymous>
    fn(err, body);
  File "events.js", line 203, col 15, in IncomingMessage.emit
  File "domain.js", line 448, col 20, in IncomingMessage.EventEmitter.emit
  File "_stream_readable.js", line 1145, col 12, in endReadableNT
  File "internal/process/next_tick.js", line 63, col 19, in process._tickCallback

I suspect the client is missing a scope. I would ask the IAM team to have that client have the scopes display:null, classification:public, display:all, and display:public.

Flags: needinfo?(helfi92)
Assignee: nobody → helfi92
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.