3
3
import club .yuit .oauth .boot .support .common .TokenStoreType ;
4
4
import club .yuit .oauth .boot .support .properities .BootLogLevelProperties ;
5
5
import club .yuit .oauth .boot .support .properities .BootSmsCodeProperties ;
6
+ import lombok .Getter ;
7
+ import lombok .Setter ;
6
8
import org .springframework .boot .context .properties .ConfigurationProperties ;
7
9
import org .springframework .boot .context .properties .EnableConfigurationProperties ;
8
10
import org .springframework .boot .context .properties .NestedConfigurationProperty ;
17
19
@ Configuration
18
20
@ EnableConfigurationProperties
19
21
@ ConfigurationProperties (prefix = "boot.oauth" )
22
+ @ Getter
23
+ @ Setter
20
24
public class BootSecurityProperties {
21
25
22
26
@@ -27,6 +31,7 @@ public class BootSecurityProperties {
27
31
private TokenStoreType tokenStoreType = TokenStoreType .memory ;
28
32
29
33
private String loginProcessUrl ="/auth/authorize" ;
34
+ private String loginPage ="/auth/login" ;
30
35
31
36
32
37
/**
@@ -43,46 +48,7 @@ public class BootSecurityProperties {
43
48
44
49
45
50
46
- /*****--------------getter setter----------------------******/
47
- public TokenStoreType getTokenStoreType () {
48
- return tokenStoreType ;
49
- }
50
51
51
- public void setTokenStoreType (TokenStoreType tokenStoreType ) {
52
- this .tokenStoreType = tokenStoreType ;
53
- }
54
-
55
- public String getLoginProcessUrl () {
56
- return loginProcessUrl ;
57
- }
58
-
59
- public void setLoginProcessUrl (String loginProcessUrl ) {
60
- this .loginProcessUrl = loginProcessUrl ;
61
- }
62
-
63
- public BootLogLevelProperties getLogging () {
64
- return logging ;
65
- }
66
-
67
- public void setLogging (BootLogLevelProperties logging ) {
68
- this .logging = logging ;
69
- }
70
-
71
- public BootSmsCodeProperties getSms () {
72
- return sms ;
73
- }
74
-
75
- public void setSms (BootSmsCodeProperties sms ) {
76
- this .sms = sms ;
77
- }
78
-
79
- public String getTokenSigningKey () {
80
- return tokenSigningKey ;
81
- }
82
-
83
- public void setTokenSigningKey (String tokenSigningKey ) {
84
- this .tokenSigningKey = tokenSigningKey ;
85
- }
86
52
87
53
88
54
}
0 commit comments