Skip to content

Commit c4bf97a

Browse files
author
Rajeev Kumar Singh
committed
DEFAULT ROLE
1 parent e1d0ac1 commit c4bf97a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ I've written a complete tutorial series for this application on The CalliCoder B
5353
mvn package
5454
java -jar target/polls-0.0.1-SNAPSHOT.jar
5555
```
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.
5666

5767
## Steps to Setup the React Front end app (polling-app-client)
5868

0 commit comments

Comments
 (0)