Can I access Apex Rest API from an external system using customer community user credentials?
1 Answer
Hope this below link helps in your scenario.
The great Pat Patterson has a blog post about this on the developer relations blog (https://developer.salesforce.com/blogs/developer-relations/2013/02/oauth-for-portal-users.html) which gives some details about setting this up.
Check this as well.
-
@metadaddy, aka the great Pat Patterson! (I found that answer to be a great help as well!!) Commented Sep 23, 2017 at 15:01
-
@Samuel Robert, Am getting unsupported_granttype error. Commented Sep 25, 2017 at 13:26
-
I tried username - password flow using Admin credentials and it worked fine. When I changed the endpoint with community url and used credentials of an active community user, got this error :
{ "error": "unsupported_grant_type", "error_description": "grant type not supported" }
Commented Sep 25, 2017 at 13:34 -
It worked. Thank you Samuel for this infomation. Web Server Auth Flow is working perfect with communities. But Username-Password flow will not work in this case. Commented Sep 26, 2017 at 12:34