Skip to content

Commit 681eb89

Browse files
authored
doc(README): Mention that there are default mock users for local dev (#335)
The log after running `mvn clean spring-boot:run` says: ``` INFO 36234 --- [ restartedMain] c.s.c.f.s.c.a.m.MockUsersSecurityConfig : Added mock user {"name":"privileged","password":"","systemUser":false,"privileged":true,"internalUser":false,"roles":[],"attributes":{},"unrestricted":[],"additional":{},"valid":true} INFO 36234 --- [ restartedMain] c.s.c.f.s.c.a.m.MockUsersSecurityConfig : Added mock user {"name":"authenticated","password":"","systemUser":false,"privileged":false,"internalUser":false,"roles":[],"attributes":{},"unrestricted":[],"additional":{},"valid":true} INFO 36234 --- [ restartedMain] c.s.c.f.s.c.a.m.MockUsersSecurityConfig : Added mock user {"name":"admin","password":"admin","systemUser":false,"privileged":false,"internalUser":false,"roles":["admin"],"attributes":{"businessPartner":["10401010"]},"unrestricted":[],"additional":{},"valid":true} INFO 36234 --- [ restartedMain] c.s.c.f.s.c.a.m.MockUsersSecurityConfig : Added mock user {"name":"internal","password":"","systemUser":false,"privileged":false,"internalUser":true,"roles":[],"attributes":{},"unrestricted":[],"additional":{},"valid":true} INFO 36234 --- [ restartedMain] c.s.c.f.s.c.a.m.MockUsersSecurityConfig : Added mock user {"name":"system","password":"","systemUser":true,"privileged":false,"internalUser":false,"roles":[],"attributes":{},"unrestricted":[],"additional":{},"valid":true} INFO 36234 --- [ restartedMain] c.s.c.f.s.c.a.m.MockUsersSecurityConfig : Added mock user {"name":"user","password":"user","systemUser":false,"privileged":false,"internalUser":false,"roles":[],"attributes":{},"unrestricted":[],"additional":{},"valid":true} ``` Also the documentation states that there are users `authenticated` and others. These work when running the app locally.
1 parent 28666d2 commit 681eb89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ Make sure you have set up a development environment (that means, you’ve instal
132132

133133
You'll start with a predefined stock of books as this procedure starts the bookshop application with a CSV-initialized in-memory H2 database.
134134

135-
Two mock users are defined for local development:
135+
Two mock users in addition to the [default mock users](https://cap.cloud.sap/docs/java/security#preconfigured-mock-users)
136+
are defined for local development:
136137
- User: `user`, password: `user` to browse books
137138
- User: `admin`, password: `admin` to manage books and orders
138139

0 commit comments

Comments
 (0)