Shrio uses Jwt to achieve front-end and back-end separation

Summary After the front and back ends are separated, because HTTP itself is stateless, Session is useless. After the project adopts the scheme of jwt, the main process of request is as follows: after the user logs in successfully, the server will create a JWT token (the current operation account is recorded in the token of jwt), and return the ...

Posted by greywire on Sat, 24 Aug 2019 12:45:48 +0200

JSP and Servlet Integration Case

02 System Page Creation-System Requirements Analysis 2.2 Brief Answers 2.2.1 According to the video, please write out the realization of login function? User information is queried according to user name and password. If it is found, the login succ ...

Posted by phpprog on Fri, 23 Aug 2019 16:01:37 +0200

03-Django REST framework (03-authentication, privilege, throttling)

Articles Catalogue 1. User login authentication Certification Carding: 1. Use 2. Source code flow 2. Authority 3. Access Frequency Control (Throttle/Limit) Source code flow combing 1. User login authentication a. Some API s require user ...

Posted by celavi on Fri, 23 Aug 2019 10:15:32 +0200

tensorflow Neural Language Model Based on Circulating Neural Network

Compared with the cyclic neural network, NLP application has two layers: embedding layer and softmax layer. Word Vector Layer At the input level, each word is represented by a real vector, which is called word embedding, or word embedding. Word vecto ...

Posted by J.Daniels on Fri, 23 Aug 2019 06:23:22 +0200

Tomcat Source Code Analysis - - - Understanding Session Mechanism thoroughly

Overview of Tomcat Session Firstly, HTTP is a stateless protocol, which means that every HTTP request initiated is a completely new request (without any connection with the previous request, the server will not retain any information of the previous request), and Session appears to solve this problem, associating every request on the client si ...

Posted by workbench on Fri, 23 Aug 2019 05:45:31 +0200

SSO Single Sign-on (Client) Based on Spring Security + OAuth2

1. Origin Why do you want to take the client out and write it separately? Bloggers also refer to a lot of single sign-on on the Internet, but they are basically the same and the same. In the client's own privilege checking and single exit are not p ...

Posted by Flukey on Thu, 22 Aug 2019 13:18:49 +0200

Spring Boot Fast Integrated kaptcha Generation Verification Code

Kaptcha is a very practical verification code generation tool. It can generate a variety of verification codes through configuration, which can be displayed in the form of pictures, so it can not be copied and pasted. Contents of this article Introduction to Kaptcha2. Spring Boot Integration Kaptcha1. Introducing jar package into pom.xm ...

Posted by ridiculous on Wed, 21 Aug 2019 14:40:08 +0200

session and cookie,django Middleware

0819 self-summary session and cookie 1.django sets session request.session['name'] = username request.session['age'] = 13 A session ID of key: {"name":'username','age': 12} is automatically generated and encrypted in the latter part of django. 2. Get session request.session.get('name') 3. Five session settings in Django 1. Datab ...

Posted by toledojimenez on Mon, 19 Aug 2019 13:44:50 +0200

session Problem of Front-end and Back-end Separation

[session Problem --- Pit Jumping + Pit Climbing] session Foundation Points: Session is session control. The session object stores the properties or configuration information required by a particular user session. When users jump between the web ...

Posted by psyqosis on Sun, 18 Aug 2019 15:34:17 +0200

Implementation of Single Sign-on (SSO) with Authing in 10 minutes

Single Sign On (SSO) is one of the most popular solutions for business integration. SSO is defined as an application system in which users can access all trusted applications with only one login. Implementing single sign-on Before the beginning If you don't know about user pooling, single sign-on, and authentication authorization, read it first ...

Posted by jursten on Sat, 17 Aug 2019 16:17:48 +0200