package org.springblade.third.auth.constants;

/**
 * @author: Chenzhenyong
 * @description: 常量工具类
 * @date: Created in 12:25 2018/7/24
 */
public class CtwingAuthConstants {

    /**
     * 应用ID
     */
    public static final String APP_ID = "8135892866";

    /**
     * 应用秘钥(用于xxtea加密)
     */
    public static final String APP_SECRET = "SnpYtQuSDrb3igRzIzFerfLxOMTC8sd2";


    public static final String DEFAULT_CHARSET = "UTF-8";

    /**
     * wap登录框地址
     */
    public static final String UNIFY_ACCOUNT_LOGIN_URL = "https://open.e.189.cn/api/logbox/oauth2/separate/unifyAccountLogin.do";

    /**
     * 通过code获取accessToken接口
     */
    public static final String ACCESS_TOKEN_URL = "https://open.e.189.cn/api/logbox/oauth2/accessToken.do";

    /**
     * 获取用户信息
     */
//    public static final String GET_USER_INFO = "https://openeop.dcoos.189.cn:8100/serviceAgent/rest/openapi/asymauth/gbcs/getUserInfo";
    public static final String GET_USER_INFO = "https://open.e.189.cn/openapi/asymauth/gbcs/getUserInfo.do";



    /**
     * 客户端类型，统一为：10010
     */
    public static final String clientType = "10010";

    /**
     * 统一为：redirect（用于重定向接口的显示说明）
     */
    public static final String format = "redirect";

    /**
     * 调用的接口版本号：v2.0
     */
    public static final String version = "v2.0";



    /**
     * 重定向返回URL（returnURL如带参数，整个returnURL需进行URL编码）
     */
    public static final String returnURL = "http://m8gp5z2irl.51xd.pub/ctwing/login/callBack/ctwing";

    /**
     * 值为normal或popping（normal为正常嵌入页面，popping为弹出式页面,默认normal）
     */
    public static final String pageKey = "normal";

    /**
     * 注册成功后返回的URL（登录框右下角注册链接）。默认注册后返回天翼账号，如需注册后返回接入方，可传入该参数。
     * （regReturnUrl如带参数，整个regReturnUrl需进行URL编码）
     */
    public static final String regReturnUrl = "";

    /**
     * 用于保持请求和回调的状态，登录请求后原样带回给第三方。
     * 该参数可用于防止csrf攻击（跨站请求伪造攻击），建议第三方带上该参数，可设置为简单的随机数加session进行校验
     */
    public static final String state = "";

    public static final String PUB_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCjUQ/6RRiVTBVfpV6mTLdcQY8NUroBBwFGBHLQ8Vw9kmifanKOv5Nr8WfG4P89Cywi35hkEVIQRnacgEmb+7+ZjX3jYmwbeZ2HON1eZ9U0eUTpGvaJ+XxyJ4GLakD59gVRXYBmA+Fo0Tonn1owVhKCETKQyYUDsn6i4qRkcKLPtQIDAQAB";

    public static final String PRI_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAKNRD/pFGJVMFV+lXqZMt1xBjw1SugEHAUYEctDxXD2SaJ9qco6/k2vxZ8bg/z0LLCLfmGQRUhBGdpyASZv7v5mNfeNibBt5nYc43V5n1TR5ROka9on5fHIngYtqQPn2BVFdgGYD4WjROiefWjBWEoIRMpDJhQOyfqLipGRwos+1AgMBAAECgYEAhWSbkUZIiwEm4AV5Zol4psDhb/dm95naH29YvHK3bY8dJ0BRq2isp9j4c4eo0hpDBYTtuqYvCh4TmUZrWR1p41ggAxx8/5WC2rGqUzdYyPdbG8Q/O5ko8YtBx+LuZsRtvQtVEbxMZfV8XoRUe9JrkOEyzTpVBKiriF8s/qU6vGECQQDm7aMAfWZC1jp7dwP2SkmVxrGll7OskiunpbUc6Whon9Qyo/wwohRwjWXr+p64w1ysFlicITW2iR12TZ8ceypJAkEAtQw+vChf1c12n0GDvdjBWPp7vGKXkmgJRgSnmRl782ddvdgqjmwlDkkyC/fhMyRANN8C9R+EGMb39G52xWRaDQJAbxbsbiTlF8wE8DYN0uJjych+1yFGTwM2OvztRo5GKuaQZxgaDq850/dBi6bRyiI5J5PMZrdXJouJf8rRexsI+QJAfABqC4d/tDlosMU3jVUjgGT3UN0aQX2eNGXFwNeyjNDUZM3kv+2UJ8e8TnQ1u0ht7Yh9RxSR7kKA29q44JPOFQJAQkWGIcMjAO9vrPlJjNEYll/ej+QHpCZ8ofzv4QWLrFIUNBqVamWTaI87BWCb4exPn86D+MXOHxC7YWlD+vykIg==";

    //用户获取用户信息
    public static final String Client_Id = "8261935660391399424";

    //用户获取用户信息
    public static final String X_APP_ID = "4749e5bf9236e7a8965dda936d5c30c6";

    //用户获取用户信息
    public static final String X_APP_KEY = "ae9e9ce926b03fcc225cdb94730154c";


}
