更改版本为2.1.2;为认证类添加扩展属性字段。

This commit is contained in:
yangzhao635226@163.com 2020-07-23 14:58:44 +08:00
parent bf0ecbb873
commit 1e71b5024a
6 changed files with 20 additions and 12 deletions

View File

@ -7,11 +7,11 @@
<parent> <parent>
<groupId>com.diboot</groupId> <groupId>com.diboot</groupId>
<artifactId>diboot-root</artifactId> <artifactId>diboot-root</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
</parent> </parent>
<artifactId>diboot-core-spring-boot-starter</artifactId> <artifactId>diboot-core-spring-boot-starter</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<description>diboot core starter project</description> <description>diboot core starter project</description>
@ -25,7 +25,7 @@
<dependency> <dependency>
<groupId>com.diboot</groupId> <groupId>com.diboot</groupId>
<artifactId>diboot-core</artifactId> <artifactId>diboot-core</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -7,11 +7,11 @@
<parent> <parent>
<groupId>com.diboot</groupId> <groupId>com.diboot</groupId>
<artifactId>diboot-root</artifactId> <artifactId>diboot-root</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
</parent> </parent>
<artifactId>diboot-core</artifactId> <artifactId>diboot-core</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<description>diboot core project</description> <description>diboot core project</description>

View File

@ -7,11 +7,11 @@
<parent> <parent>
<artifactId>diboot-root</artifactId> <artifactId>diboot-root</artifactId>
<groupId>com.diboot</groupId> <groupId>com.diboot</groupId>
<version>2.1.1</version> <version>2.1.2</version>
</parent> </parent>
<artifactId>diboot-file-spring-boot-starter</artifactId> <artifactId>diboot-file-spring-boot-starter</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<description>diboot file component project</description> <description>diboot file component project</description>
@ -25,7 +25,7 @@
<dependency> <dependency>
<groupId>com.diboot</groupId> <groupId>com.diboot</groupId>
<artifactId>diboot-core-spring-boot-starter</artifactId> <artifactId>diboot-core-spring-boot-starter</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
</dependency> </dependency>
<!-- 文件上传 --> <!-- 文件上传 -->

View File

@ -7,11 +7,11 @@
<parent> <parent>
<groupId>com.diboot</groupId> <groupId>com.diboot</groupId>
<artifactId>diboot-root</artifactId> <artifactId>diboot-root</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
</parent> </parent>
<artifactId>diboot-iam-base-spring-boot-starter</artifactId> <artifactId>diboot-iam-base-spring-boot-starter</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<description>diboot IAM base project</description> <description>diboot IAM base project</description>
@ -25,7 +25,7 @@
<dependency> <dependency>
<groupId>com.diboot</groupId> <groupId>com.diboot</groupId>
<artifactId>diboot-core-spring-boot-starter</artifactId> <artifactId>diboot-core-spring-boot-starter</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.squareup.okhttp3</groupId> <groupId>com.squareup.okhttp3</groupId>

View File

@ -15,6 +15,7 @@
*/ */
package com.diboot.iam.jwt; package com.diboot.iam.jwt;
import com.diboot.core.vo.KeyValue;
import com.diboot.iam.config.Cons; import com.diboot.iam.config.Cons;
import com.diboot.iam.entity.IamUser; import com.diboot.iam.entity.IamUser;
import com.diboot.iam.util.JwtUtils; import com.diboot.iam.util.JwtUtils;
@ -55,6 +56,11 @@ public class BaseJwtAuthToken implements RememberMeAuthenticationToken {
*/ */
private boolean rememberMe; private boolean rememberMe;
/**
* 扩展属性
*/
private KeyValue extObj;
/**authz token*/ /**authz token*/
private String authtoken; private String authtoken;
@ -96,6 +102,8 @@ public class BaseJwtAuthToken implements RememberMeAuthenticationToken {
return userTypeClass.getSimpleName(); return userTypeClass.getSimpleName();
} }
/** /**
* 生成token * 生成token
* @param expiresInMinutes * @param expiresInMinutes

View File

@ -13,7 +13,7 @@
<groupId>com.diboot</groupId> <groupId>com.diboot</groupId>
<artifactId>diboot-root</artifactId> <artifactId>diboot-root</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>