更改版本为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>
<groupId>com.diboot</groupId>
<artifactId>diboot-root</artifactId>
<version>2.1.1</version>
<version>2.1.2</version>
</parent>
<artifactId>diboot-core-spring-boot-starter</artifactId>
<version>2.1.1</version>
<version>2.1.2</version>
<packaging>jar</packaging>
<description>diboot core starter project</description>
@ -25,7 +25,7 @@
<dependency>
<groupId>com.diboot</groupId>
<artifactId>diboot-core</artifactId>
<version>2.1.1</version>
<version>2.1.2</version>
</dependency>
<dependency>

View File

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

View File

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

View File

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

View File

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

View File

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