Shiro认证流程 在学习认证流程之前,你应该先了解Shiro的基本使用流程 认证 身份认证: 证明用户是谁。用户需要提供相关的凭证principals(身份标识)和Credentials (凭证,证明你是这个用户,可以理解成密码) Principals: 用户的属性,可以有多个。但是至少有一个属性 ...
                            
                            
                                分类:
其他好文   时间:
2018-11-27 16:55:28   
                                阅读次数:
155
                             
                    
                        
                            
                            
                                    当我们在发送跨域请求时,session是无法设置浏览器端的, ctx.session 也就获取不到值, request 的 credentials属性表示是否允许其他域发送cookie,该属性有3个值:omit: 默认属性,不允许其他域发送cookiesame-origin: 只允许同域发送cook ...
                            
                            
                                分类:
其他好文   时间:
2018-11-26 17:27:33   
                                阅读次数:
550
                             
                    
                        
                            
                            
                                https://github.com/OriginProtocol/origin-playground 通过ERC 725 and ERC 735 的实现来说明它们到底是做什么的: 看了这个例子后才大概明白了claim,key,identity之间的关系,就比如有一个合约为Claim checker ...
                            
                            
                                分类:
其他好文   时间:
2018-11-23 16:49:08   
                                阅读次数:
177
                             
                    
                        
                            
                            
                                首先是查看tidb数据库的syncer工具的介绍 使用syncer工具的场景一般是: 全量导入历史数据后,通过增量的方式同步新的数据 (需要 checker + mydumper + loader + syncer)。该场景需要提前开启 binlog 且格式必须为 ROW。 主要的步骤我们可以看官网 ...
                            
                            
                                分类:
数据库   时间:
2018-11-16 17:34:53   
                                阅读次数:
501
                             
                    
                        
                            
                            
                                    WebClient wc = new WebClient(); wc.Credentials = CredentialCache.DefaultCredentials; byte[] btPageData = wc.DownloadData("http://www.baidu.com/img/bd_... ...
                            
                            
                                分类:
其他好文   时间:
2018-11-12 14:59:54   
                                阅读次数:
103
                             
                    
                        
                            
                            
                                    前端:ajax访问时要加上“xhrFields: {withCredentials: true}” ,实现session可以传递 后端:Access-Control-Allow-Credentials 设置为 true;同时 Access-Control-Allow-Origin 必须指定 url  ...
                            
                            
                                分类:
Web程序   时间:
2018-10-30 17:37:04   
                                阅读次数:
320
                             
                    
                        
                            
                            
                                    在HOME目录中,一般为C:\users\Administrator,也可以是你自己创建的系统用户名目录,反正都在C:\users***中。 创建.git-credentials文件。 使用git bash 输入下面命令行即可创建 创建完成后, 如果是github在该文件中输入: 如果是码云的为:  ...
                            
                            
                                分类:
其他好文   时间:
2018-10-28 11:27:26   
                                阅读次数:
227
                             
                    
                        
                            
                            
                                fetch(url,{ method:'post', mode:"cors", //允许跨域 no-cors不允许跨域 // credentials:"include", //跨域请求时是不带cookie的,添加该属性表示强制加入凭据头,请求时就会携带cookie。但是如果加上这个属性,那么服务器的... ...
                            
                            
                                分类:
其他好文   时间:
2018-10-12 11:54:32   
                                阅读次数:
117
                             
                    
                        
                            
                            
                                虚拟机创建流程:根据官方提供的流程图,我个人将OpenStack云主机的创建步骤分为四个阶段:1、KeyStone验证阶段2、Nova服务组件交换3、OpenStack其它服务交换4、执行创建第一阶段:KeyStone验证用户使用DashboardHorizon或者命令行CLI,通过RESTAPI给Identity服务Keystone发送用户凭据(credentials)并验证(authentic
                            
                            
                                分类:
其他好文   时间:
2018-10-11 22:40:20   
                                阅读次数:
206
                             
                    
                        
                            
                            
                                安装错误 [Composer\Downloader\TransportException] Invalid credentials for 'https://packagist.phpcomposer.com/p/provider-2016%24ae19026fd0d5a3d5733e5a46202 ...
                            
                            
                                分类:
其他好文   时间:
2018-10-09 13:56:54   
                                阅读次数:
2242