Continuous integration status:
This project consists in an Authentication Service, using Jwts for generate JSON Web Tokens.
POST
Request Body
{
"username": "some-user",
"password": "some-pass"
}
Response - Status 200 OK
{
"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ7XCJjbGllbnRJZFwiOjEsXCJhY2Nlc",
"user_name": "Lucas",
"access_level": 1
}
Response - Status 404 NOT FOUND
{
"httpStatus": 404,
"message": "Usuário não encontrado."
}
The database used in this project has the following structure:
COLUMNS | TYPE | EXTRA |
---|---|---|
id | INT(11) | AI, PK, NN |
id_client | INT(11) | NN |
name | VARCHAR(255) | NN |
password | VARCHAR(255) | NN |
access_level | INT(11) | NN |
blocked | INT(11) | NN |
- Java JDK 10
- Gradle 4.3 or higher
- H2 Memory Database for integration tests
- Spring Cloud Config for centralize properties
MIT License. Click here for more information.