{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/3156","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/3156/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/3156/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/3156/events","html_url":"https://github.com/ParsePlatform/parse-server/pull/3156","id":192994630,"number":3156,"title":"Cloud Code: Allows user session creation with DIRECT_ACCESS","user":{"login":"flovilmart","id":364568,"avatar_url":"https://avatars.githubusercontent.com/u/364568?v=3","gravatar_id":"","url":"https://api.github.com/users/flovilmart","html_url":"https://github.com/flovilmart","followers_url":"https://api.github.com/users/flovilmart/followers","following_url":"https://api.github.com/users/flovilmart/following{/other_user}","gists_url":"https://api.github.com/users/flovilmart/gists{/gist_id}","starred_url":"https://api.github.com/users/flovilmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flovilmart/subscriptions","organizations_url":"https://api.github.com/users/flovilmart/orgs","repos_url":"https://api.github.com/users/flovilmart/repos","events_url":"https://api.github.com/users/flovilmart/events{/privacy}","received_events_url":"https://api.github.com/users/flovilmart/received_events","type":"User","site_admin":false},"labels":[{"id":321679789,"url":"https://api.github.com/repos/ParsePlatform/parse-server/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-01T23:43:45Z","updated_at":"2016-12-03T00:38:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/pulls/3156","html_url":"https://github.com/ParsePlatform/parse-server/pull/3156","diff_url":"https://github.com/ParsePlatform/parse-server/pull/3156.diff","patch_url":"https://github.com/ParsePlatform/parse-server/pull/3156.patch"},"body":"In an effort to remove the overhead of running cloud code with the HTTP interface, it's required to use the provided optional `installationId`.\r\n\r\nFor ex:\r\n\r\n```\r\nlet user = new Parse.User();\r\nuser.save({username: \"hello\", password: \"world\"}).then((user) => {\r\n     // the user has no Session\r\n});\r\n```\r\n\r\n```\r\nParse.Cloud.define(\"signupUser\", function(req, res) {\r\n  let installationId = req.installationId; // installation Id passed by the client\r\n  let user = new Parse.User();\r\n  user.save({username: req.username, password: req.pass}, { installationId }).then((user) => {\r\n    // the session token will be valid for that user!\r\n    res.success(user.getSessionToken());\r\n  });\r\n});\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/264599651","html_url":"https://github.com/ParsePlatform/parse-server/pull/3156#issuecomment-264599651","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/3156","id":264599651,"user":{"login":"facebook-github-bot","id":6422482,"avatar_url":"https://avatars.githubusercontent.com/u/6422482?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot","html_url":"https://github.com/facebook-github-bot","followers_url":"https://api.github.com/users/facebook-github-bot/followers","following_url":"https://api.github.com/users/facebook-github-bot/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot/orgs","repos_url":"https://api.github.com/users/facebook-github-bot/repos","events_url":"https://api.github.com/users/facebook-github-bot/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T00:38:11Z","updated_at":"2016-12-03T00:38:11Z","body":"@flovilmart updated the pull request - [view changes](https://github.com/ParsePlatform/parse-server/pull/3156/files/e941acc591830c6957c3a1ce361e8e5b2bbacfa8..8ead94b8f9dacc8b37ea71e8314104ccc8d567b8)"}}
{"actor":{"display_login":"facebook-github-bot"}}