All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.healthy.common.security.properties.OAuth2Properties Maven / Gradle / Ivy

There is a newer version: 1.2.1.RELEASE
Show newest version
package com.healthy.common.security.properties;

import lombok.Data;

/**
 * OAuth2基本数据配置项
 */
@Data
public class OAuth2Properties {

    /**
     * clientDetail存储策略,默认none,可选值:jdbc(数据库存储),none(内存存储)
     */
    private ClientDetailStoreType clientDetailStoreType = ClientDetailStoreType.NONE;

    /**
     * 使用jwt时为token签名的秘钥
     */
    private String jwtSigningKey = "healthy";

    /**
     * 登陆踢出
     */
    private boolean kickOut;

    /**
     * 登录踢出前缀
     */
    private String kickOutCachePrefix = "kick:out:";

    /**
     * 是否重复使用刷新令牌(直到过期)
     */
    private boolean reuseRefreshToken = true;

    /**
     * Redis令牌存储前缀
     */
    private String redisTokenStorePrefix = "";

    /**
     * 客户端配置
     */
    private OAuth2ClientProperties[] clients = {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy