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

Micro service unified authentication method and gateway

A micro-service and micro-server technology, applied in the field of micro-services, can solve problems such as inflexibility, inability to connect RPC micro-services, and high development costs, and achieve the effects of strong scalability, flexible authentication services, and low configuration costs

Active Publication Date: 2018-11-27
SHENZHEN YUNZHIJIA NETWORK CO LTD
View PDF9 Cites 64 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] (1) Kong, based on configuration files, is not flexible enough; based on C and Lua, it is difficult to expand and develop; it requires high development costs to get through with the existing Java microservice governance system; the built-in Http Basic authentication cannot No existing user system opened
[0008] (2) Spring Cloud Zuul itself does not provide any authentication function, and needs to be integrated with other authentication components, which will lead to a larger and larger project size and is not flexible enough; Spring Cloud Zuul only supports Http microservices and cannot communicate with RPC microservices
After the integration of Spring Cloud Zuul and OAuth2, the business microservice still needs to call the authentication service to authenticate the access token (accessToken), which is too intrusive to the business microservice

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The embodiment of the present invention provides a microservice uniform authentication method, which is used to realize microservice authentication of various service types, has the characteristics of flexible configuration and no intrusion to microservice business modules, and improves the efficiency of microservice authentication flexibility.

[0050] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the...

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 embodiment of the invention discloses a micro service unified authentication method. The micro service unified authentication method is used to implement micro service authentication for multipleservice types, and has the characteristics of flexible configuration and no intrusion into a micro service business module, thus improving the flexibility of micro service authentication. The micro service unified authentication method includes the steps: a gateway receives a micro service authentication request sent by a client, and extracts an URI uniform resource identifier from the authentication request; the gateway sends the URI to gateway management micro service, and the gateway management micro service is used to store a mapping table between the URI and a micro service interface type, a micro service address, a micro service authentication type, and an authentication credential parameter; the gateway receives the corresponding micro service interface type, micro service address,micro service authentication type, and authentication credential parameter sent by the gateway management micro service, and extracts the corresponding authentication credential parameter from the authentication request; and the gateway sends the URI and the corresponding authentication credential parameter to the authentication service for authentication, and receives the corresponding authentication result.

Description

technical field [0001] The invention relates to the technical field of microservices, in particular to a unified authentication method for microservices. Background technique [0002] In the era of mobile Internet, business is becoming more and more complex. Taking Cloud House as an example, the business can be divided into instant messaging, corporate organizational structure, circle of colleagues, etc. by field. The data volume of each business module is huge. The use of a single application cannot meet the requirements of isolation, horizontal expansion, flexible upgrades, and multi-team collaborative development. Therefore, Cloud House adopts the industry-recognized micro-service technology architecture, and there are hundreds of micro-services divided. Each of hundreds of microservices may support requests from multiple sources such as PC web, PC desktop, mobile client, and open platforms. In the early stage of Cloud House development, in order to speed up, microser...

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): H04W12/06H04L29/06H04W88/16H04L29/08
CPCH04L63/0876H04W12/06H04W88/16H04L63/0807H04L67/02H04L67/133
Inventor 李永耀唐国伟朱武
Owner SHENZHEN YUNZHIJIA NETWORK 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