{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/3834","labels_url":"https://api.github.com/repos/meteor/meteor/issues/3834/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/3834/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/3834/events","html_url":"https://github.com/meteor/meteor/issues/3834","id":59322695,"number":3834,"title":"Extend oAuth options","user":{"login":"mariorodriguespt","id":1017581,"avatar_url":"https://avatars.githubusercontent.com/u/1017581?v=3","gravatar_id":"","url":"https://api.github.com/users/mariorodriguespt","html_url":"https://github.com/mariorodriguespt","followers_url":"https://api.github.com/users/mariorodriguespt/followers","following_url":"https://api.github.com/users/mariorodriguespt/following{/other_user}","gists_url":"https://api.github.com/users/mariorodriguespt/gists{/gist_id}","starred_url":"https://api.github.com/users/mariorodriguespt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariorodriguespt/subscriptions","organizations_url":"https://api.github.com/users/mariorodriguespt/orgs","repos_url":"https://api.github.com/users/mariorodriguespt/repos","events_url":"https://api.github.com/users/mariorodriguespt/events{/privacy}","received_events_url":"https://api.github.com/users/mariorodriguespt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/feature","name":"feature","color":"02d7e1"},{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Accounts:OAuth","name":"Project:Accounts:OAuth","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T03:21:45Z","updated_at":"2015-03-03T22:22:15Z","closed_at":"2015-03-03T21:56:56Z","body":"I've this use case: I want to subscribe a user a specific options at the Signup. If I use `Accounts.createUser` I cans simply extend the dictionary but If use `Meteor.loginWith<Service>`, what I get in the server is only information provided by the `<Service>`.\r\n\r\nThe best I can do is provide a callback that calls a Method to subscribe to the desired option, although there's is row for a timed attack and it's not an elegant solution at all. I would like to fix this.\r\n\r\nIs this pull requestable?"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/77049612","html_url":"https://github.com/meteor/meteor/issues/3834#issuecomment-77049612","issue_url":"https://api.github.com/repos/meteor/meteor/issues/3834","id":77049612,"user":{"login":"mariorodriguespt","id":1017581,"avatar_url":"https://avatars.githubusercontent.com/u/1017581?v=3","gravatar_id":"","url":"https://api.github.com/users/mariorodriguespt","html_url":"https://github.com/mariorodriguespt","followers_url":"https://api.github.com/users/mariorodriguespt/followers","following_url":"https://api.github.com/users/mariorodriguespt/following{/other_user}","gists_url":"https://api.github.com/users/mariorodriguespt/gists{/gist_id}","starred_url":"https://api.github.com/users/mariorodriguespt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariorodriguespt/subscriptions","organizations_url":"https://api.github.com/users/mariorodriguespt/orgs","repos_url":"https://api.github.com/users/mariorodriguespt/repos","events_url":"https://api.github.com/users/mariorodriguespt/events{/privacy}","received_events_url":"https://api.github.com/users/mariorodriguespt/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T22:22:15Z","updated_at":"2015-03-03T22:22:15Z","body":"I won't say that this is the type \"How can I do this\". I checked the source code and it passing the oAuth response to the `Accounts.onCreateUser` and I can't pass extra arguments to it. The same applies if I try to pass arguments in the oAuthOptions settings object.\r\n\r\nI suggest something like Meteor.loginWith<Service>( oAuthOptions, privateOptions, callback ), so that I can create an account according to a promotion, etc. If this is pull requestable, I don't mind write the code :)"}}