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:
Send a
POST
request to the/crafter-social/crafter-security-login
endpoint with theusername
andpassword
parametersInclude 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 "ticket":"0489ca78-cd96-46c2-bc96-c1ea1fa4db6f",
3 "profile":{
4 "username":"admin",
5 "password":null,
6 "email":"admin@example.com",
7 "verified":false,
8 "enabled":true,
9 "createdOn":1554832283831,
10 "lastModified":1554834126479,
11 "tenant":"default",
12 "roles":[
13 "SOCIAL_SUPERADMIN",
14 "PROFILE_SUPERADMIN"
15 ],
16 "attributes":{
17 "socialContexts":[
18 {
19 "name":"Default",
20 "id":"f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
21 "roles":[
22 "SOCIAL_ADMIN",
23 "SOCIAL_MODERATOR",
24 "SOCIAL_USER"
25 ]
26 }
27 ]
28 },
29 "failedLoginAttempts":0,
30 "lastFailedLogin":null,
31 "id":"5cacdb9b386f920d482a5ad4"
32 },
33 "remembered":false
34}
Comments