import { NgModule } from '@angular/core'; import { AuthService } from './auth.service'; import { AngularFireAuthModule } from 'angularfire2/auth'; import { AngularFirestoreModule } from 'angularfire2/firestore'; @NgModule({ imports: [ AngularFireAuth…
本文转自http://catlikecoding.com/unity/tutorials/editor/custom-list/ Custom List, displaying data your way In this Unity C# tutorial you will create a custom visualization for arrays and lists in the editor. You will learn to create a custom editor use S…
Using $firebaseSimpleLogin service. Here we use three methods for login, logout, register and getCurrentUser. Be sure to open the Email and Password configuration on Forge: login.tmpl.html <div class="container" ng-controller="LoginCtrl&…
SUMMARY:two server : A , Bsource server : Adestination server : Bthe steps of migrate data from A to B without password.(1) generate A public key.(2) copy A's public key to B.(3) login A remote B without password to copy file. // NOTES : if want to l…
Updated to AngularFire2 v5.0. One important change is that you need to call .snapshotChanges() or .valueChanges() to get data as Observable back. return this.db.list<Skill>(`skills/${this.uid}`) .snapshotChanges() The problem is when there is no dat…
问 According to ASP.NET Key Management: Deleting a key is truly destructive behavior, and consequently the data protection system exposes no first-class API for performing this operation. Is the expired key still being used to unprotect data previousl…
本节将学习 spring security oauth  实现单点登录 概述 首先我们来了解什么是单点登录.看下面两张图就明白了. 很明显,单点登录最重要解决的就是登录和注销的功能,今天的例子,可以用来这样的界面来验证我们实现的单点登录是否成功. 一个是是否登录后可以跳到子服务器,另一个是退出登录,是否需要重新登录才可以再次访问页面. 代码实现 以下并不是完整的demo 代码,而是编写过程中需要注意注意的地方 单点登录的客户端需要添加@EnableOauthSso的注解 : @EnableOAu…
   文章部分图片来自参考资料,这篇文章主要讲 spring security  oauth 概述 上一篇我们学习了 SS 中重要的工作原理和几个大概的认证和授权过程.而 spring security oauth 用到的就是 spring security 知识,我们学习 sso 之前先看一下oauth 是什么,可以学习阮一峰老师的文章 oauth 的流程图如下 : (牢牢记住这张图) 主要的角色有资源持有者,资源服务器,认证服务器,还有用户 授权(获取 Access Token)的方式有多种…
in client/app.js, we put user login logic inside here, so that other module can reuse those code by call: const app = getApp() app.login() app.js: //app.js var qcloud = require('./vendor/wafer2-client-sdk/index') var config = require('./config') let…
OAuth 简介 OAuth 是由 Blaine Cook.Chris Messina.Larry Halff 及 David Recordon 共同发起的,目的在于为 API 访问授权提供一个安全.开放的标准. 基于 OAuth 认证授权具有以下特点: 安全.OAuth 与别的授权方式不同之处在于:OAuth 的授权不会使消费方(Consumer)触及到用户的帐号信息(如用户名与密码),也是是说,消费方无需使用用户的用户名与密码就可以申请获得该用户资源的授权. 开放.任何消费方都可以使用 OA…
给大家啊分享一个后端专用login模板 Java工程师再也不用这样啦---> html源码 <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>login</t…
在Ionic官网找到的学习资源:http://blog.ionic.io/learning-ionic-in-your-living-room/ 网上的文章比较多,但是很多时候我们很难找到自己需要的.下面这些资源覆盖面很广,看一下有没有你需要的: PS:嫌麻烦的可以直接在这里找:http://thompsonemerson.github.io/ionic-collection/ 太多了,就不一一翻译了,哪些英文不懂的就百度或留言 Ionic Basics Hello World: Your Fi…
# =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT copy it in its # entirety to your own application. ^^^ # ===================================…
2019年3月21日17:09:59 英文原版: https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html 官方文档:https://spring.io/projects/spring-boot#learn 当前版本:2.1.3 经过个人测试这个是不是完全版本,只是覆盖大部分的属性设置,当然也要感谢官方提交文档的朋友 比如jpa格式化sql配置就没有 spri…
摘自官网,仅作为参考用 Part X. Appendices # =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT copy it in its # entirety to your own application. ^^^ # ====…
从springboot官方文档中扒出来的,留存一下以后应该会用到 # =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT copy it in its # entirety to your own application. ^^^ # ==…
附上最新文档地址:https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html # =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a gui…
规范 SpringBoot 使用一个全局的配置文件,配置文件名固定为 application.properties 或 application.yml .比如我们要配置程序启动使用的端口号,如下: server.port=8081 application.properties server: port: 8081 application.yml 配置文件一般放在 src\main\resources 目录或者 classpath:config 下. .yml后缀的文件是 YAML(YAML Ai…
SpringBoot项目使用一个全局的配置文件application.properties或者是application.yml,在resources目录下或者类路径下的/config下,一般我们放到resources下. 1.修改tomcat的端口为8088 server.port= 重新启动应用,查看效果: 2018-09-18 20:55:06.157 DEBUG 7072 --- [ main] o.s.w.s.resource.ResourceUrlProvider : Found re…
摘自:http://stackoverflow.com/a/16734651/1616023 See the summaries below each quote for a quick answer, and the paragraphs for detail. Also see the References section at the end for the authoritative sources. Summaries 1.What is SimpleMembership/Simple…
Access Tokens When someone connects with an app using Facebook Login and approves the reqest for permissions, the app obtains an access token that provides temporary, secure access to Facebook APIs. You can see a list of your access tokens and debugg…
来源:https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#howto-configure-tomcat # =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guide…
# =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT copy it in its # entirety to your own application. ^^^ # ===================================…
Appendix A. Common application properties Prev  Part X. Appendices  Next URl链接:https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html Appendix A. Common application properties Various properties can be speci…
# =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT copy it in its # entirety to your own application. ^^^ # ===================================…
官方地址: https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/ 进入搜索: Appendices 查看附录,附录第一篇就是完整的spring boot配置文件参考文档. 官方application.properties参考文档: # =================================================================== # COMMON SPR…
# =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT copy it in its # entirety to your own application. ^^^ # ===================================…
附录A.常用应用程序属性 可以在application.properties文件内部application.yml,文件内部或命令行开关中指定各种属性.本附录提供了常见Spring Boot属性的列表以及对使用它们的基础类的引用. Spring Boot提供了各种具有高级值格式的转换机制,请务必查看属性转换部分. # =================================================================== # COMMON SPRING BOOT P…
转自:https://www.haproxy.com/blog/using-haproxy-as-an-api-gateway-part-2-authentication/ HAProxy is a powerful API gateway due to its ability to provide load balancing, rate limiting, observability and other features to your service endpoints. It also…
@ 目录 1. 什么是JWT? 2. JWT令牌结构怎么样? 2.1 标头(Header) 2.2 有效载荷(Playload) 2.3 签名(Signature) 3. JWT原理简单介绍 4. JWT的应用场景 5. 与Cookie-Session对比 6. Java的JJWT实现JWT 6.1 什么是JJWT? 6.2 实验环境准备 6.3 jwt配置属性读取 6.4 JWT Token工具类 6.5 Spring Security引入 6.6 JWT授权过滤器 6.7 Spring Se…