File tree Expand file tree Collapse file tree 4 files changed +85
-1
lines changed
Expand file tree Collapse file tree 4 files changed +85
-1
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,9 @@ protected void configure(HttpSecurity http) throws Exception {
134134 "/openapi.yaml" ,
135135 "/swagger-ui/**" ,
136136 "/swagger-ui.html" ,
137- "/log4j"
137+ "/log4j" ,
138+ "/hidden" ,
139+ "/hidden/*"
138140 ).permitAll ()
139141 .anyRequest ().authenticated ()
140142 .and ()
Original file line number Diff line number Diff line change 1+ package hawk .controller ;
2+
3+ import org .springframework .stereotype .Controller ;
4+ import org .springframework .ui .Model ;
5+ import org .springframework .web .bind .annotation .GetMapping ;
6+
7+ @ Controller
8+ public class HiddenController {
9+
10+ @ GetMapping ("/hidden" )
11+ public String index (Model model ) {
12+ model .addAttribute ("title" , "Hidden Page" );
13+ return "hidden" ;
14+ }
15+
16+ @ GetMapping ("/hidden/hidden2" )
17+ public String jwtAuth (Model model ) {
18+ model .addAttribute ("title" , "Rando hidden page" );
19+ return "hidden2" ;
20+ }
21+ }
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en " xmlns ="http://www.w3.org/1999/xhtml " xmlns:th ="https://www.thymeleaf.org "
3+ xmlns:sec ="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3 ">
4+ < head >
5+ < title th:text ="${title} "> </ title >
6+ < th:block th:replace ="general.html :: head "/>
7+ </ head >
8+
9+ < body >
10+ < div class ="container ">
11+ < div th:insert ="general.html :: header " class ="header "> </ div >
12+ < div class ="card mt-3 ">
13+ < div class ="card-body ">
14+ < ul >
15+ < li > < a th:href ="@{/hidden/hidden2} "> Another rando</ a > </ li >
16+ </ ul >
17+ </ div >
18+ </ div >
19+ < th:block th:replace ="general.html :: scripts "/>
20+ </ div >
21+ </ body >
22+ </ html >
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < title > <!DOCTYPE html>
6+ < html lang ="en " xmlns ="http://www.w3.org/1999/xhtml " xmlns:th ="https://www.thymeleaf.org "
7+ xmlns:sec ="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3 ">
8+ < head >
9+ < title th:text ="${title} "> </ title >
10+ < th:block th:replace ="general.html :: head "/>
11+
12+ < style >
13+ # results {
14+ height : 150px ;
15+ overflow : scroll;
16+ padding : 10px ;
17+ }
18+ </ style >
19+ </ head >
20+
21+ < body >
22+ < div class ="container ">
23+ < div th:insert ="general.html :: header " class ="header "> </ div >
24+ < div class ="card mt-3 ">
25+ < div class ="card-body ">
26+ < ul >
27+ < li > Just another hidden page</ li >
28+ </ ul >
29+ </ div >
30+ </ div >
31+ < th:block th:replace ="general.html :: scripts "/>
32+ </ div >
33+ </ body >
34+ </ html > </ title >
35+ </ head >
36+ < body >
37+
38+ </ body >
39+ </ html >
You can’t perform that action at this time.
0 commit comments