yangys
2024-04-01 86cdd920b68274185233383f69ddb974052b6b6f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.qianwen.core.social.props;
 
import me.zhyd.oauth.config.AuthSource;
import me.zhyd.oauth.enums.AuthResponseStatus;
import me.zhyd.oauth.exception.AuthException;
import me.zhyd.oauth.request.AuthDefaultRequest;
import com.qianwen.core.social.request.CustomAuthDingTalkRequest;
import com.qianwen.core.social.request.CustomAuthWeChatEntWebRequest;
 
/* loaded from: blade-starter-social-9.3.2.0-SNAPSHOT.jar:org/springblade/core/social/props/BladeAuthSource.class */
public enum BladeAuthSource implements AuthSource {
    DINGTALK_WEB { // from class: org.springblade.core.social.props.BladeAuthSource.1
        public String authorize() {
            throw new AuthException(AuthResponseStatus.UNSUPPORTED);
        }
 
        public String accessToken() {
            return "https://oapi.dingtalk.com/gettoken";
        }
 
        public String userInfo() {
            return "https://oapi.dingtalk.com/user/get";
        }
 
        public Class<? extends AuthDefaultRequest> getTargetClass() {
            return CustomAuthDingTalkRequest.class;
        }
    },
    WECHAT_ENTERPRISE_WEB { // from class: org.springblade.core.social.props.BladeAuthSource.2
        public String authorize() {
            return "https://open.weixin.qq.com/connect/oauth2/authorize";
        }
 
        public String accessToken() {
            return "https://qyapi.weixin.qq.com/cgi-bin/gettoken";
        }
 
        public String userInfo() {
            return "https://qyapi.weixin.qq.com/cgi-bin/auth/getuserinfo";
        }
 
        public Class<? extends AuthDefaultRequest> getTargetClass() {
            return CustomAuthWeChatEntWebRequest.class;
        }
    }
}