Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc(README): Mention that there are default mock users for local dev #335

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

bugwelle
Copy link
Contributor

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.

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.
README.md Outdated Show resolved Hide resolved
@rjayasinghe rjayasinghe merged commit 681eb89 into SAP-samples:main Jun 25, 2024
2 checks passed
@bugwelle bugwelle deleted the andre/mock branch June 25, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants