Authentication
- add AuthenticationController - add AuthenticationService - add getUserByUsername to AccountService - add findByUsername to AccountRepository - add SecurityConfiguration - set up authentication
This commit is contained in:
44
http/authentication.http
Normal file
44
http/authentication.http
Normal file
@@ -0,0 +1,44 @@
|
||||
### Get admin information
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "admin",
|
||||
"password": "pass"
|
||||
}
|
||||
|
||||
### Get user information
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "user",
|
||||
"password": "pass"
|
||||
}
|
||||
|
||||
### Get bad user
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "bad user",
|
||||
"password": "pass"
|
||||
}
|
||||
|
||||
### Get bad pass
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "user",
|
||||
"password": "bad pass"
|
||||
}
|
||||
|
||||
### Get disabled user
|
||||
POST {{hostname}}/authenticate
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"username": "disabled",
|
||||
"password": "pass"
|
||||
}
|
||||
Reference in New Issue
Block a user