这一部分挺简单的,其实就是在页面上放一个链接,引导用户跳转即可链接的格式如下:https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=xxxx&pre_auth_code=xxxxx&redirect_uri=xxxx,...
分类:
微信 时间:
2015-09-16 17:50:19
阅读次数:
484
认证tokencurl -X POST -d '{"auth": {"tenantName": "IED-as", "passwordCredentials":{"username": "admin", "password": "cloud@tm"}}}' -H "Content-type: app...
分类:
其他好文 时间:
2015-09-15 23:15:41
阅读次数:
285
本讲我们来学习下依赖注入。让我们从代码出发:package scala.learntrait Logger {def log (msg:String)}trait Auth { auth:Logger => def act (msg:String){ log(msg) }}object DI ext...
分类:
其他好文 时间:
2015-09-15 17:58:21
阅读次数:
219
随着XCA(X Certificate and key management)可视化项目经理SSL 证书系列文章(2)和(3)中。我们学习了怎样用XCA(X Certificate and key management)生成证书请,已经怎样生成自己定义的凭证管理中心(Certificate Auth...
分类:
其他好文 时间:
2015-09-15 14:20:53
阅读次数:
301
1、鉴权模块1.1 Login,获取tokenPOST http://192.168.31.149:8080/auth/loginHeaders Content-Type: application/jsonBody:{ "username": "admin", "password": "shipya...
一、简介hydra是著名黑客组织thc的一款开源的暴力密码破解工具,可以在线破解多种密码。官 网:http://www.thc.org/thc-hydra,可支持AFP, Cisco AAA, Cisco auth, Cisco enable, CVS, Firebird, FTP, HTTP-FO...
分类:
其他好文 时间:
2015-09-14 12:00:44
阅读次数:
308
关于models,主要想说的是django shell以及生成测试数据的脚本这两部分先看一个设置了外键的modelsfrom django.db import modelsfrom django.utils import timezonefrom django.contrib.auth.models...
分类:
其他好文 时间:
2015-09-12 23:33:56
阅读次数:
180
和apache类似的语法和思路,比如说做网站后台管理的用户认证,匹配.*admin.php来解决在/usr/local/nginx/conf/vhosts/wyp.conf的虚拟主机配文件中插入以下几行代码location~.*admin\.php${定义匹配条件auth_basic"wypauth";提示信息auth_basic_user_file/usr/local/nginx/.htpa..
分类:
其他好文 时间:
2015-09-11 06:47:36
阅读次数:
135
添加用户vi /etc/pam.d/vsftdp注释掉auth required pam_shells.so
分类:
其他好文 时间:
2015-09-11 01:31:45
阅读次数:
188
if [ -f /etc/syslog.conf ]; #判断文件是否存在thensystest=`sed -n '/^auth.info/p' /etc/syslog.conf`; #匹配/etc/syslog.conf文件中是否有auto.info字符串,并返回字符串,systest变量接收。i...
分类:
系统相关 时间:
2015-09-10 11:08:09
阅读次数:
205