File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ HTTP Status 401 - Full authentication is required to access this resource
27
27
```
28
28
29
29
30
- Test the ` private ` endpoint with ROLE_USER account authentication:
30
+ Test the ` private ` endpoint with ` ROLE_USER ` account authentication:
31
31
32
32
``` sh
33
33
curl -u user:password http://localhost:8080/private
@@ -39,7 +39,7 @@ Hello Private!
39
39
40
40
41
41
42
- Test the ` private ` endpoint with ROLE_ADMIN account authentication:
42
+ Test the ` private ` endpoint with ` ROLE_ADMIN ` account authentication:
43
43
44
44
``` sh
45
45
curl -u admin:password http://localhost:8080/private
@@ -62,7 +62,7 @@ HTTP Status 401 - Bad credentials
62
62
63
63
### Admin access
64
64
65
- Test the ` admin ` endpoint with ROLE_USER account authentication:
65
+ Test the ` admin ` endpoint with ` ROLE_USER ` account authentication:
66
66
67
67
``` sh
68
68
curl -u user:password http://localhost:8080/admin
@@ -79,7 +79,7 @@ Response:
79
79
}
80
80
```
81
81
82
- Test the ` admin ` endpoint with ROLE_ADMIN account authentication:
82
+ Test the ` admin ` endpoint with ` ROLE_ADMIN ` account authentication:
83
83
84
84
``` sh
85
85
curl -u admin:password http://localhost:8080/admin
You can’t perform that action at this time.
0 commit comments