You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Azure AD as OAuth2 provider and using https://graph.microsoft.com/v1.0/me/ as Identity Path you get the following error on log in (server log):
{"line":"392","file":"oauth_server.js","message":"Error in OAuth Server: Key @odata.context must not contain '.'","time":{"$date":1548170235154},"level":"warn"}
Exception while invoking method 'login' { MinimongoError: Key @odata.context must not contain '.'
at MinimongoError (packages/minimongo/common.js:1087:17)
at assertIsValidFieldName (packages/minimongo/local_collection.js:1889:11)
at Object.JSON.stringify (packages/minimongo/local_collection.js:1880:7)
at JSON.stringify (<anonymous>)
at assertHasValidFieldNames (packages/minimongo/local_collection.js:1879:10)
at Function.LocalCollection._modify (packages/minimongo/local_collection.js:1184:5)
at Function.LocalCollection._createUpsertDocument (packages/minimongo/local_collection.js:935:19)
at MongoConnection._update (packages/mongo/mongo_driver.js:546:38)
at MongoConnection.<anonymous> (packages/meteor.js:376:21)
at MongoConnection.(anonymous function) [as update] (packages/mongo/mongo_driver.js:754:49)
at Collection.update (packages/mongo/collection.js:585:31)
at Collection.upsert (packages/mongo/collection.js:655:17)
at Object.OAuth._storePendingCredential (packages/oauth/pending_credentials.js:56:29)
at OAuth._requestHandlers.(anonymous function) (packages/oauth2/oauth2_server.js:17:11)
at middleware (packages/oauth/oauth_server.js:161:5)
at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
message: 'Key @odata.context must not contain \'.\'',
name: 'MinimongoError',
futureStack: 'MinimongoError: Key @odata.context must not contain \'.\'\n at MinimongoError (packages/minimongo/common.js:1087:17)\n at assertIsValidFieldName (packages/minimongo/local_collection.js:1889:11)\n at Object.JSON.stringify (packages/minimongo/local_collection.js:1880:7)\n at JSON.stringify (<anonymous>)\n at assertHasValidFieldNames (packages/minimongo/local_collection.js:1879:10)\n at Function.LocalCollection._modify (packages/minimongo/local_collection.js:1184:5)\n at Function.LocalCollection._createUpsertDocument (packages/minimongo/local_collection.js:935:19)\n at MongoConnection._update (packages/mongo/mongo_driver.js:546:38)\n at MongoConnection.<anonymous> (packages/meteor.js:376:21)\n at MongoConnection.(anonymous function) [as update] (packages/mongo/mongo_driver.js:754:49)\n at Collection.update (packages/mongo/collection.js:585:31)\n at Collection.upsert (packages/mongo/collection.js:655:17)\n at Object.OAuth._storePendingCredential (packages/oauth/pending_credentials.js:56:29)\n at OAuth._requestHandlers.(anonymous function) (packages/oauth2/oauth2_server.js:17:11)\n at middleware (packages/oauth/oauth_server.js:161:5)\n at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40' }
I suggest replacing every unsupported character or simply ignoring it since rocketchat is not going to use it anyway.
I wanted to use the openid endpoint originally but then the mail address is not picked up by rocket chat (probably because it's not the key "mail") so to use that it would be needed to customize the field that is used for mail.
Description:
When using Azure AD as OAuth2 provider and using https://graph.microsoft.com/v1.0/me/ as Identity Path you get the following error on log in (server log):
The content of https://graph.microsoft.com/v1.0/me/ is the following:
Server Setup Information:
This might be related to #10931
The text was updated successfully, but these errors were encountered: