{"action":"created","issue":{"url":"https://api.github.com/repos/gotthardp/lorawan-server/issues/496","repository_url":"https://api.github.com/repos/gotthardp/lorawan-server","labels_url":"https://api.github.com/repos/gotthardp/lorawan-server/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/gotthardp/lorawan-server/issues/496/comments","events_url":"https://api.github.com/repos/gotthardp/lorawan-server/issues/496/events","html_url":"https://github.com/gotthardp/lorawan-server/issues/496","id":367264866,"node_id":"MDU6SXNzdWUzNjcyNjQ4NjY=","number":496,"title":"Using MongoDB authentification","user":{"login":"Heiner92","id":32865504,"node_id":"MDQ6VXNlcjMyODY1NTA0","avatar_url":"https://avatars0.githubusercontent.com/u/32865504?v=4","gravatar_id":"","url":"https://api.github.com/users/Heiner92","html_url":"https://github.com/Heiner92","followers_url":"https://api.github.com/users/Heiner92/followers","following_url":"https://api.github.com/users/Heiner92/following{/other_user}","gists_url":"https://api.github.com/users/Heiner92/gists{/gist_id}","starred_url":"https://api.github.com/users/Heiner92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heiner92/subscriptions","organizations_url":"https://api.github.com/users/Heiner92/orgs","repos_url":"https://api.github.com/users/Heiner92/repos","events_url":"https://api.github.com/users/Heiner92/events{/privacy}","received_events_url":"https://api.github.com/users/Heiner92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-05T15:38:46Z","updated_at":"2018-10-06T08:47:13Z","closed_at":null,"author_association":"NONE","body":"I set up authentification for my MongoDB and as a result can't get my connector to publish the received uplinks any more (it used to work just fine before setting up auth).\r\n\r\nI tried playing with the authentification options of the connector but nothing seems to work.\r\nIs is at this point possible to authenticate to a MongoDB?\r\nIf not would you consider adding this as a feature in the near future? If so, I would also need to specify the authentification DB as is possible in MongoDB Compass (screenshot below).\r\n\r\n![grafik](https://user-images.githubusercontent.com/32865504/46544849-f5560280-c8c4-11e8-8fe9-2e9a21a0a4c6.png)\r\n\r\n\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/gotthardp/lorawan-server/issues/comments/427557522","html_url":"https://github.com/gotthardp/lorawan-server/issues/496#issuecomment-427557522","issue_url":"https://api.github.com/repos/gotthardp/lorawan-server/issues/496","id":427557522,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzU1NzUyMg==","user":{"login":"Heiner92","id":32865504,"node_id":"MDQ6VXNlcjMyODY1NTA0","avatar_url":"https://avatars0.githubusercontent.com/u/32865504?v=4","gravatar_id":"","url":"https://api.github.com/users/Heiner92","html_url":"https://github.com/Heiner92","followers_url":"https://api.github.com/users/Heiner92/followers","following_url":"https://api.github.com/users/Heiner92/following{/other_user}","gists_url":"https://api.github.com/users/Heiner92/gists{/gist_id}","starred_url":"https://api.github.com/users/Heiner92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heiner92/subscriptions","organizations_url":"https://api.github.com/users/Heiner92/orgs","repos_url":"https://api.github.com/users/Heiner92/repos","events_url":"https://api.github.com/users/Heiner92/events{/privacy}","received_events_url":"https://api.github.com/users/Heiner92/received_events","type":"User","site_admin":false},"created_at":"2018-10-06T08:47:13Z","updated_at":"2018-10-06T08:47:13Z","author_association":"NONE","body":"I can't find anything about authentification in the library you linked. Could you please show me how you used it? I hope to find a way of making this work with a custom auth DB (usually you just have to connect to the auth DB first, send user & pw and then you can connect to all DBs the user has rights to access)\r\n\r\nThis is how you can do it in python.\r\n\r\n```server='servername'\r\nport=27017\r\nusername='username'\r\npassword='mypassword1234'\r\nauthSource='auth'\r\nauthMechanism='SCRAM-SHA-1'\r\nuri = \"mongodb://{}:{}@{}:{}/?authSource={}&authMechanism={}\".format(username,password,server,port,authSource,authMechanism)\r\nmongoclient = MongoClient(uri)```"}}
{"actor":{"display_login":"Heiner92"}}