{
"type": "TYPE_OF_MESSAGE" ,
"sequence_id": "09caaa73-b2b1-187e-2b24-683550a49b23",
"data" : {}
}{
"data":{
"error_description":"Customer not found",
"error_code":"customer.notFound"
}
}
{
"type":"LOGIN_CUSTOMER",
"sequence_id":"a29e4fd0-581d-e06b-c837-4f5f4be7dd18",
"data":{
"email":"fpi@bk.ru",
"password":"123123"
}
}{
"type":"CUSTOMER_API_TOKEN",
"sequence_id":"cbf187c9-8679-0359-eb3d-c3211ee51a15",
"data":{
"api_token":"afdd312c-3d2a-45ee-aa61-468aba3397f3",
"api_token_expiration_date":"2015-07-15T11:14:30Z"
}
}{
"type":"LOGIN_CUSTOMER",
"sequence_id":"715c13b3-881a-9c97-b853-10be585a9747",
"data":{
"email":"123@gmail.com",
"password":"newPassword"
}
}{
"type":"CUSTOMER_ERROR",
"sequence_id":"715c13b3-881a-9c97-b853-10be585a9747",
"data":{
"error_description":"Customer not found",
"error_code":"customer.notFound"
}
}- Modify
application.yamlto set correct properties - Add needed datasource to java code, see
com.eustimenko.services.auth.configuration.DatasourceConfiguration.mongoTemplate mvn clean installormvn clean install -Dmaven.test.skip=truejava -jar target/auth-0.0.1.jar
mvn clean test
Use base64-encoding to store passwords, see org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder.encode