• 大小: 1.93M
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2020-12-22
  • 语言: Java
  • 标签: 接口  登陆  源码  

资源简介

钉钉免登陆接口 示例源码

资源截图

代码片段和文件信息

package com.ray.dingtalk.auth;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Formatter;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alibaba.fastjson.JSONobject;
import com.ray.dingtalk.config.Env;
import com.ray.dingtalk.util.HttpHelper;



/**
 * 钉钉相关配置参数的获取工具类
 * @desc  : AccessToken和jsticket的获取封装
 * 
 * @author: shirayner
 * @date  : 2017年9月27日 下午5:00:25
 */
public class AuthHelper {
//private static Logger log = LoggerFactory.getLogger(AuthHelper.class);  
//获取access_token的接口地址有效期为7200秒
private static final String 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-30 03:48  DingTalk_Demo-master\
     文件         897  2017-09-30 03:48  DingTalk_Demo-master\.classpath
     文件         882  2017-09-30 03:48  DingTalk_Demo-master\.project
     目录           0  2017-09-30 03:48  DingTalk_Demo-master\.settings\
     文件         555  2017-09-30 03:48  DingTalk_Demo-master\.settings\.jsdtscope
     文件         357  2017-09-30 03:48  DingTalk_Demo-master\.settings\org.eclipse.jdt.core.prefs
     文件         483  2017-09-30 03:48  DingTalk_Demo-master\.settings\org.eclipse.wst.common.component
     文件         335  2017-09-30 03:48  DingTalk_Demo-master\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2017-09-30 03:48  DingTalk_Demo-master\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-09-30 03:48  DingTalk_Demo-master\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件         261  2017-09-30 03:48  DingTalk_Demo-master\README.md
     目录           0  2017-09-30 03:48  DingTalk_Demo-master\WebContent\
     文件        1232  2017-09-30 03:48  DingTalk_Demo-master\WebContent\IDAuthentication.jsp
     目录           0  2017-09-30 03:48  DingTalk_Demo-master\WebContent\meta-INF\
     文件          36  2017-09-30 03:48  DingTalk_Demo-master\WebContent\meta-INF\MANIFEST.MF
     目录           0  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\
     目录           0  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\lib\
     文件       61829  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\lib\commons-logging-1.2.jar
     文件      526273  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\lib\fastjson-1.2.38.jar
     文件      732765  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\lib\httpclient-4.5.1.jar
     文件      326594  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\lib\httpcore-4.4.3.jar
     文件       41029  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\lib\httpmime-4.5.3.jar
     文件      367444  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\lib\log4j-1.2.14.jar
     文件       41203  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\lib\slf4j-api-1.7.25.jar
     文件       12244  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\lib\slf4j-log4j12-1.7.25.jar
     文件         712  2017-09-30 03:48  DingTalk_Demo-master\WebContent\WEB-INF\web.xml
     目录           0  2017-09-30 03:48  DingTalk_Demo-master\WebContent\js\
     文件        3114  2017-09-30 03:48  DingTalk_Demo-master\WebContent\js\auth.js
     文件        4341  2017-09-30 03:48  DingTalk_Demo-master\WebContent\js\auth3.js
     文件       86659  2017-09-30 03:48  DingTalk_Demo-master\WebContent\js\jquery-3.2.1.min.js
     目录           0  2017-09-30 03:48  DingTalk_Demo-master\build\
............此处省略78个文件信息

评论

共有 条评论