I have a native ios app and i want to login using the username password flow, From the POC i made i discovered that for community user, i dont get a security token which i was using while REST call to https://login.salesforce.com/services/oauth2/token
So I want to know is it possible to use username-password flow with community user.
I have already gone through other answers related to same questions in the community, none of them worked for me.
I have checked following links,
also there are few links that suggest using soap API for authentication I tried a curl request but it didn't worked
curl https://uat-uat-rnc.cs8.force.com/callcenter/services/Soap/u/41.0 -H "Content-Type: text/xml; charset=UTF-8" -H "SOAPAction: login" -d @login.txt
heres the content of login.txt
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:partner.soap.sforce.com"> <SOAP-ENV:Header> <ns1:LoginScopeHeader> <ns1:organizationId>00Dl00Gt0000CrM</ns1:organizationId> <ns1:portalId>0DB0l000888ZVGA2</ns1:portalId> </ns1:LoginScopeHeader> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:login> <ns1:username>firstname.lastname@example.org</ns1:username> <ns1:password>India</ns1:password> </ns1:login> </SOAP-ENV:Body> </SOAP-ENV:Envelope>