• Document Up to Date

Authenticate

Authenticates the user, and returns a ticket identifying the authentication.

Resource Information

This service uses the tomcat application on port 8080 by default. To see a list of default ports click here

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

HTTP Verb
POST
URL
/api/1/authentication/authenticate
Response Formats
JSON

Parameters

Name
Type
Required
Description
accessTokenId

String


The access token ID of the application
making the call
tentantName
String
The tenant’s name
username
String
The username
password
String
The password

Example

Request

POST .../api/1/authentication/authenticate
accessTokenId=e8f5170c-877b-416f-b70f-4b09772f8e2d
tenantName=default
username=admin
password=admin

Response

Status 200 OK

{
  "tenant": "default",
  "profileId": "5925a68def86951f895cf497",
  "lastRequestTime": 1495659198937,
  "id": "6b701758-cc0b-4858-8de0-3139a1d7bdc8"
}

Responses

Status
Location
Response Body
200

See example above.

401



{ "errorCode": "BAD_CREDENTIALS", "message":
"Invalid username and/or password"  }
500

{ "message" : "Internal server error" }