forked from softeerbootcamp-7th/be-was
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSecurityConfig.java
More file actions
26 lines (20 loc) · 796 Bytes
/
SecurityConfig.java
File metadata and controls
26 lines (20 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package config;
import java.util.HashMap;
import java.util.Map;
import static java.lang.Boolean.TRUE;
public class SecurityConfig {
private static final Map<String, Boolean> shouldAuthenticated = new HashMap<>();
static {
shouldAuthenticated.put("/main", TRUE);
shouldAuthenticated.put("/main/index.html", TRUE);
shouldAuthenticated.put("/article", TRUE);
shouldAuthenticated.put("/article/index.html", TRUE);
shouldAuthenticated.put("/comment", TRUE);
shouldAuthenticated.put("/comment/index.html", TRUE);
shouldAuthenticated.put("/mypage", TRUE);
shouldAuthenticated.put("/mypage/index.html", TRUE);
}
public static Map<String, Boolean> getShouldAuthenticated() {
return shouldAuthenticated;
}
}