Skip to content

Commit df59554

Browse files
committed
添加ApiBoot OAuth Away枚举定义
1 parent 7b0b0d8 commit df59554

File tree

3 files changed

+50
-7
lines changed

3 files changed

+50
-7
lines changed

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/oauth/ApiBootOauthProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ public class ApiBootOauthProperties {
4848
/**
4949
* Oauth2认证存储方式,默认内存方式
5050
*
51-
* @see SecurityAway
51+
* @see OAuthAway
5252
*/
53-
private SecurityAway away = SecurityAway.memory;
53+
private OAuthAway away = OAuthAway.memory;
5454

5555
/**
5656
* Oauth2 clientId
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright [2019] [恒宇少年 - 于起宇]
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
package org.minbox.framework.api.boot.autoconfigure.oauth;
19+
20+
import lombok.Getter;
21+
22+
/**
23+
* ApiBoot OAuth Away
24+
*
25+
* @author:恒宇少年 - 于起宇
26+
* <p>
27+
* DateTime:2019-07-15 11:19
28+
* Blog:http://blog.yuqiyu.com
29+
* WebSite:http://www.jianshu.com/u/092df3f77bca
30+
* Gitee:https://gitee.com/hengboy
31+
* GitHub:https://github.com/hengboy
32+
*/
33+
@Getter
34+
public enum OAuthAway {
35+
/**
36+
* 内存方式
37+
*/
38+
memory,
39+
/**
40+
* jdbc方式
41+
*/
42+
jdbc,
43+
/**
44+
* redis方式
45+
*/
46+
redis
47+
}

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/security/SecurityAway.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,5 @@ public enum SecurityAway {
3838
/**
3939
* jdbc方式
4040
*/
41-
jdbc,
42-
/**
43-
* redis方式
44-
*/
45-
redis
41+
jdbc
4642
}

0 commit comments

Comments
 (0)