/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.authcore.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 认证配置属性
 *
 * @author lingee
 * @date 2023/7/25
 */
@Data
@Configuration
@ConfigurationProperties("cvbp.auth")
public class AuthProperties {

    /**
     * 未授权登录跳转地址
     */
    public String authRedirectUrl = "";

    /**
     * 是否开启
     */
    public Boolean enabled = true;

    /**
     * 登录地址
     */
    private String host = "";

    /**
     * token名称
     */
    private String tokenName = "Authorization";

    /**
     * cookie名称
     */
    private String cookieName = "Authorization";

    /**
     * 排除地址
     */
    private String excludes = "";

    /**
     * 拦截地址
     */
    private String includes = "/**";
}
