You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
4 years ago
|
/*
|
||
|
* Copyright (C), 2018-2021
|
||
|
* Project: starter
|
||
|
* FileName: OneAccessConfig
|
||
|
* Author: Louis
|
||
|
* Date: 2021/3/30 9:38
|
||
|
*/
|
||
|
package com.fr.plugin.j7944.sso.config;
|
||
|
|
||
|
import com.fr.config.*;
|
||
|
import com.fr.config.holder.Conf;
|
||
|
import com.fr.config.holder.factory.Holders;
|
||
|
import com.fr.intelli.record.Focus;
|
||
|
import com.fr.intelli.record.Original;
|
||
|
|
||
|
/**
|
||
|
* <Function Description><br>
|
||
|
* <SsoConfig>
|
||
|
*
|
||
|
* @author Louis
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
@Visualization(category = "Plugin-J7944-Sso_Group")
|
||
|
public class SsoConfig extends DefaultConfiguration {
|
||
|
public static final String PLUGIN_ID = "com.fr.plugin.j7944.sso.auth";
|
||
|
public static final String APP_DOMAIN = "https://xxx.xxx.com/login/appLogin";
|
||
|
|
||
|
private static volatile SsoConfig config = null;
|
||
|
|
||
|
@Focus(id = PLUGIN_ID, text = "Plugin-J7944-Sso", source = Original.PLUGIN)
|
||
|
public static SsoConfig getInstance() {
|
||
|
if (config == null) {
|
||
|
config = ConfigContext.getConfigInstance(SsoConfig.class);
|
||
|
}
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
@Identifier(value = "appDomain", name = "Plugin-J7944-Sso_Config_AppDomain", description = "Plugin-J7944-Sso_Config_AppDomain_Description", status = Status.SHOW)
|
||
|
private Conf<String> appDomain = Holders.simple(APP_DOMAIN);
|
||
|
|
||
|
public String getAppDomain() {
|
||
|
return appDomain.get();
|
||
|
}
|
||
|
|
||
|
public void setAppDomain(String appDomain) {
|
||
|
this.appDomain.set(appDomain);
|
||
|
}
|
||
|
}
|