A third-party integrated login system authentication method and device based on an SDK development package and a medium

By introducing the SDK development package and configuring the login URL and attributes, the login requests of the original system are intercepted and modified to achieve unified authentication login, solving the user experience and security issues between multiple systems, and realizing fast and flexible unified authentication and data synchronization.

CN118449725BActive Publication Date: 2026-01-13SHANDONG INSPUR SCI RES INST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410494657.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2026-01-13
Estimated Expiration
2044-04-24

AI Technical Summary

Technical Problem

During project deployment, multiple logins between existing systems lead to a degraded user experience and increased security risks. How can we achieve unified single sign-on without disrupting the original login authentication system?

Method used

By introducing the SDK development package, configuring the login URL and attributes, intercepting and modifying the login requests of the original system, and forwarding them to a third-party unified authentication center, a unified authentication login protocol is implemented, and user and organizational data are synchronized through the Kafka message channel.

Benefits of technology

It enables fast and flexible unified authentication login, ensuring system stability and data real-time performance, reducing integration difficulty, and improving user experience and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118449725B_ABST
    Figure CN118449725B_ABST
Patent Text Reader

Abstract

The application provides a third-party integrated login system authentication method and device based on an SDK development package and a medium, and belongs to the technical field of user login systems. The following technical solutions are adopted: a unified authentication login protocol is built in the SDK package, the system introduces the SDK package, configures a login URL and attribute configuration, and injects the SDK package into the system lib directory in the form of an external package; the SDK package intercepts and transforms the original system login request and forwards it; the SDK package completes login logic development according to the unified authentication connection protocol, sends a login request to a third-party unified authentication center, and completes login; the SDK obtains feedback information of login completion, obtains user information based on the feedback information to complete subsequent business logic. The application realizes a unified authentication login protocol, and improves security and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to an authentication method, apparatus, and medium for a third-party integrated login system based on an SDK development package, belonging to the technical field of user login systems. Background Technology

[0002] In practical project deployment, an increasing number of projects require system integration into a unified authentication center to achieve unified single sign-on across different systems. However, most deployed systems are web-based, each with its own user login system. Integrating these systems into the required unified authentication platform without disrupting their existing login and authentication mechanisms, while minimizing secondary development work, has become a necessary requirement for many project deliverables. Currently, many systems employ independent login and authentication mechanisms, forcing users to log in multiple times when switching between systems. This not only degrades user experience but also increases security risks. Summary of the Invention

[0003] The purpose of this invention is to provide a third-party integrated login system authentication method, device, and medium based on an SDK development package, which realizes a unified authentication login protocol and improves security and user experience.

[0004] To achieve the above objectives, the present invention employs the following technical solution:

[0005] The SDK package incorporates a unified authentication login protocol. After the system imports this SDK package, it configures the login URL and attribute settings, and injects the SDK package into the system's lib directory as an external package.

[0006] The SDK package will intercept, modify, and forward the original system's login requests.

[0007] The SDK package completes the login logic development based on the unified authentication integration protocol and sends a login request to the third-party unified authentication center to complete the login process.

[0008] The SDK retrieves login completion feedback information and uses this feedback information to obtain user information to complete subsequent business logic.

[0009] Preferably, the SDK package intercepts, modifies, and forwards the login requests of the original system in the following way: the code logic of the login request is separated into the SDK package. After receiving the login request, the SDK package implements the integration protocol in the SDK package according to the integration documentation and integration protocol of the third-party integrated login system.

[0010] Preferably, the specific methods for obtaining user information based on feedback information are as follows:

[0011] After completing the third-party login authentication request in the SDK package, obtain the token information returned by the third-party login authentication; obtain the currently logged-in user based on the token information returned by authentication, and return the logged-in user information; the SDK package queries the corresponding user information in the system according to the association rules.

[0012] Preferably, the returned token information includes user and organization information.

[0013] Preferably, the SDK package also has a built-in Kafka message channel. After integrating the SDK package, the user and organization data synchronization method required by the third-party integrated login system is used to obtain the data pushed by the unified authentication platform and push it to Kafka. Kafka has been set to store the specified topic and periodically consumes the user and organization data in the topic to the original user system, thereby achieving the synchronization of user and organization data with the third-party unified authentication platform.

[0014] The advantages of this invention are as follows: By injecting the SDK package as an external package into the system's lib directory, the system can easily import and configure the login URL and attribute configuration. This design reduces integration difficulty, enabling the system to quickly and flexibly implement unified authentication login functionality. The SDK package is responsible for intercepting and modifying the original system's login requests. This design preserves the original system's login logic while achieving integration with a third-party unified authentication center. This ensures both system stability and meets the requirements of unified authentication. Through the built-in Kafka message channel, the SDK package can achieve data synchronization with the third-party unified authentication platform. This ensures the real-time nature and accuracy of user organizational data, avoiding data inconsistency issues. The modular design of the SDK package gives it good scalability and maintainability. When the protocol or function of the third-party unified authentication center changes, only the SDK package needs to be updated and configured accordingly, without requiring large-scale modifications to the entire system. Attached Figure Description

[0015] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used together with the embodiments of the invention to explain the invention and do not constitute a limitation thereof.

[0016] Figure 1 This is a schematic diagram of the method flow of the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] A third-party integrated login system authentication method, device, and medium based on an SDK development package are disclosed, which implement a unified authentication login protocol and improve security and user experience.

[0019] To achieve the above objectives, the present invention employs the following technical solution:

[0020] S1: The SDK package includes a unified authentication login protocol. After the system imports this SDK package, the login URL and attribute configuration are configured, and the SDK package is injected into the system lib directory as an external package.

[0021] Based on project experience, the SDK package includes commonly used unified authentication login protocols. After developers import this SDK package into their system, they can complete the integration between the original user login system and the unified authentication login platform by performing simple configurations, such as login URL and attribute configurations.

[0022] By injecting the SDK package into the system's lib directory as an external package, developers can rewrite and further develop the login interface template pre-built in the SDK. They can forward the original login request to the SDK package and adapt and modify the original system's login request to connect with a third-party unified authentication system.

[0023] S2: The SDK package will intercept, modify, and forward the login requests from the original system.

[0024] S3: The SDK package completes the login logic development based on the unified authentication integration protocol and sends a login request to the third-party unified authentication center to complete the login.

[0025] By extracting the login request code logic into the SDK package, after receiving the login request, the SDK package can perform secondary development to implement the integration protocol according to the actual needs of the project and the integration protocol of the third-party unified authentication login system integration documentation.

[0026] S4: The SDK obtains login completion feedback information and uses this feedback information to retrieve user information to complete subsequent business logic.

[0027] After completing the third-party login authentication request in the SDK package, obtain the token and other information returned by the third-party login authentication. The token contains information such as the user and organization. Developers can obtain the user and other information in the token for subsequent business logic implementation.

[0028] For organizational and user data synchronization, the SDK has a built-in Kafka message channel. After integrating the SDK package, developers can obtain the data pushed by the unified authentication platform according to the user and organizational data synchronization method required by the third-party login platform, and push it to Kafka. Kafka has been configured with a specified topic for storage, and can periodically consume user and organizational data from the topic to the original user system, thereby achieving synchronization between user and organizational data and the third-party unified authentication platform.

[0029] This disclosure also provides a third-party integrated login system authentication device based on an SDK development kit, including a processor and a memory. Optionally, the device may further include a communication interface and a bus. The processor, communication interface, and memory can communicate with each other via the bus. The communication interface can be used for information transmission. The processor can invoke logical instructions in the memory to execute the third-party integrated login system authentication method based on the SDK development kit described above.

[0030] Furthermore, the logical instructions in the aforementioned memory can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0031] Memory, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as the program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor executes the program instructions / modules stored in the memory to perform functional applications and data processing, thereby implementing the third-party integrated login system authentication method based on the SDK development package in the above embodiments.

[0032] The memory may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory may include high-speed random access memory and may also include non-volatile memory.

[0033] This disclosure provides a computer-readable storage medium storing computer-executable instructions configured to execute the aforementioned authentication method for a third-party integrated login system based on an SDK development package.

[0034] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0035] The technical solutions of this disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in this disclosure. The aforementioned storage medium can be a non-transitory storage medium, including: a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media capable of storing program code; it can also be a transient storage medium.

[0036] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A third-party integrated login system authentication method based on an SDK development kit, characterized in that, The SDK package is embedded into a unified authentication login protocol, and the system introduces the SDK package to configure a login URL and attribute configuration, and injects the SDK package into the system lib directory in the form of an external package. The SDK package intercepts and modifies the original system login request and forwards it. The SDK package completes login logic development according to the unified authentication interface protocol, sends a login request to a third-party unified authentication center, and completes login. The SDK obtains feedback information after login, obtains user information based on the feedback information, and completes subsequent business logic. The SDK package intercepts and modifies the original system login request and forwards it. The specific method is as follows: the code logic of the login request is stripped into the SDK package, and after the SDK package receives the login request, the interface protocol is implemented in the SDK package according to the interface document and interface protocol of the third-party integrated login system. The SDK package also has a built-in kafka message channel. After the SDK package is integrated, the user and organization data synchronization method required by the third-party integrated login system is obtained, the data pushed by the unified authentication platform is obtained, and the data is pushed to kafka. Kafka has set a specified topic storage, and the user and organization data in the topic are regularly consumed to the original user system, so as to synchronize the user and organization data and the third-party unified authentication platform. The specific method of obtaining user information based on feedback information is as follows: 2.The SDK development package-based third-party integrated login system authentication method of claim 1, wherein, After completing the third-party login authentication request in the SDK package, the token information returned by the third-party login authentication is obtained; the current login user is obtained according to the token information returned by the authentication, and the login user information is returned; the SDK package queries the corresponding user information in the system according to the association rule. The returned token information contains user and organization information. 3.The SDK development package based third-party integrated login system authentication method according to claim 2, characterized in that, The processor is configured to execute the program instructions when running the program instructions, and execute the third-party integrated login system authentication method based on the SDK development package as claimed in any one of claims 1-3.

4. An SDK development kit-based third-party integrated login system authentication device, comprising a processor and a memory storing program instructions, characterized in that, A computer program is stored thereon, which is executed by the processor to implement the method as claimed in any one of claims 1-3.

5. A computer readable storage medium, characterized in that, ​

Citation Information

Patent Citations

  • Unified authentication and authorization scheme

    CN111131301A

  • Internet of Things data automatic acquisition method and device based on 5G module equipment

    CN114915864A