Crafter Social API

The context for this API is /crafter-social/, please prefix the API URLs with this context.

Note

All request in this API require the user to be authenticated with the following steps:

  1. Send a POST request to the /crafter-social/crafter-security-login endpoint with the username and password parameters

  2. Include the cookies set in the response of the login in later requests

Besides setting the authentication cookies the login response also provides the user’s information:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
   "ticket":"0489ca78-cd96-46c2-bc96-c1ea1fa4db6f",
   "profile":{
      "username":"admin",
      "password":null,
      "email":"admin@example.com",
      "verified":false,
      "enabled":true,
      "createdOn":1554832283831,
      "lastModified":1554834126479,
      "tenant":"default",
      "roles":[
         "SOCIAL_SUPERADMIN",
         "PROFILE_SUPERADMIN"
      ],
      "attributes":{
         "socialContexts":[
            {
               "name":"Default",
               "id":"f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
               "roles":[
                  "SOCIAL_ADMIN",
                  "SOCIAL_MODERATOR",
                  "SOCIAL_USER"
               ]
            }
         ]
      },
      "failedLoginAttempts":0,
      "lastFailedLogin":null,
      "id":"5cacdb9b386f920d482a5ad4"
   },
   "remembered":false
}

Profile Cache