SciCatProject / backend-v3

SciCat Data Catalogue Backend
https://scicatproject.github.io/documentation/
BSD 3-Clause "New" or "Revised" License
13 stars 17 forks source link

Can not login via OIDC if member of too may groups #717

Open stephan271 opened 1 year ago

stephan271 commented 1 year ago

Summary

Use can not login via OIDC if member of too may groups

Error message

InternalOAuthError 500 Failed to fetch user profile oauthError: [object Object] toString: function() { var m = this.message; if (this.oauthError) { if (this.oauthError instanceof Error) { m += ' (' + this.oauthError + ')'; } else if (this.oauthError.statusCode && this.oauthError.data) { m += ' (status: ' + this.oauthError.statusCode + ' data: ' + this.oauthError.data + ')'; } } return m; }

InternalOAuthError: Failed to fetch user profile at /home/node/app/node_modules/passport-openidconnect/lib/strategy.js:262:42 at passBackControl (/home/node/app/node_modules/oauth/lib/oauth2.js:132:9) at IncomingMessage. (/home/node/app/node_modules/oauth/lib/oauth2.js:157:7) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)