Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Token renewal determination method and device, electronic device and storage medium

A determination method and device determination technology, applied in the field of communications, can solve the problems of high storage pressure on the server and inability to maintain stateless advantages, and achieve the effects of simplifying operation complexity, reducing login steps, and reducing computing pressure

Active Publication Date: 2019-10-25
MAIPU COMM TECH CO LTD
View PDF9 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the purpose of the embodiment of the present application is to provide a token renewal determination method, device, electronic equipment and storage medium to improve the storage pressure of the server in the prior art and the inability to maintain the stateless advantage The problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Token renewal determination method and device, electronic device and storage medium
  • Token renewal determination method and device, electronic device and storage medium
  • Token renewal determination method and device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0045] According to the applicant's research, the site that uses token technology for identity verification generally involves the issue of how to refresh and continue using the token after it expires. The typical way to solve this problem is that the client caches the refresh token and the access token at the same time, and uses the access token for authentication during normal use. When the access token expires, the client uses the refresh token to initiate a request to the server Refresh request, the server refreshes the access token and refresh token at the same time, and responds to the client to store the refreshed access token and refresh token again. Before refreshing the token, the existing technology also requires the server to determine whether to use the automatic renewal of the token ba...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a token renewal determination method and device, an electronic device and a storage medium, and relates to the technical field of communication. The token renewal determinationmethod comprises the following steps: sending a current access request to a server, wherein the current access request comprises an access token; receiving token expiration information returned by theserver; comparing the request interval duration with the token effective duration of the access token, wherein the request interval duration is the difference between the current request time when the client sends the current access request and the last request time when the client sends the access request to the server last time; and determining whether to resume the access token or not according to a comparison result. Whether the access token needs to be renewed or not is judged according to the last request time cached by the client and the access token, the storage pressure of the serveris prevented from being too large, and therefore the stateless characteristic of the server is guaranteed.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular, to a method, device, electronic device, and storage medium for determining token renewal. Background technique [0002] With the rapid development of network technology, more and more websites use token technology for authentication. The advantage of using token technology over traditional authentication technology is that the server does not need to cache any session information related to the currently logged-in user. The token is stateless, and the HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol) protocol is also stateless. Yes, the two technologies can fit perfectly, among them, stateless refers to treating each request as an independent transaction that has nothing to do with any previous requests. The use of token technology eliminates the need to save any user session-related information on the server side, reducing the storage pressure o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06
CPCH04L63/0807H04L63/108
Inventor 杨斌
Owner MAIPU COMM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products