mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2026-01-07 19:31:48 +08:00
23 lines
577 B
Java
23 lines
577 B
Java
package me.zhyd.oauth.utils;
|
|
|
|
import me.zhyd.oauth.config.AuthConfig;
|
|
|
|
/**
|
|
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
|
|
* @version 1.0
|
|
* @website https://www.zhyd.me
|
|
* @date 2019/1/31 15:46
|
|
* @since 1.8
|
|
*/
|
|
public class AuthConfigChecker {
|
|
|
|
/**
|
|
* 是否支持第三方登录
|
|
*
|
|
* @return true or false
|
|
*/
|
|
public static boolean isSupportedAuth(AuthConfig config) {
|
|
return StringUtils.isNotEmpty(config.getClientId()) && StringUtils.isNotEmpty(config.getClientSecret()) && StringUtils.isNotEmpty(config.getRedirectUri());
|
|
}
|
|
}
|