CN113709164A - Retired soldier identity authentication method and system based on message queue - Google Patents
Retired soldier identity authentication method and system based on message queue Download PDFInfo
- Publication number
- CN113709164A CN113709164A CN202111009676.3A CN202111009676A CN113709164A CN 113709164 A CN113709164 A CN 113709164A CN 202111009676 A CN202111009676 A CN 202111009676A CN 113709164 A CN113709164 A CN 113709164A
- Authority
- CN
- China
- Prior art keywords
- message
- identity
- authentication
- soldier
- retired
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000012795 verification Methods 0.000 claims abstract description 14
- 241000283973 Oryctolagus cuniculus Species 0.000 claims description 3
- 230000000977 initiatory effect Effects 0.000 claims description 2
- 230000002085 persistent effect Effects 0.000 claims 2
- 238000012545 processing Methods 0.000 abstract description 7
- 238000001228 spectrum Methods 0.000 abstract description 3
- 230000001419 dependent effect Effects 0.000 abstract description 2
- 230000002688 persistence Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0861—Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a retired soldier identity authentication method and a retired soldier identity authentication system based on a message queue, which relate to the technical field of identity authentication and comprise the following implementation processes: the client terminal receives identity authentication requests from different terminals initiated by users; the client terminal writes the received identity authentication request into a message queue; the message server subscribes the message of the message queue, and after receiving the subscription message from the message queue, initiates a request to a retired soldier authentication server, and respectively calls a real-name authentication interface and a portrait comparison interface; the retired soldier authentication server calls a real-name authentication interface and a portrait comparison interface according to the request to perform asynchronous identity verification and portrait comparison; and after the identity verification and the portrait are successfully compared, the message server writes the result into the database and returns a message of successful identity authentication to the client. The invention utilizes the message queue to connect the client and the interface of the retired soldier authentication server, thereby realizing the safe, rapid and spectrum-dependent processing authentication process.
Description
Technical Field
The invention relates to the technical field of identity authentication, in particular to a retired soldier identity authentication method and a retired soldier identity authentication system based on a message queue.
Background
It is extremely difficult to predict what requirements will be met by a project in the future at the beginning of the system construction start-up. An implicit data-based interface layer is inserted in the middle of the processing process of the message system, and the processing processes on both sides need to realize the interface. This allows you to independently extend or modify the processes on both sides, as long as they are guaranteed to adhere to the same interface constraints. In some cases, the process of processing data fails, and unless the data is persisted, it is lost. The message queue persists data until they have been fully processed, in this way circumventing the risk of data loss. In the "insert-acquire-delete" paradigm employed by many message queues, your processing system is required to explicitly indicate that a message has been processed before it is deleted from the queue, thereby ensuring that your data is securely stored until you are finished using it. When a part of components of the system fail, the whole system is not influenced. Message queues reduce the degree of coupling between processes so that even if a process that processes a message hangs, messages that are enqueued can still be processed after the system resumes.
Disclosure of Invention
Aiming at the requirements and the defects of the prior art development, the invention provides a retired soldier identity authentication method and a retired soldier identity authentication system based on a message queue.
Firstly, the invention provides a retired soldier identity authentication method based on a message queue, and the technical scheme adopted for solving the technical problems is as follows:
a retired soldier identity authentication method based on a message queue comprises the following implementation processes:
the client terminal receives identity authentication requests from different terminals initiated by users;
the client terminal writes the received identity authentication request into a message queue;
the message server subscribes the message of the message queue, and after receiving the subscription message from the message queue, initiates a request to a retired soldier authentication server, and respectively calls a real-name authentication interface and a portrait comparison interface;
the retired soldier authentication server calls a real-name authentication interface and a portrait comparison interface according to the request to perform asynchronous identity verification and portrait comparison;
and after the identity verification and the portrait are successfully compared, the message server writes the result into the database and returns a message of successful identity authentication to the user sending the request.
Specifically, the identity authentication request information initiated by the user comprises identity information and portrait information, wherein the identity information comprises names, certificate types and certificate numbers of retired soldiers, and the portrait information is acquired portrait BASE64 code information data of retired soldiers.
Specifically, when the message server sends a request to the retired soldier authentication server, the real-name authentication interface and the portrait comparison interface are respectively called, firstly, the identity of the retired soldier is acquired from the currently accessed soldier retirement related information system, then, the access right corresponding to the retired soldier is acquired according to the identity of the retired soldier, and the content conforming to the identity of the current retired soldier is loaded.
Preferably, the message server acquires the messages of the message queue in a push or pull mode.
Preferably, the message queue employs a highly available, persisteable message middleware Active MQ, rabbitmq, or socket MQ.
Secondly, the invention provides a retired soldier identity authentication system based on a message queue, and the technical scheme adopted for solving the technical problems is as follows:
a retired soldier identity authentication system based on a message queue relates to a client terminal, a message server and a retired soldier authentication server;
the client is used for receiving identity authentication requests initiated by users from different terminals and sending the requests to the message queue;
the message server is used for subscribing the message of the message queue and initiating a request to the retired soldier authentication server after receiving the subscription message from the message queue;
the retired soldier authentication server calls the real-name authentication interface and the portrait comparison interface respectively according to the request, asynchronous identity verification and portrait comparison are carried out, after the identity verification and the portrait comparison are successful, the message server writes the result into the database, and returns a message that the identity authentication is successful to the client.
Specifically, the identity authentication request information initiated by the user comprises identity information and portrait information, wherein the identity information comprises names, certificate types and certificate numbers of retired soldiers, and the portrait information is acquired portrait BASE64 code information data of retired soldiers.
Specifically, when the message server sends a request to the retired soldier authentication server, the real-name authentication interface and the portrait comparison interface are respectively called, firstly, the identity of the retired soldier is acquired from the currently accessed soldier retirement related information system, then, the access right corresponding to the retired soldier is acquired according to the identity of the retired soldier, and the content conforming to the identity of the current retired soldier is loaded.
Preferably, the message server acquires the messages of the message queue in a push or pull mode.
Preferably, the message queue employs a highly available, persisteable message middleware Active MQ, rabbitmq, or socket MQ.
Compared with the prior art, the retired soldier identity authentication method and the retired soldier identity authentication system based on the message queue have the beneficial effects that:
(1) the invention utilizes the message queue to connect the client and the interface of the retired soldier authentication server, thus realizing the safe, rapid and spectrum-dependent processing authentication process;
(2) the invention can flexibly carry out identity authentication service, realize quick adaptation aiming at different platforms, improve the identity authentication efficiency and reduce the pressure of a client server.
Drawings
Fig. 1 is a schematic diagram of an implementation framework of the present invention.
Detailed Description
In order to make the technical scheme, the technical problems to be solved and the technical effects of the present invention more clearly apparent, the following technical scheme of the present invention is clearly and completely described with reference to the specific embodiments.
The first embodiment is as follows:
with reference to fig. 1, the present embodiment provides a retired soldier identity authentication method based on a message queue, and an implementation process of the method includes:
the client terminal receives an identity authentication request from a user from a different terminal.
The identity authentication request information initiated by the user comprises identity information and portrait information, wherein the identity information comprises names, certificate types and certificate numbers of retired soldiers, and the portrait information is acquired portrait BASE64 code information data of retired soldiers.
And (II) the client terminal writes the received identity authentication request into a message queue.
The message queue adopts high-availability and persistence message middleware Active MQ, Rabbit MQ or socket Mq.
And (III) the message server subscribes the message of the message queue, and after receiving the subscription message from the message queue, initiates a request to a retired soldier authentication server, and respectively calls a real-name authentication interface and a portrait comparison interface.
In this embodiment, the message server obtains the message in the message queue in a push or pull manner.
And (IV) calling a real-name authentication interface and a portrait comparison interface by the retired soldier authentication server according to the request to perform asynchronous identity verification and portrait comparison, wherein the specific process comprises the following steps:
firstly, the identity of the retired soldier is obtained from the currently accessed soldier retirement related information system, then the access right corresponding to the retired soldier is obtained according to the identity of the retired soldier, and the content conforming to the identity of the currently retired soldier is loaded.
And (V) after the identity verification and the portrait comparison are successful, the message server writes the result into the database and returns a message of successful identity authentication to the user sending the request.
Example two:
with reference to fig. 1, the present embodiment provides a retired soldier identity authentication system based on a message queue, which implements a client terminal, a message server, and a retired soldier authentication server.
The client is used for receiving identity authentication requests initiated by users from different terminals and sending the requests to the message queue. The identity authentication request information initiated by the user comprises identity information and portrait information, wherein the identity information comprises names, certificate types and certificate numbers of retired soldiers, and the portrait information is acquired portrait BASE64 code information data of retired soldiers; the message queue adopts high-availability and persistence message middleware Active MQ, Rabbit MQ or socket Mq.
The message server subscribes the message of the message queue in a push or pull mode, and initiates a request to the retired soldier authentication server after receiving the subscription message from the message queue.
The retired soldier authentication server calls the real-name authentication interface and the portrait comparison interface respectively according to the request to perform asynchronous identity verification and portrait comparison: firstly, the identity of the retired soldier is obtained from the currently accessed soldier retirement related information system, then the access right corresponding to the retired soldier is obtained according to the identity of the retired soldier, and the content conforming to the identity of the currently retired soldier is loaded.
And after the identity verification and the portrait are successfully compared, the message server writes the result into the database and returns a message of successful identity authentication to the client.
In summary, the retired soldier identity authentication method and system based on the message queue, provided by the invention, can utilize the message queue to connect the client and the interface of the retired soldier authentication server, so that the processing authentication process of the spectrum can be safely, quickly and reliably realized.
The principles and embodiments of the present invention have been described in detail using specific examples, which are provided only to aid in understanding the core technical content of the present invention. Based on the above embodiments of the present invention, those skilled in the art should make any improvements and modifications to the present invention without departing from the principle of the present invention, and therefore, the present invention should fall into the protection scope of the present invention.
Claims (10)
1. A retired soldier identity authentication method based on a message queue is characterized in that the implementation process comprises the following steps:
the client terminal receives identity authentication requests from different terminals initiated by users;
the client terminal writes the received identity authentication request into a message queue;
the message server subscribes the message of the message queue, and after receiving the subscription message from the message queue, initiates a request to a retired soldier authentication server, and respectively calls a real-name authentication interface and a portrait comparison interface;
the retired soldier authentication server calls a real-name authentication interface and a portrait comparison interface according to the request to perform asynchronous identity verification and portrait comparison;
and after the identity verification and the portrait are successfully compared, the message server writes the result into the database and returns a message of successful identity authentication to the client.
2. The method of claim 1, wherein the identity authentication request information initiated by the user includes identity information and portrait information, the identity information includes names, types and numbers of the retired soldiers, and the portrait information is portrait BASE64 code information data of collected retired soldiers.
3. The method of claim 1, wherein when the message server sends a request to the decommissioned soldier authentication server, the message server calls the real-name authentication interface and the portrait comparison interface respectively, first obtains the identity of the decommissioned soldier from the currently accessed soldier decommissioning related information system, then obtains the access right of the corresponding decommissioned soldier according to the identity, and loads the content conforming to the identity of the currently decommissioned soldier.
4. The method of claim 1, wherein the message server obtains the message from the message queue by pushing or pulling.
5. The method of claim 1, wherein the message queue employs a highly available and persistent message middleware, Active MQ, rabbitmq, or socket MQ.
6. A retired soldier identity authentication system based on a message queue is characterized in that the realization relates to a client terminal, a message server and a retired soldier authentication server;
the client is used for receiving identity authentication requests initiated by users from different terminals and sending the requests to the message queue;
the message server is used for subscribing the message of the message queue and initiating a request to the retired soldier authentication server after receiving the subscription message from the message queue;
the retired soldier authentication server calls the real-name authentication interface and the portrait comparison interface respectively according to the request to perform asynchronous identity verification and portrait comparison, and after the identity verification and the portrait comparison are successful, the message server writes the result into the database and returns a message of successful identity authentication to the client.
7. The system of claim 6, wherein the identity authentication request information initiated by the user comprises identity information and portrait information, the identity information comprises names, types and numbers of the retired soldiers, and the portrait information is portrait BASE64 code information data of collected retired soldiers.
8. The system of claim 6, wherein when the message server sends a request to the decommissioned soldier authentication server, the message server calls the real-name authentication interface and the portrait comparison interface respectively, first obtains the identity of the decommissioned soldier from the currently accessed soldier decommissioning related information system, then obtains the access right of the corresponding decommissioned soldier according to the identity, and loads the content conforming to the identity of the currently decommissioned soldier.
9. The system of claim 6, wherein the message server obtains the message from the message queue in a push or pull manner.
10. The system of claim 6, wherein the message queue employs a highly available and persistent message middleware (Active MQ), Rabbit MQ or socket Mq.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111009676.3A CN113709164A (en) | 2021-08-31 | 2021-08-31 | Retired soldier identity authentication method and system based on message queue |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111009676.3A CN113709164A (en) | 2021-08-31 | 2021-08-31 | Retired soldier identity authentication method and system based on message queue |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113709164A true CN113709164A (en) | 2021-11-26 |
Family
ID=78657668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111009676.3A Pending CN113709164A (en) | 2021-08-31 | 2021-08-31 | Retired soldier identity authentication method and system based on message queue |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113709164A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130318591A1 (en) * | 2011-01-27 | 2013-11-28 | Tencent Technology (Shenzhen) Company Limited | Method And Apparatus For Managing Identity For Mobile Terminal |
CN105119722A (en) * | 2015-08-07 | 2015-12-02 | 杭州朗和科技有限公司 | Identity verification method, equipment and system |
CN105933280A (en) * | 2016-03-15 | 2016-09-07 | 天地融科技股份有限公司 | Identity authentication method and system |
GB201813629D0 (en) * | 2018-08-21 | 2018-10-03 | Shufti Pro Ltd | Systems and methods for remotely verifying user identities |
CN108932421A (en) * | 2018-07-16 | 2018-12-04 | 中国银行股份有限公司 | A kind of identity identifying method and device |
CN109741490A (en) * | 2018-12-17 | 2019-05-10 | 景安大数据科技有限公司 | A kind of identity checking method and its device |
CN109981525A (en) * | 2017-12-27 | 2019-07-05 | 航天信息股份有限公司 | Identity information authentication method, terminal, server and system |
CN110443740A (en) * | 2019-07-30 | 2019-11-12 | 广州大白互联网科技有限公司 | A kind of identity identifying method and system |
CN112527835A (en) * | 2020-12-04 | 2021-03-19 | 平安科技(深圳)有限公司 | Authentication request processing method and device based on cache and related equipment |
CN112800139A (en) * | 2021-02-23 | 2021-05-14 | 浪潮云信息技术股份公司 | Third-party application data synchronization system based on message queue |
-
2021
- 2021-08-31 CN CN202111009676.3A patent/CN113709164A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130318591A1 (en) * | 2011-01-27 | 2013-11-28 | Tencent Technology (Shenzhen) Company Limited | Method And Apparatus For Managing Identity For Mobile Terminal |
CN105119722A (en) * | 2015-08-07 | 2015-12-02 | 杭州朗和科技有限公司 | Identity verification method, equipment and system |
CN105933280A (en) * | 2016-03-15 | 2016-09-07 | 天地融科技股份有限公司 | Identity authentication method and system |
CN109981525A (en) * | 2017-12-27 | 2019-07-05 | 航天信息股份有限公司 | Identity information authentication method, terminal, server and system |
CN108932421A (en) * | 2018-07-16 | 2018-12-04 | 中国银行股份有限公司 | A kind of identity identifying method and device |
GB201813629D0 (en) * | 2018-08-21 | 2018-10-03 | Shufti Pro Ltd | Systems and methods for remotely verifying user identities |
CN109741490A (en) * | 2018-12-17 | 2019-05-10 | 景安大数据科技有限公司 | A kind of identity checking method and its device |
CN110443740A (en) * | 2019-07-30 | 2019-11-12 | 广州大白互联网科技有限公司 | A kind of identity identifying method and system |
CN112527835A (en) * | 2020-12-04 | 2021-03-19 | 平安科技(深圳)有限公司 | Authentication request processing method and device based on cache and related equipment |
CN112800139A (en) * | 2021-02-23 | 2021-05-14 | 浪潮云信息技术股份公司 | Third-party application data synchronization system based on message queue |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9461981B2 (en) | Leveraging a persistent connection to access a secured service | |
CN109933439B (en) | Message transmission method, device, computer equipment and storage medium | |
CN111258723B (en) | Transaction processing method, device, system, medium and equipment of distributed system | |
CN110377369A (en) | A kind of method, equipment and computer storage medium running small routine | |
CN101516131A (en) | Method, system and device for data synchronization | |
CN112527844A (en) | Data processing method and device and database architecture | |
US11777852B1 (en) | System and method for web service atomic transaction (WS-AT) affinity routing | |
CN107577700B (en) | Database disaster tolerance processing method and device | |
CN114338063A (en) | Message queue system, service processing method, and computer-readable storage medium | |
CN111124717A (en) | Message delivery method, system and computer storage medium | |
CN113836155A (en) | Data processing method and device based on distributed system and storage medium | |
CN113709164A (en) | Retired soldier identity authentication method and system based on message queue | |
CN111866544B (en) | Data processing method, device, equipment and computer readable storage medium | |
CN110445834A (en) | A kind of method and system for solving propelling data and losing | |
CA3196744C (en) | Method and system to seamlessly upgrade cloud-based call processing services | |
EP3378202B1 (en) | Archiving messages without message copying | |
CN114666411A (en) | Request processing method, device, server, storage medium and product | |
CN112333262A (en) | Data updating prompting method and device, computer equipment and readable storage medium | |
CN111309500A (en) | Service processing method, device, equipment and storage medium | |
US6836470B1 (en) | Method for reliable message delivery in a network of mobile computers | |
CN110460586B (en) | In-vehicle node communication method, device, equipment and storage medium | |
CN113766437B (en) | Short message sending method and device | |
CN111711639B (en) | Terminal, data transmission method, system, and computer-readable storage medium | |
CN112769824B (en) | Information transmission state updating method, terminal, device and storage medium | |
CN113220491B (en) | Remote call self-adaptive load balancing method, device and system and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20211126 |
|
RJ01 | Rejection of invention patent application after publication |