Authentication and authorization service
Este é o repositorio criada para a solução de um microservice de autenticação e autorização utilizando as tecnologias JAVA, Spring Security e JWT, que possa ser utilizada por qualquer aplicação REST.
Membros:
gradlew clean build
docker build -t sgm/auth -f .\Dockerfile .
docker run -d -p 9090:9090 sgm/auth
http://localhost:9090/swagger-ui.html#/
OPEN
POST /users/signin
curl -X POST "http://localhost:9090/users/signin?password=1234&username=1234" -H "accept: */*"
Parameter | Type | Description |
---|---|---|
username |
string |
Required. User username |
password |
string |
Required. password |
OPEN
POST /users/signup
curl -X POST "http://localhost:9090/users/signup" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"username\": \"string\", \"email\": \"string\", \"password\": \"string\", \"roles\": [ \"ROLE_ADMIN\" ]}"
Parameter | Type | Description |
---|---|---|
Name |
string |
Required. Usar fullnome |
CPF |
string |
Required. User CPF |
Phone |
string |
Required. User telephone |
username |
string |
Required. username |
password |
string |
Required. senha |
email |
string |
Required. email |
roles |
List |
Required. Lista das roles |
OPEN
GET /users/refresh
curl -X GET "http://localhost:9090/users/refresh" -H "accept: */*"
ROLE_ADMIN
DELETE /users/{username}
curl -X DELETE "http://localhost:9090/users/citizen" -H "accept: */*"
Parameter | Type | Description |
---|---|---|
username |
string |
Required. User username |
ROLE_ADMIN
POST /users/{userName}
curl -X GET "http://localhost:9090/users/citizen" -H "accept: */*"
Parameter | Type | Description |
---|---|---|
username |
string |
Required. User username |
Execute gradle htmlDependecyReport
para gerar um relatório HTML mostrando a hierarquia de dependencias de cada subprojeto