User Page


Overview

Returns data and authentication tokens for a user based on their username and password


POST /api/sys/users/token

Gets JWB token for a user based on their username and password. JWB tokens can be used to authenticate against the Rest API or to log a user in the member portal (once) without having to ask for their credentials.

These tokens can be used until the expire when used to authenticate agains the REST API but only once when used to log the user in the members portal. Use the option to refresh the token using the REST API to obtain a new token.

POST https://spaces.nexudus.com/api/sys/users/token
Parameters: 
{ 
  email: "..@..", 
  password: "xyz",
  validityInMinutes: 30
}
{
  "Status": 200,
  "Message": "OK",
  "Value": "1350eXAiOiJKV1QiLCJhbGciOiJIUzI11J9.[truncated].dfE1dtaeOfqhasdasd23hCJUn_RMW9usu9oUdE",
  "WasSuccessful": true
}
      
or
      
{
  "Status": 500,
  "Message": "The email address or password you entered is not valid.",
  "WasSuccessful": false
}

POST /api/sys/users/{id}/token/refresh

Gets a new authentication token based on a set of REST API user credentials

This method requires you to pass REST authnetication details, not the email and password of the user you are obtaining the token for!

POST https://spaces.nexudus.com/api/sys/users/{id}/token/refresh
Parameters: 
{id}: the id of the user to obtain the token for.
{ 
  auth: {
    validityInMinutes: 30
  }
}
{
  "Status": 200,
  "Message": "OK",
  "Value": "1350eXAiOiJKV1QiLCJhbGciOiJIUzI11J9.[truncated].dfE1dtaeOfqhasdasd23hCJUn_RMW9usu9oUdE",
  "WasSuccessful": true
}
      
or
      
{
  "Status": 500,
  "Message": "The email address or password you entered is not valid.",
  "WasSuccessful": false
}

GET /en/user/login?t={string}&redirectUrl={string}

Logs a user in on your members portal based on a authentication token

GET /en/user/login?t={token}&redirectUrl={relative_url}
Parameters: 

token: a JWT token
{
  "Status": 200,
  "Message": "OK",
  "Value": "1350eXAiOiJKV1QiLCJhbGciOiJIUzI11J9.[truncated].dfE1dtaeOfqhasdasd23hCJUn_RMW9usu9oUdE",
  "Errors": null,
  "WasSuccessful": true
}

POST /api/sys/users/resetPassword?email=:email

Sends a password reset email to a specific user

POST https://spaces.nexudus.com/api/sys/users/resetPassword?email=:email
Parameters: 
{email}: the email address of the user to send the password reset to
{
  "Status": 200,
  "Message": "We have sent you an email with instructions on how to change your password.",
  "WasSuccessful": true
}
      
or
      
404 Error if user is not found


Source: XML ! RSS