1
0
mirror of synced 2026-05-22 21:53:18 +00:00
Files
JustAuth/src/main/java/me/zhyd/oauth/utils/AuthConfigChecker.java
T

24 lines
582 B
Java
Raw Normal View History

2019-01-31 17:44:42 +08:00
package me.zhyd.oauth.utils;
import me.zhyd.oauth.config.AuthConfig;
/**
2019-05-23 09:06:13 +08:00
* 授权配置类的校验器
*
2019-01-31 17:44:42 +08:00
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @since 1.8
*/
public class AuthConfigChecker {
/**
2019-02-19 14:49:59 +08:00
* 是否支持第三方登录
2019-01-31 17:44:42 +08:00
*
2019-03-29 15:27:27 +08:00
* @param config config
2019-01-31 17:44:42 +08:00
* @return true or false
*/
2019-02-19 14:49:59 +08:00
public static boolean isSupportedAuth(AuthConfig config) {
return StringUtils.isNotEmpty(config.getClientId()) && StringUtils.isNotEmpty(config.getClientSecret()) && StringUtils.isNotEmpty(config.getRedirectUri());
2019-01-31 17:44:42 +08:00
}
}