thinkshout/salesforce — pull request #5 by kostajh (2012-10-17 13:02:51+00:00)
Title: Obtain new session id (access token) using Drush

I've added a Drush command (`sf-session-id`) that allows obtaining and setting a new session ID (access token) via Drush. This way, you can use your Salesforce username and password/token to connect with the REST API and bypass the Oauth workflow. There is still some work to do, noted in @TODOs in the code.

For this to work, I changed `getAccessToken()` and `setAccessToken()` to use a variable instead of storing the token in $_SESSION.

Note that `drush-session-id` was branched off of `drush-integration`, so you could merge this request in and it would cover work in both branches.