package com.malk.server.eiam;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 阿里云 EIAM DeveloperAPI 配置。
 */
@Data
@Component
@ConfigurationProperties(prefix = "eiam")
public class EiamConf {

    public static final String NS = "eiam";
    public static final int TOKEN_AHEAD_SECONDS = 60;

    private String baseUrl = "https://eiam-developerapi.cn-hangzhou.aliyuncs.com";
    private String instanceId;
    private String applicationId;
    private String clientId;
    private String clientSecret;
}
