File tree 4 files changed +8
-4
lines changed
spring-boot-user-impersonation
src/main/resources/templates
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
# spring-boot-pid
2
- An example project for PID generation with spring-boot.
2
+ An example project for PID generation with spring-boot.
3
+
4
+ It's the demo project for my blog post at http://chclaus.de/2016/02/19/spring-boot-pid/
Original file line number Diff line number Diff line change 1
1
# spring-boot-user-impersonation
2
- An example project to show user impersonation with spring-boot.
2
+ An example project to show user impersonation with spring-boot.
3
+
4
+ It's the demo project for my blog post at http://chclaus.de/2016/02/22/spring-boot-user-impersonation/
Original file line number Diff line number Diff line change 5
5
< strong data-th-if ="${param.logout} "> You have been logged out.</ strong >
6
6
< form data-th-action ="@{/login} " method ="post ">
7
7
< label for ="username "> Username:</ label > < input id ="username " type ="text " name ="username "/>
8
- < label for ="password "> Password:</ label > < input id ="password " type ="text " name ="password "/>
8
+ < label for ="password "> Password:</ label > < input id ="password " type ="password " name ="password "/>
9
9
< input type ="submit " value ="Login "/>
10
10
</ form >
11
11
</ body >
Original file line number Diff line number Diff line change 3
3
xmlns:sec ="http://www.springframework.org/security/tags ">
4
4
5
5
< body >
6
- < h1 data-th-text =" ${#authentication.principal.username} "> [username]</ h1 >
6
+ < h1 sec:authentication =" name "> [username]</ h1 >
7
7
8
8
< div sec:authorize ="hasAnyRole('ROLE_ADMIN','ROLE_PREVIOUS_ADMINISTRATOR') ">
9
9
Very secret user information which is just visible for admins!
You can’t perform that action at this time.
0 commit comments