function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bloblo 

Login fail using chatter oauth api with communities user name/password

hi,

 

We use new Customer Communities licenses, and the customers will be accessing the app through a native mobile
app(android and iOS).  We were told there was API access for communities but we have problem during logging into SFDC via Chatter API with Communities User's uname/password.  The document we refer to is http://www.salesforce.com/us/developer/docs/chatterapi/

The login fail error is {"error":"unsupported_grant_type","error_description":"grant type not supported"}.  The communities licenses user can login to the communities via browser but fail with OAuth.


Please help.

akhilesh_sfdcakhilesh_sfdc
Did you look at the steps on portal authentication mentioned under section "Portal Authentication Using OAuth 2.0 and Force.com Sites" of Mobile SDK dev guide: https://github.com/forcedotcom/SalesforceMobileSDK-Shared/blob/master/doc/mobile_sdk.pdf?raw=true

Also checkout: http://blogs.developerforce.com/developer-relations/2013/02/oauth-for-portal-users.html