Community Login Service (individual_id_from_login_password)

Post Reply
User avatar
ccbug_admin
Member
Posts: 106
Joined: Wed Oct 14, 2015 8:06 pm

Community Login Service (individual_id_from_login_password)

Post by ccbug_admin » Sat Sep 02, 2017 4:16 pm

Service Description:
The Community Login Service allows one to pass in a CCB user's username and password and have the profile ID returned by the CCB API. 
Potential Uses:
This can be useful as a form of single sign on. For example, if you have a custom built application you could use this service to allow individuals to login to your custom application using their CCB credentials.
Implementation:
For Curl:

Code: Select all

curl -u username:password -d "login=usersusername&password=userspassword" "https://yourchurch.ccbchurch.com/api.php?srv=individual_id_from_login_password"
Response:

Code: Select all

<response>
  <items count="1">
    <item>
     <item_id type="individual">952</item_id>
      <id>952</id>
    </item>
  </items>
</response>
Alternatives:
See Individual Profile from Login and Password which provides the individuals profile rather than just their profile ID.

Post Reply