You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,16 @@ I've written a complete tutorial series for this application on The CalliCoder B
53
53
mvn package
54
54
java -jar target/polls-0.0.1-SNAPSHOT.jar
55
55
```
56
+
5 **Add the default Roles**
57
+
58
+
The spring boot app uses role based authorization powered by spring security. Please execute the following sql queries in the database to insert the `USER` and `ADMIN` roles.
59
+
60
+
```sql
61
+
INSERT INTO roles(name) VALUES('ROLE_USER');
62
+
INSERT INTO roles(name) VALUES('ROLE_ADMIN');
63
+
```
64
+
65
+
Any new user who signs up to the app is assigned the `ROLE_USER` by default.
56
66
57
67
## Steps to Setup the React Front end app (polling-app-client)
0 commit comments