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
Manuela Lorenzi-Kayser 5Manuela Lorenzi-Kayser 5 

community login with PHP

Hi!

I have written an Apex web service that allows me to create a community user with PHP and cURL. Once the user is created, how do I log it into the community with PHP,? In other words, how can I send the user directly to the portal and provide the login credentials so that the user does not have to enter them, bypassing the login page?

Thanks in advance!

 
Marcelo CostaMarcelo Costa
You can try to redirect injecting the values on the URL.
I would NOT SUGGEST the approach as the username and password would be visible in the URL during the login as plain text and could be catched by any network sniffer.
https://{YourDoamain}.force.com/communityname/login?un={username}&pw={password}

 
Manuela Lorenzi-Kayser 5Manuela Lorenzi-Kayser 5
Hi Marcelo.

Thanks for your answer. I just tried that but it did not work for me: the login page displayed as it normally does and my login credentials in the url had not effect.