|
@@ -1,11 +1,7 @@
|
|
|
package com.zjugis.framework.social.core.enums;
|
|
|
|
|
|
-import com.sun.xml.internal.bind.v2.TODO;
|
|
|
import com.xingyuv.jushauth.config.AuthSource;
|
|
|
-import com.xingyuv.jushauth.enums.AuthResponseStatus;
|
|
|
-import com.xingyuv.jushauth.exception.AuthException;
|
|
|
import com.xingyuv.jushauth.request.AuthDefaultRequest;
|
|
|
-import com.xingyuv.jushauth.request.AuthDingTalkRequest;
|
|
|
|
|
|
/**
|
|
|
* 拓展 JustAuth 各 api 需要的 url, 用枚举类分平台类型管理
|
|
@@ -46,12 +42,14 @@ public enum AuthExtendSource implements AuthSource {
|
|
|
},
|
|
|
DINGTALK {
|
|
|
@Override
|
|
|
-// public String authorize() {
|
|
|
-// return "https://login.dingtalk.com/oauth2/auth";
|
|
|
-// }
|
|
|
public String authorize() {
|
|
|
- return "https://login.on-premises.dingtalk.com/oauth2/auth.htm";
|
|
|
+ // 浙政钉正式版登录域名
|
|
|
+ return "https://login-pro.ding.zj.gov.cn/oauth2/auth.htm";
|
|
|
}
|
|
|
+ /*public String authorize() {
|
|
|
+ // 浙政钉测试版登录域名
|
|
|
+ return "https://login.on-premises.dingtalk.com/oauth2/auth.htm";
|
|
|
+ }*/
|
|
|
|
|
|
@Override
|
|
|
public String accessToken() {
|