1
0
mirror of synced 2025-12-10 07:48:16 +08:00

13 Commits

Author SHA1 Message Date
Yangkai.Shen
30de3ea9bc 📝 更新 README.md 2019-09-04 18:58:21 +08:00
Yangkai.Shen
a6cefde0e5 📝 添加 CHANGELOG 2019-09-04 18:58:10 +08:00
Yangkai.Shen
4de27beb76 🔖 发布 1.1.0 2019-09-04 18:57:59 +08:00
Yangkai.Shen
741a322798 ⬆️ 升级 JustAuth 版本:1.11.0,支持 GitLab酷家乐 2019-09-04 18:57:04 +08:00
Yangkai.Shen
f702e70705 📝 更新 README.md 2019-09-02 17:56:31 +08:00
Yangkai.Shen
a42c80f22d 📝 更新 README.md 2019-08-31 13:24:52 +08:00
Yangkai.Shen
5c406fe4e1 Merge branch 'master' into dev 2019-08-31 13:19:00 +08:00
Yangkai.Shen
5a82dd0792 📝 更新 README.md 2019-08-31 13:12:19 +08:00
Yangkai.Shen
fa88e58055 📝 添加 CHANGELOG 2019-08-31 13:12:06 +08:00
Yangkai.Shen
c0ca2979a7 📝 补充注释 2019-08-31 12:38:42 +08:00
Yangkai.Shen
12369820e5 🎨 优化自动装配 2019-08-31 12:34:34 +08:00
Yangkai.Shen
3f5989c917 自定义prefix和超时时间 2019-08-31 11:35:38 +08:00
Yangkai.Shen
30e7f01a78 集成 redis 缓存配置,用户可以通过配置使用缓存,不需要自行实现 2019-08-31 11:04:25 +08:00
4 changed files with 42 additions and 28 deletions

View File

@@ -1,7 +1,8 @@
## 版本更新记录
### 【1.0.2-SNAPSHOT】2019-08-31
### 【1.1.0】2019-09-04
- 升级 `JustAuth` 版本1.11.0,支持 `GitLab``酷家乐`
- 添加内置的 Redis 缓存策略,通过配置项可配,不需要额外实现
- 支持 Redis 缓存自定义缓存前缀、自定义缓存过期时间

View File

@@ -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>
```

View File

@@ -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>

View File

@@ -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);
}