Compare commits
13 Commits
1.0.2-SNAP
...
1.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30de3ea9bc | ||
|
|
a6cefde0e5 | ||
|
|
4de27beb76 | ||
|
|
741a322798 | ||
|
|
f702e70705 | ||
|
|
a42c80f22d | ||
|
|
5c406fe4e1 | ||
|
|
5a82dd0792 | ||
|
|
fa88e58055 | ||
|
|
c0ca2979a7 | ||
|
|
12369820e5 | ||
|
|
3f5989c917 | ||
|
|
30e7f01a78 |
@@ -1,7 +1,8 @@
|
||||
## 版本更新记录
|
||||
|
||||
### 【1.0.2-SNAPSHOT】2019-08-31
|
||||
### 【1.1.0】2019-09-04
|
||||
|
||||
- 升级 `JustAuth` 版本:1.11.0,支持 `GitLab`、`酷家乐`
|
||||
- 添加内置的 Redis 缓存策略,通过配置项可配,不需要额外实现
|
||||
- 支持 Redis 缓存自定义缓存前缀、自定义缓存过期时间
|
||||
|
||||
|
||||
59
README.md
59
README.md
@@ -30,7 +30,7 @@ https://github.com/xkcoding/justauth-spring-boot-starter-demo
|
||||
<dependency>
|
||||
<groupId>com.xkcoding</groupId>
|
||||
<artifactId>justauth-spring-boot-starter</artifactId>
|
||||
<version>1.0.2-SNAPSHOT</version>
|
||||
<version>1.1.0</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
@@ -242,7 +242,7 @@ public class AuthStateConfiguration {
|
||||
|
||||
## 附录
|
||||
|
||||
### 1. 配置
|
||||
### 1. 基础配置
|
||||
|
||||
`justauth` 配置列表
|
||||
|
||||
@@ -267,29 +267,38 @@ public class AuthStateConfiguration {
|
||||
| `justauth.cache.prefix` | `string` | JUSTAUTH::STATE:: | | 缓存前缀,目前只对redis缓存生效,默认 JUSTAUTH::STATE:: |
|
||||
| `justauth.cache.timeout` | `java.time.Duration` | 3分钟 | | 超时时长,目前只对redis缓存生效,默认3分钟 |
|
||||
|
||||
### 2. 私服
|
||||
### 2. SNAPSHOT版本
|
||||
|
||||
如果想体验快照版本,需要在 `pom.xml` 文件里添加如下配置
|
||||
如果需要体验快照版本,可以在你的maven目录找到 `settings.xml`进行如下配置:
|
||||
|
||||
```xml
|
||||
<repositories>
|
||||
<!--阿里云私服-->
|
||||
<repository>
|
||||
<id>aliyun</id>
|
||||
<name>aliyun</name>
|
||||
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
||||
</repository>
|
||||
<!--xkcoding 私服-->
|
||||
<repository>
|
||||
<id>xkcoding-nexus</id>
|
||||
<name>xkcoding nexus</name>
|
||||
<url>https://nexus.xkcoding.com/repository/maven-public/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
```
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>justauth-test</id>
|
||||
<repositories>
|
||||
<!--阿里云私服-->
|
||||
<repository>
|
||||
<id>aliyun</id>
|
||||
<name>aliyun</name>
|
||||
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
||||
</repository>
|
||||
<!--xkcoding 私服-->
|
||||
<repository>
|
||||
<id>xkcoding-nexus</id>
|
||||
<name>xkcoding nexus</name>
|
||||
<url>https://nexus.xkcoding.com/repository/maven-public/</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
<activeProfiles>
|
||||
<activeProfile>justauth-test</activeProfile>
|
||||
</activeProfiles>
|
||||
```
|
||||
|
||||
|
||||
4
pom.xml
4
pom.xml
@@ -23,7 +23,7 @@
|
||||
|
||||
<groupId>com.xkcoding</groupId>
|
||||
<artifactId>justauth-spring-boot-starter</artifactId>
|
||||
<version>1.0.2-SNAPSHOT</version>
|
||||
<version>1.1.0</version>
|
||||
|
||||
<name>justauth-spring-boot-starter</name>
|
||||
<url>https://github.com/xkcoding/justauth-spring-boot-starter</url>
|
||||
@@ -67,7 +67,7 @@
|
||||
<!--SpringBoot版本-->
|
||||
<spring-boot.version>2.1.6.RELEASE</spring-boot.version>
|
||||
<!--JustAuth版本-->
|
||||
<justauth.version>1.10.1</justauth.version>
|
||||
<justauth.version>1.11.0</justauth.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -112,6 +112,10 @@ public class AuthRequestFactory {
|
||||
return new AuthHuaweiRequest(config, authStateCache);
|
||||
case WECHAT_ENTERPRISE:
|
||||
return new AuthWeChatEnterpriseRequest(config, authStateCache);
|
||||
case GITLAB:
|
||||
return new AuthGitlabRequest(config, authStateCache);
|
||||
case KUJIALE:
|
||||
return new AuthKujialeRequest(config, authStateCache);
|
||||
default:
|
||||
throw new AuthException(AuthResponseStatus.UNSUPPORTED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user