Information authentication method and device, electronic equipment and storage medium
By performing advance authentication and identity token generation for the proxy authentication platform when the portal system is started, the problem of unique authentication core and long link in single sign-on technology is solved, improving user experience and reducing hardware resource requirements and expansion costs.
Patent Information
- Application Number
- CN202410870497.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-01
Smart Images

Figure CN118740457A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information authentication technology, and in particular to an information authentication method, device, electronic device and storage medium. Background Art
[0002] With the explosive development of mobile technology in enterprises and the requirements of companies for digital transformation, the degree of informatization of mobile office and mobile operation on the external network is getting higher and higher. In order to further build a bridge for internal and external communication and achieve a close integration of the internal micro-environment with the external macro-ecology, companies generally adopt the Internet instant messaging product + enterprise personalized self-developed integrated platform construction model.
[0003] In the related technologies, this platform construction mode generally uses single sign-on technology to authenticate relevant information when authenticating user information. However, due to problems such as unique authentication core and long authentication link, this authentication method has become increasingly unable to adapt to the current field environment. Summary of the invention
[0004] In view of this, the present application proposes an information authentication method, device, electronic device and storage medium to solve or partially solve the above problems.
[0005] Based on the above purpose, this application provides an information authentication method, including:
[0006] In response to obtaining a startup operation on the portal system, determining application information that requires proxy authentication;
[0007] Output the application information to the proxy authentication platform, so as to authenticate the information to the authentication system through the proxy authentication platform, generate an identity token on the proxy authentication platform, and obtain the identity token;
[0008] In response to obtaining a startup operation of a specific application of the portal system, using an identity token corresponding to the specific application to perform information authentication on the proxy authentication platform, and obtaining identity information fed back by the proxy authentication platform;
[0009] The identity information is output to the business system so that the business system verifies the identity information, obtains the verification result of the business system, and determines the startup result of the specific application according to the verification result.
[0010] In some exemplary embodiments, before outputting the application information to the proxy authentication platform, the method further includes:
[0011] Requesting a temporary token from an authentication system according to the application information;
[0012] The temporary token is written into the application information.
[0013] In some exemplary embodiments, the step of performing information authentication on the authentication system through the proxy authentication platform and generating an identity token on the proxy authentication platform includes:
[0014] Determining the validity of the temporary token to the authentication system through the proxy authentication platform;
[0015] According to the validity determination result, the authentication system returns the authentication information to the proxy authentication platform, and uses the remote dictionary service to store the authentication information;
[0016] The proxy authentication platform is enabled to generate the identity token according to the authentication information.
[0017] In some exemplary embodiments, the using the identity token corresponding to the specific application to perform information authentication on the proxy authentication platform and obtaining the identity information fed back by the proxy authentication platform includes:
[0018] The identity token corresponding to the specific application is verified by the proxy authentication platform, so that the proxy authentication platform determines the identity information corresponding to the specific application according to the verification result, and encrypts the identity information according to a preset encryption public key.
[0019] In some exemplary embodiments, after enabling the proxy authentication platform to determine the identity information corresponding to the specific application according to the verification result, the method further includes:
[0020] The identity information is signed by the proxy authentication platform.
[0021] In some exemplary embodiments, verifying the identity information through the business system includes:
[0022] The business system decrypts the identity information according to a preset encryption private key and performs a signature verification operation.
[0023] In some exemplary embodiments, the encryption and decryption algorithms corresponding to the preset encryption public key and the preset encryption private key include: at least one of the SM3 algorithm or the SM4 algorithm.
[0024] Based on the same concept, the present application also provides an information authentication device, including:
[0025] A determination module, configured to determine application information requiring proxy authentication in response to obtaining a startup operation on the portal system;
[0026] A first acquisition module is used to output the application information to the proxy authentication platform, so as to authenticate the information to the authentication system through the proxy authentication platform, generate an identity token on the proxy authentication platform, and acquire the identity token;
[0027] A second acquisition module is used to, in response to acquiring a startup operation of a specific application of the portal system, perform information authentication on the proxy authentication platform using an identity token corresponding to the specific application, and acquire identity information fed back by the proxy authentication platform;
[0028] The authentication module is used to output the identity information to the business system so as to verify the identity information through the business system, obtain the verification result of the business system, and determine the startup result of the specific application according to the verification result.
[0029] Based on the same concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the methods described above when executing the program.
[0030] Based on the same concept, the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement any of the methods described above.
[0031] Based on the same concept, the present application also provides a computer program product, including computer program instructions, which, when executed on a computer, enable the computer to execute any of the above methods.
[0032] From the above description, it can be seen that the information authentication method, device, electronic device and storage medium provided by the present application include: in response to obtaining the startup operation of the portal system, determining the application information that needs to be authenticated by proxy; outputting the application information to the proxy authentication platform, so as to authenticate the information to the authentication system through the proxy authentication platform, and generating an identity token on the proxy authentication platform to obtain the identity token; in response to obtaining the startup operation of a specific application of the portal system, using the identity token corresponding to the specific application to authenticate the information to the proxy authentication platform, and obtaining the identity information fed back by the proxy authentication platform; outputting the identity information to the business system, so as to verify the identity information through the business system, obtain the verification result of the business system, and determine the startup result of the specific application according to the verification result. The present application collects information of the business applications that need to be authenticated and uniformly performs pre-authentication when the portal system is started, uses the set proxy authentication platform to save the corresponding authentication information and generate an identity token, and then when starting a specific business application, directly determines the corresponding identity information on the proxy authentication platform through the corresponding identity token, and then directly uses the identity information to complete the startup authentication of the business application. In this way, authentication through a proxy authentication platform is added to the original authentication system, solving the core problem that all authentications must go through the authentication system. At the same time, when the business application is started, the communication required is reduced from more than three times to only two times, shortening the authentication link and ultimately greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A flowchart of the single sign-on technology in the related technology provided in the embodiment of the present application.
[0035] Figure 2 A flowchart of an exemplary method provided in an embodiment of the present application.
[0036] Figure 3 A schematic diagram of a flow chart of an exemplary method provided in an embodiment of the present application in a specific application.
[0037] Figure 4 A schematic diagram of the structure of an exemplary device provided in an embodiment of the present application.
[0038] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of this specification more clear, this specification is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0040] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements, objects or method steps appearing before the word cover the elements, objects or method steps listed after the word and their equivalents, without excluding other elements, objects or method steps. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0041] As mentioned in the background technology section, in order to ensure the unity of the company's private applications and instant messaging modules during platform construction, companies and enterprises generally adopt the single sign-on mode of Internet instant messaging products as the core business application authentication architecture. As the platform construction gradually deepens, the number of business application accesses and user visits has exploded. Limited by the requirements of Internet products for hardware resources, the contradiction between the growth of system carrying capacity and the growth of business has lagged behind that of business, which has had a certain impact on user experience and system stability.
[0042] In related technologies, single sign-on technology is generally used to meet the authentication requirements of business applications. In specific scenarios, such as Figure 1 As shown, the single sign-on technology adopts a three-party authentication model, which includes three parts: business application, authentication service provider (authentication system), and business service provider (business system). Among them, the portal system, as the carrier of the business application, has generally passed the authentication system to complete the authentication in the early stage. It supports the operation of many business applications running with the portal system. After that, the specific process of a business application for authentication is: ① The business application requests a temporary token CODE from the authentication system through the portal system. ② The business application submits the obtained temporary token CODE to the business system. ③ The business system submits the temporary token CODE to the authentication system, and the authentication system verifies the validity of the temporary token CODE, returns the user information, and completes the authentication.
[0043] After that, the above single-point authentication mode is analyzed, and it can be found that it mainly has the following problems: First, the authentication core is unique: all authentications of business applications need to go through the instant messaging authentication service module, that is, they all need to go through the authentication system. When encountering the resource bottleneck problem of the instant messaging system, its stability and access performance will affect all business applications based on its authentication. Secondly, the authentication link is long: the traditional single-point sign-on authentication requires three HTTP communications between the business application (within the portal system), the business system, and the authentication system, of which the authentication system is accessed twice. When the instant messaging operation is at its peak, the server resource occupancy is high, or the network fluctuates, the authentication system authentication response becomes longer and the user experience becomes worse. Further, in the following embodiments, it may also encounter resource conflict problems: the business application single-point login occupies a large amount of CPU and memory resources of the instant messaging service-related server, which affects the instant messaging performance. Expansion cost problem: Instant messaging is a system with large concurrency, long connection, large traffic, and high timeliness requirements. It requires physical servers with high CPU, memory and storage performance, high hardware resource costs, and a long expansion cycle.
[0044] Therefore, when faced with the single-point authentication needs of companies with large business volumes, the authentication architecture of existing Internet products has become increasingly difficult to meet actual needs, and it is necessary to build new authentication systems and methods by comprehensively considering factors such as server expansion development costs, response time, and system stability.
[0045] In light of the above actual situation, an embodiment of the present application provides an information authentication method. This application collects information on business applications that require information authentication and uniformly performs pre-authentication when the portal system is started, and uses the set proxy authentication platform to save the corresponding authentication information and generate an identity token. When a specific business application is started later, the corresponding identity information is directly determined on the proxy authentication platform through the corresponding identity token, and then the identity information is directly used to complete the startup authentication of the business application. In this way, authentication through a proxy authentication platform is added on the basis of the original authentication that can only be performed through the authentication system, which solves the problem that all authentications must go through the authentication core of the authentication system. At the same time, when the business application is started, the original communication required more than three times is reduced to only two times, shortening the authentication link, and ultimately greatly improving the user experience.
[0046] Figure 2 A flow chart of an exemplary method provided in an embodiment of the present application is shown.
[0047] like Figure 2 As shown, the information authentication method exemplarily proposed in the embodiment of the present application specifically includes the following steps.
[0048] Step 202: in response to obtaining a startup operation on the portal system, determining application information that needs to be proxy authenticated.
[0049] In this step, the portal system is a system that integrates various information resources within the enterprise and provides personalized services to users through a unified interface. It can be understood as a management platform for business applications, and business applications are specific operational applications, such as internal communication dialogue applications, processing reports, data applications, information control and supervision applications, etc.
[0050] Afterwards, when the startup operation for the portal system is monitored, the business applications that need to be authenticated can be counted or determined. The startup operation here can be a click operation on the icon corresponding to the portal system, or directly inputting the operation command corresponding to the portal system, etc., which is an operation to run the portal system.
[0051] In this embodiment, after the portal system starts running, in order to solve the authentication problem of each business application, proxy authentication can be performed in advance at this time. Regardless of whether the corresponding business application will actually be started later, authentication work can be performed first at this time. This ensures that when a business application is actually run, it can be combined with the information that has been authenticated to quickly complete the entire information authentication and complete the startup of the specific application.
[0052] Furthermore, in this step, after the portal system is started, it is first necessary to determine the application information that needs to be authenticated by the proxy. The application information here can generally correspond to multiple specific business applications, and only one of them is used as an example in this embodiment. The application information here can include the basic information of the corresponding specific application, such as the identification information (name, etc.) and version number of the specific application.
[0053] Step 204: output the application information to the proxy authentication platform, so as to authenticate the information to the authentication system through the proxy authentication platform, generate an identity token on the proxy authentication platform, and obtain the identity token.
[0054] In this step, after the portal system is started, it is necessary to complete the authentication of the corresponding business application in advance. Here, single sign-on technology can be used to complete the specific authentication process. However, in ordinary single sign-on technology, the specific application is authenticated only after the user starts the specific application, while in this embodiment, proxy authentication is performed, which is equivalent to a preparatory work before the user starts the specific application.
[0055] Afterwards, the specific authentication process can be to output the corresponding application information to the proxy authentication platform, and then verify the information with the authentication system through the proxy authentication platform. After the authentication system completes the verification, it will transmit the corresponding user information to the proxy authentication platform. Afterwards, since it is a proxy authentication, no real authentication operation occurs. Then, the proxy authentication platform can be used to store the corresponding user information so that it can respond quickly when the user formally starts the corresponding business application through the portal system. In order to determine which business application the user will start later, that is, to determine the corresponding correspondence, the proxy authentication platform can generate a corresponding identity token for each business application, and then the identity token can be transmitted to the portal system. The identity token here is the session TOKEN token.
[0056] At this point, it is equivalent to completing the proxy authentication work of the business application according to the single sign-on technology. After that, it is necessary to wait for the user to actually start a business application on the portal system, and then interact with the proxy authentication platform through the session TOKEN token to quickly complete the final authentication.
[0057] In some embodiments, since the authentication work of the single sign-on technology is carried out, before the application information is output to the proxy authentication platform, a temporary token CODE can be requested from the authentication system according to the application information, and then the temporary token CODE and the corresponding application information are given to the proxy authentication platform, so that the proxy authentication platform can transmit the temporary token CODE to the authentication system, so that the authentication system can perform validity authentication according to the temporary token CODE. If the authentication is passed, the authentication system can transmit the corresponding information (business application information, user information, etc.) to the proxy authentication platform. After that, the proxy authentication platform can store this information and generate a corresponding identity token based on this information. Here, the proxy authentication platform can use the remote dictionary service (Redis) to cache information. The remote dictionary service (Redis, RemoteDictionary Server) is an open source log-type, Key-Value database written in ANSI C language, supporting the network, based on memory and can also be persistent, and provides APIs in multiple languages. Here, the high concurrency and low latency characteristics of Redis can be used to buffer the basic data of a large number of users of single-point authentication to ensure ultra-low latency for authentication. At the same time, by using Redis's corresponding cloud containerization technology, it is also possible to achieve the ability to automatically expand and shrink capacity based on the number of concurrent requests.
[0058] That is, in some embodiments, before outputting the application information to the proxy authentication platform, the method further includes: requesting a temporary token from the authentication system according to the application information; and writing the temporary token into the application information. The information authentication to the authentication system through the proxy authentication platform and generating an identity token on the proxy authentication platform includes: determining the validity of the temporary token to the authentication system through the proxy authentication platform; according to the validity determination result, causing the authentication system to return authentication information to the proxy authentication platform and use a remote dictionary service to store the authentication information; causing the proxy authentication platform to generate the identity token according to the authentication information.
[0059] Step 206 , in response to obtaining the startup operation of the specific application of the portal system, using the identity token corresponding to the specific application to perform information authentication on the proxy authentication platform, and obtaining the identity information fed back by the proxy authentication platform.
[0060] In this step, it is the processing process when the user actually wants to start a specific application through the portal system. In the previous steps, since the proxy authentication has been completed and the corresponding identity token has been obtained, when the user needs to start a specific application, the corresponding identity token can be transmitted to the proxy authentication platform to verify the corresponding information through the proxy authentication platform. If the verification and authentication pass, the proxy authentication platform can transmit the corresponding identity information to the portal system. The identity information here is the information obtained from the authentication system after the proxy authentication platform completes the authentication of the corresponding application.
[0061] In some embodiments, after receiving the identity token transmitted from the portal system, the proxy authentication platform can first verify it with the identity token stored in itself. If the verification is passed, the authentication information previously obtained at the authentication system can be transmitted to the portal system as the identity information corresponding to the specific application. In order to ensure the security of the identity information, the identity information can be encrypted. The encryption algorithm used for the encryption process here can be SM4 or SM3 algorithm, etc. In a specific application scenario, the identity information can be encrypted using the public key of the corresponding encryption and decryption algorithm. Afterwards, in other embodiments, in order to further improve the security of the identity information, the identity information can also be signed by the proxy authentication platform. This operation can occur before the identity information is encrypted (that is, encrypted together with the identity information) or after the identity information is encrypted.
[0062] That is, in some embodiments, the use of the identity token corresponding to the specific application to authenticate the agent authentication platform and obtain the identity information fed back by the agent authentication platform includes: verifying the identity token corresponding to the specific application through the agent authentication platform, so that the agent authentication platform determines the identity information corresponding to the specific application according to the verification result, and encrypts the identity information according to a preset encryption public key. After the agent authentication platform determines the identity information corresponding to the specific application according to the verification result, the method also includes: signing the identity information through the agent authentication platform.
[0063] Step 208: output the identity information to the business system so that the business system can verify the identity information, obtain the verification result of the business system, and determine the startup result of the specific application according to the verification result.
[0064] In this step, after obtaining the identity information in step 206, the identity information can be transmitted to the business system so that the business system can determine whether the specific application has passed the information authentication based on the identity information, and finally feed back the result to the business application to enable it to determine whether to complete the final startup, thereby completing the information verification and finally allowing the user to log in.
[0065] In some embodiments, since the identity information is encrypted, the business system can also use the corresponding encryption and decryption algorithm to perform a decryption operation, such as using the corresponding SM4 or SM3 algorithm's private key to decrypt the identity information. At the same time, if there is a signature operation, a signature verification operation can also be performed at the same time. In a specific scenario, the public key and private key of the corresponding encryption and decryption algorithm can be pre-allocated, and the allocation of public and private key pairs can be completed in advance online or offline. That is, in some embodiments, the verification of the identity information by the business system includes: decrypting the identity information by the business system according to a preset encryption private key, and performing a signature verification operation.
[0066] In a specific embodiment, Figure 3 As shown, for the specific authentication process corresponding to this embodiment, first, when the business system adopts the proxy authentication platform (i.e., the secondary proxy authentication service) for authentication, it can apply for a key from the proxy authentication platform in advance, and save the private key in the business system, and the proxy authentication platform saves the public key.
[0067] The information authentication of this embodiment is divided into two stages. The first stage is when the portal system is started, the authentication agent follows the original single sign-on technology logic to complete the single sign-on first. Specifically: ① The authentication agent application module of the portal system requests a temporary token CODE from the authentication system through the portal system. ② The authentication agent application module submits the obtained temporary token CODE to the proxy authentication platform (cloud). ③ The proxy authentication platform submits the temporary token CODE to the authentication system, the authentication system verifies the validity of the temporary token CODE, and returns the user information to the proxy authentication platform. The proxy authentication platform generates an identity token (session TOKEN) and completes the authentication. After that, the identity token can be transmitted to the authentication agent application module of the portal system.
[0068] The second stage is when the actual specific business application is started, and the business application can complete the authentication only through the proxy authentication platform. Specifically: ④ The business application uses the identity token to request user information from the proxy authentication platform through the authentication proxy application module of the portal system (at this time, since the authentication proxy application module and the proxy authentication platform have completed the login in the first stage, a secure request can be made). The proxy authentication platform verifies the identity token, and based on the business application information that needs to be authenticated, uses the unique key of the business application to encrypt and sign the user information and return the encrypted user information to the business application. ⑤ The business application submits the encrypted user information to the business system, and the business system uses the private key issued by the proxy authentication platform to decrypt and verify the user information. If the decryption and verification are successful, the login is completed.
[0069] According to the above specific embodiments, it can be seen that the authentication proxy application module of the portal system uses the existing traditional single sign-on function to complete the three-party authentication, caches user information in the background, and provides support for the subsequent business application single point authentication. Its main functions are (1) basic authentication: when the portal system is started, authentication is implemented based on the existing single sign-on module, and the identity token and user summary information are cached. (2) Identity token: Provide basic identity tokens for business applications, and support business applications to obtain encrypted identity information from the proxy authentication platform. The proxy authentication platform is mainly based on the existing single sign-on model to complete the single sign-on authentication, use REDIS to cache basic user information, and generate a session with the single point authentication module. Using the high concurrency and low latency characteristics of Redis, the massive user basic data for authentication is buffered to ensure ultra-low latency for authentication. In addition, using the corresponding cloud containerization technology, the ability to automatically expand and shrink capacity according to the request concurrency can be realized. Its main functions are (1) basic authentication: when the portal system is started, it supports the mobile proxy authentication module, uses the existing single sign-on mechanism to implement authentication, generates identity tokens and user basic information, and caches them. (2) Proxy authentication: When a business application uses an identity token request, the SM3 or SM4 algorithm is used to encrypt user information based on the corresponding application identifier and the responding application management service to generate an encrypted user basic information string. The SM3 or SM4 algorithm can also be used to sign and return it to the business application. (3) Application management: Before a business application accesses the proxy authentication platform, the corresponding business service in the business system is pre-registered on the proxy authentication platform and obtains its application identifier and matching private key. (4) Information encryption: The user basic information submitted to the proxy authentication platform is encrypted and decrypted using the public key of the corresponding application and the SM4 or SM3 algorithm.
[0070] It can be seen from the above that the following problems can be solved through the solutions of the above specific embodiments: (1) Solve the unique authentication core problem: The authentication of business applications can adopt the original authentication logic, or use the proxy authentication platform to complete the authentication, so as to solve the authentication stability problem caused by the fact that all authentications need to go through the instant messaging authentication service module. (2) Solve the problem of long authentication link: In the authentication method of this embodiment, the business application only needs to communicate twice with the proxy authentication platform and the business system, shortening the authentication link. (3) Solve the resource conflict problem: When the business application logs in through the proxy authentication platform through a single point, it no longer accesses the instant messaging server to avoid affecting the instant messaging performance. (4) Solve the expansion cost problem: The proxy authentication platform can be deployed in a containerized environment on the cloud, and can be elastically scaled and expanded according to the request volume to ensure that the authentication service resources are sufficient. At the same time, since the pressure on the instant messaging server is reduced, the demand for expansion of the instant messaging server is reduced, and the overall cost is reduced.
[0071] From the above embodiments, it can be seen that an information authentication method provided by the embodiments of the present application includes: in response to obtaining a startup operation for a portal system, determining application information that needs to be proxy authenticated; outputting the application information to a proxy authentication platform, so as to perform information authentication on the authentication system through the proxy authentication platform, and generating an identity token on the proxy authentication platform to obtain the identity token; in response to obtaining a startup operation for a specific application of the portal system, using the identity token corresponding to the specific application to perform information authentication on the proxy authentication platform, and obtaining identity information fed back by the proxy authentication platform; outputting the identity information to a business system, so as to verify the identity information through the business system, obtain the verification result of the business system, and determine the startup result of the specific application according to the verification result. The present application collects information on business applications that need to be authenticated and uniformly performs pre-authentication when the portal system is started, uses the set proxy authentication platform to save the corresponding authentication information and generate an identity token, and then when starting a specific business application, directly determines the corresponding identity information on the proxy authentication platform through the corresponding identity token, and then directly uses the identity information to complete the startup authentication of the business application. In this way, authentication through a proxy authentication platform is added to the original authentication system, solving the core problem that all authentications must go through the authentication system. At the same time, when the business application is started, the communication required is reduced from more than three times to only two times, shortening the authentication link and ultimately greatly improving the user experience.
[0072] Finally, it can be seen that the embodiment scheme of the present application adopts a key-based system-to-system mutual trust model to replace the original three-party authentication mode, so as to meet the single-point authentication needs and reduce the dependence on hardware resources. At the same time, it has the characteristics of fast expansion and fast response speed, which solves the existing problems of large resource occupation, high cost, difficult expansion and long response cycle based on single authentication services. Finally, a high-performance single-point authentication system for mobile services is realized with less development cost and lower deployment difficulty, which improves the platform authentication support capability and user experience. Specifically, the current single-point login authentication system adopts a three-party authentication mode, and verification is required between the business system and the authentication system, which has the problems of large resource consumption and long authentication time. After adopting the above scheme, the business system no longer needs to verify with the authentication system, and the communication is reduced from three times to two times, reducing network communication by 33%, effectively reducing the authentication abnormality caused by network, resource and other problems, thereby solving the problem of long business application authentication process. After that, the existing single-point authentication mode adopts a three-party authentication mode, which requires multiple calls to the authentication system, increasing the resource occupation of the authentication system. By providing proxy authentication services through the proxy authentication platform, we can reduce the reliance on the existing authentication system and realize the automatic expansion capability of the cloud-based proxy authentication platform. In addition to supporting the large concurrent authentication needs of existing businesses, we can more effectively apply various authentication needs of online activities with a large number of users. At the same time, we can avoid the problem of response delay of instant messaging services caused by large resource usage, support more concurrent instant messaging requests with existing resources, increase the expansion cycle, and reduce hardware procurement costs.
[0073] Finally, in a specific application, the proxy authentication architecture and system implemented by the present invention is built on the workbench of the State Grid Corporation's iState Grid mobile application platform, which supports 1.8 million users on a daily basis and tens of millions of single-point authentication requests for applications every day, greatly reducing the time required to enter the application and effectively improving the user experience.
[0074] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of the embodiment of the present application can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0075] It should be noted that the above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0076] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an information authentication device.
[0077] refer to Figure 4 , the information authentication device comprises:
[0078] The determination module 410 is used to determine application information that needs to be proxy authenticated in response to obtaining a startup operation on the portal system.
[0079] The first acquisition module 420 is used to output the application information to the proxy authentication platform so as to perform information authentication to the authentication system through the proxy authentication platform, generate an identity token on the proxy authentication platform, and acquire the identity token.
[0080] The second acquisition module 430 is used to, in response to acquiring a startup operation of a specific application of the portal system, perform information authentication on the proxy authentication platform using an identity token corresponding to the specific application, and acquire identity information fed back by the proxy authentication platform.
[0081] The authentication module 440 is used to output the identity information to the business system so as to verify the identity information through the business system, obtain the verification result of the business system, and determine the startup result of the specific application according to the verification result.
[0082] In some exemplary embodiments, the first acquisition module 420 is further configured to:
[0083] Requesting a temporary token from an authentication system according to the application information;
[0084] The temporary token is written into the application information.
[0085] In some exemplary embodiments, the step of performing information authentication on the authentication system through the proxy authentication platform and generating an identity token on the proxy authentication platform includes:
[0086] Determining the validity of the temporary token to the authentication system through the proxy authentication platform;
[0087] According to the validity determination result, the authentication system returns the authentication information to the proxy authentication platform, and uses the remote dictionary service to store the authentication information;
[0088] The proxy authentication platform is enabled to generate the identity token according to the authentication information.
[0089] In some exemplary embodiments, the using the identity token corresponding to the specific application to perform information authentication on the proxy authentication platform and obtaining the identity information fed back by the proxy authentication platform includes:
[0090] The identity token corresponding to the specific application is verified by the proxy authentication platform, so that the proxy authentication platform determines the identity information corresponding to the specific application according to the verification result, and encrypts the identity information according to a preset encryption public key.
[0091] In some exemplary embodiments, after enabling the proxy authentication platform to determine the identity information corresponding to the specific application according to the verification result, the method further includes:
[0092] The identity information is signed by the proxy authentication platform.
[0093] In some exemplary embodiments, verifying the identity information through the business system includes:
[0094] The business system decrypts the identity information according to a preset encryption private key and performs a signature verification operation.
[0095] In some exemplary embodiments, the encryption and decryption algorithms corresponding to the preset encryption public key and the preset encryption private key include: at least one of the SM3 algorithm or the SM4 algorithm.
[0096] For the convenience of description, the above devices are described in terms of functions divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0097] The device of the above embodiment is used to implement the corresponding information authentication method in the above embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0098] Based on the same concept, corresponding to any of the above-mentioned embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the information authentication method as described in any of the above embodiments is implemented.
[0099] Figure 5A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0100] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0101] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0102] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0103] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0104] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0105] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0106] The electronic device of the above embodiment is used to implement the corresponding information authentication method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0107] Based on the same concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the information authentication method described in any of the above embodiments.
[0108] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0109] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the information authentication method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0110] Based on the same concept, corresponding to any of the above-mentioned embodiments, the present application also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the information authentication method. Corresponding to the execution subject corresponding to each step in each embodiment of the information authentication method, the processor that executes the corresponding step can belong to the corresponding execution subject.
[0111] The computer program product of the above embodiment is used to enable the computer and / or the processor to execute the information authentication method described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0112] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0113] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0114] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0115] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
