Hey guys I had a dream last night about a huge issue in our ability to aggregate data.
After setting up a remote app, using PHP to "CURL" into login.salesforce.com for authorization, we hit the Username/Password sequence. I see that this actuates frontdoor.jsp which in tern passes you to where you need to be (as long as app is accepted).
The question is how to POST through frontdoor.jsp so we will not have to manually enter a user/pass ?
I found THIS method, using http://[email protected]&pw=xxxxxxxx
which works, but in order to use it, I will need to return to my script....
Without using CURL, and trying to access via
https://login.salesforce.com/services/oauth2/token?response_type=code&client_id=3MVG9A2kN3Bn17hv5JnQay9VirDF4FfYeGdVnwT0fP1AtVJoj3upT9ce7epjSmZPXsSkeX.o74fJ39Q.g9kv_&[email protected]&pw=xxxxxx&redirect_uri=https%3A%2F%2Fsm-rdc-c-dev.foo.com%2FOAuthCallback.php
give me the response error:
<OAuth>
<error>unsupported_grant_type</error>
<error_description>grant type not supported</error_description>
</OAuth>
POST packet looks like this.
client_id 3MVG9A2kN3Bn17hv5JnQay9VirDF4FfYeGdVnwT0fP1AtVJoj3upT9ce7epjSmZPXsSkeX.o74fJ39Q.g9kv_
pw xxxxxxxxxxxxxx
redirect_uri https://sm-rdc-c-dev.foo.com/OAuthCallback.php
response_type code
un [email protected]