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

Micro-service authentication method and system

An authentication method and micro-service technology, applied in the transmission system, digital transmission system, user identity/authority verification, etc., can solve trivial, complex, unfavorable system reconstruction and other problems

Active Publication Date: 2020-10-30
ULTRAPOWER SOFTWARE
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The disadvantage of this solution is that each user-oriented service must interact with the authentication service, which will generate a lot of very trivial and expensive traffic and repeated work. When more and more micro-applications are connected, the disadvantages are more obvious, which is not conducive to system refactoring
[0007] The disadvantage of this solution is: shared storage requires a certain protection mechanism, so it needs to be accessed through a secure link, and the implementation of this solution is quite complex

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
  • Micro-service authentication method and system
  • Micro-service authentication method and system
  • Micro-service authentication method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The embodiment of the present invention provides a microservice authentication method, which creates an independent authentication center and an independent gateway. The authentication center will issue tokens to requests, all requests will go through the gateway, and the gateway will analyze the token to determine whether to release the request. The interaction between the server and the client is reduced, and identity authentication can be performed safely, and the modification required to introduce new microservices is also small, without requiring more network consumption. Embodiments of the present invention also provide corresponding systems, computer devices, and computer-readable storage media, which will be described in detail below.

[0024] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompany...

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 discloses a micro-service authentication method and system. The system comprises an authentication center and a gateway. The method comprises the following steps: when an authenticationcenter receives a request, the authentication center generates a token according to login user information, adds the token to the request and forwards the request to a gateway; the gateway analyzes the token in the request by extracting the token in the request, reserves the token in the request after analyzing that the user information is valid, and forwards the request to a first micro-service,and the first micro-service responds to the request. According to the method disclosed in the invention, the token containing the user information is generated by using the certificate center and sentto the request; the request is forwarded to the gateway; all micro-service requests are intercepted by the gateway for user authentication analysis, only the request passing authentication can be forwarded normally, that the micro-service can be subjected to safe identity authentication is ensured, and interaction between the server and the client is reduced; the method has the advantages that when a new micro-service is accessed, the later modification workload is small, and network resource consumption is low.

Description

technical field [0001] The present invention relates to the technical field of microservices, in particular to a microservice authentication method and system. Background technique [0002] With the rise of the microservice architecture, identity authentication and authentication in traditional monolithic application scenarios are facing more and more challenges. Under the monolithic application system, the application is a whole. Generally, permission verification is performed for all requests. The request generally passes through a permission interceptor to verify the permission. When logging in, the user information is cached in the session, and subsequent access The user information is obtained from the cache. Under the micro-service architecture, an application will be split into several micro-applications, and each micro-application needs to authenticate access, and each micro-application needs to specify the current access user and its permissions. [0003] At prese...

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
IPC IPC(8): H04L29/06H04L9/08H04L9/32
CPCH04L63/0807H04L63/0815H04L63/306H04L63/108H04L9/0861H04L9/3247H04L2209/72
Inventor 左姗姗
Owner ULTRAPOWER SOFTWARE
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