A memory-sharing single sign-on method and system
By configuring authorization information in the portal and using the memory shared authentication module, the existing single sign-on technology is solved and the problems of cumbersome and security risks are achieved, efficient and secure single sign-on between systems is achieved, and user satisfaction is improved.
Patent Information
- Application Number
- CN202410775178.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing single sign-on technology is complicated when calling interfaces between systems, and there are security risks and inconsistent login methods for different systems, resulting in increased development difficulty and time-consuming.
Using the memory-shared single sign-on method, by configuring authorization information in the portal, including system encoding, authorization level, authorization data and check-in time, using the authentication module in the memory for data query and authorization management, and generating a globally unique check-in code , realize data sharing and login between systems.
It simplifies the single sign-on process between systems, improves user satisfaction, reduces development complexity and security risks, and realizes the effective opening of login data through memory sharing.
Smart Images

Figure CN118368143B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of memory sharing single sign-on, and in particular relates to a memory sharing single sign-on method and system. Background Art
[0002] Single Sign On (SSO) is one of the more popular solutions for enterprise business integration. The definition of SSO is that in multiple application systems, users only need to log in once to access all mutually trusted application systems.
[0003] In the past, different systems have implemented single sign-on by calling interfaces. This requires different systems to connect to the single sign-on interface, which is cumbersome and has many problems. For example, if the system security is not sufficient, user information may be easily leaked during the transmission process. Furthermore, different systems have different login methods, so different docking functions need to be developed, which is time-consuming and labor-intensive. Summary of the invention
[0004] Based on this, an embodiment of the present invention provides a memory-sharing single sign-on method and system to solve the above problems.
[0005] A first aspect of an embodiment of the present invention provides a memory-sharing single sign-on method, which is applied to a scenario where a third-party system needs to perform single sign-on on a portal, and the method includes:
[0006] Step 1: Configure authorization information in the portal, including system code, authorization level, authorization data and sign-in time limit;
[0007] Step 2: When the portal is initialized, it loads the configured authorization information and stores the authorization information in memory;
[0008] Step 3: When the third-party system needs to perform single sign-on, the authentication module in the memory is called, and the system code and the user identifier in the authorization data are passed to the authentication module. The authentication module will perform data query based on the system code and the user identifier in the authorization data and return the authentication result;
[0009] Step 4: According to the authentication result returned by the authentication module, control the third-party system to perform corresponding processing to open the authorization information, specifically including:
[0010] If the authentication result is returned as failed, check whether the authorization configuration has been performed;
[0011] If not, perform authorization configuration and then go to step 3;
[0012] If yes, try step 3 again;
[0013] When the authentication result is returned as successful, the authorization data corresponding to the specified area in the memory is opened according to the sign-in code;
[0014] According to the sign-in time limit, the authentication module in the control portal regularly refreshes the authorization data. For users who fail to sign in after the expiration date, the corresponding authorization data will be cleared from the memory;
[0015] Step 5: Control the use of authorization information by third-party systems, including:
[0016] According to the sign-in time limit and sign-in code, control the third-party system to regularly call the sign-in module in the memory to sign in, so as to extend the use time of the authorized data;
[0017] According to the sign-in code, control the third-party system to call the acquisition module in the memory to obtain the required data;
[0018] The authentication module will perform data query according to the system code and the user identifier in the authorization data, and the steps of returning the authentication result include:
[0019] Search the user ID in the memory to determine whether there is a corresponding user ID;
[0020] If so, the system code is searched in the memory to determine whether there is a corresponding system code;
[0021] If so, the corresponding authorization level and authorization data are obtained, and the corresponding authorization dictionary data is searched. If the authorization dictionary data is found, the authentication success is returned, wherein a string of globally unique sign-in codes is sent to the third-party system, each sign-in code corresponds to a preset area in the memory, and the corresponding authorization dictionary data is placed in the corresponding preset area according to the sign-in code.
[0022] Furthermore, the sign-in code is generated by a GUID algorithm.
[0023] Furthermore, the authentication module will perform data query based on the system code and the user identifier in the authorization data, and in the step of returning the authentication result, use the authentication method AuthenticationMethod to perform data query.
[0024] Furthermore, in the step of controlling the third-party system to call the acquisition module in the memory to acquire the required data according to the sign-in code, the GetInfo method is used to acquire the required data.
[0025] A second aspect of an embodiment of the present invention provides a memory-sharing single sign-on system, which is used to implement the memory-sharing single sign-on method as described in the first aspect, and the system includes:
[0026] A configuration module, used to configure authorization information in the portal, the authorization information includes system code, authorization level, authorization data and sign-in time limit;
[0027] The loading module is used to load the configured authorization information when the portal is initialized and store the authorization information in the memory;
[0028] A data query module is used to call the authentication module in the memory when the third-party system needs to perform single sign-on, and pass the system code and the user identifier in the authorization data to the authentication module. The authentication module will perform data query based on the system code and the user identifier in the authorization data and return the authentication result;
[0029] A first control module, used to control the third-party system to perform corresponding processing according to the authentication result returned by the authentication module to open the authorization information;
[0030] The second control module is used to control the third-party system to use the authorization information.
[0031] A third aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the memory-sharing single sign-on method provided in the first aspect.
[0032] A fourth aspect of an embodiment of the present invention provides an electronic device, comprising 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 memory-sharing single sign-on method provided in the first aspect is implemented.
[0033] A memory-sharing single sign-on method and system provided in an embodiment of the present invention configures authorization information in a portal, the authorization information including a system code, an authorization level, authorization data and a sign-in time limit; when the portal is initialized, the configured authorization information is loaded and stored in the memory; when a third-party system needs to perform a single sign-on, the authentication module in the memory is called, and the system code and the user identifier in the authorization data are passed to the authentication module, and the authentication module performs data query based on the system code and the user identifier in the authorization data and returns the authentication result; based on the authentication result returned by the authentication module, the third-party system is controlled to perform corresponding processing to open the authorization information; based on controlling the third-party system to use the authorization information, specifically, single sign-on is performed in a memory-sharing manner, involving single sign-on system credit, memory area data sharing, and only one "handshake" is required when sharing data, and the login data can be opened after authentication, effectively improving user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1A flowchart of a memory-sharing single sign-on method according to the first embodiment of the present invention;
[0035] Figure 2 It is a schematic diagram of configuration content;
[0036] Figure 3 A structural block diagram of a memory-sharing single sign-on system provided in Embodiment 2 of the present invention;
[0037] Figure 4 This is a structural block diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0038] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0039] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0041] Embodiment 1
[0042] See also Figure 1 , Figure 1 A memory-sharing single sign-on method provided in the first embodiment of the present invention is shown, which specifically includes steps S01 to S05.
[0043] Step S01, configure authorization information in the portal, the authorization information includes system code, authorization level, authorization data and sign-in time limit.
[0044] Specifically, when a third-party system needs to perform single sign-on on the portal, it is necessary to first configure the single sign-on related information in the portal. The configuration content is as follows: Figure 2As shown, system code: built-in coding information assigned by each authorization system; authorization level: divided into level one, level two, and level three, each level corresponds to different authorization data; authorization data: corresponding data permissions that can be obtained by the authorization-related system, corresponding to the authorization level; sign-in time limit: after system authorization, sign-in is required at irregular intervals. Users who fail to sign-in on time will be deemed invalid, that is, single point sign-on fails and data acquisition fails.
[0045] Step S02: When the portal is initialized, it loads the configured authorization information and stores the authorization information in the memory.
[0046] In this embodiment, illustratively, the format stored in the memory is:
[0047] User permission data format:
[0048] { [
[0050] {
[0051] "SystemId": "001",
[0052] "Level": "Level 1",
[0053] "FailureTime": "5",
[0054] "Desc": "",
[0055] },
[0056] {
[0057] "SystemId": "002",
[0058] "Level": "Level 2",
[0059] "FailureTime": "10",
[0060] "Desc": "",
[0061] },
[0062] {
[0063] "SystemId": "003",
[0064] "Level": "Level 3",
[0065] "FailureTime": "5",
[0066] "Desc": "",
[0067] },
[0068] {
[0069] "SystemId": "004",
[0070] "Level": "Level 1",
[0071] "FailureTime": "5",
[0072] "Desc": "",
[0073] } ]
[0075] }
[0076] User Information:
[0077] { [
[0079] {
[0080] "UserCode": "1001",
[0081] "UserName": "Zhang San",
[0082] "Age": "25",
[0083] "Tel": "12345678900",
[0084] "Pwd":"123456" ......
[0086] },
[0087] {
[0088] "UserCode": "1002",
[0089] "UserName": "Li Si",
[0090] "Age": "25",
[0091] "Tel": "12345678900",
[0092] "Pwd":"123456" ......
[0094] },
[0095] {
[0096] "UserCode": "1003",
[0097] "UserName": "Wang Wu",
[0098] "Age": "25",
[0099] "Tel": "12345678900",
[0100] "Pwd":"123456" ......
[0102] },
[0103] {
[0104] "UserCode": "1004",
[0105] "UserName": "Zhao Liu",
[0106] "Age": "25",
[0107] "Tel": "12345678900",
[0108] "Pwd":"123456" ......
[0110] } ]
[0112] }
[0113] Dictionary data information:
[0114] { [
[0116] {
[0117] "type": "ICD10", [
[0119] {
[0120] "A00.000": "Classical biotype of cholera",
[0121] "A00.100": "El Tor cholera",
[0122] "A00.900": "Cholera", ......
[0124] } ]
[0126] "type": "ICD9", [
[0128] {
[0129] "00.01001": "Therapeutic ultrasound of head blood vessels",
[0130] "00.01002": "Therapeutic Ultrasound of the Neck Vasculature", ......
[0132] } ]
[0134] } ]
[0136] }.
[0137] Step S03, when the third-party system needs to perform single sign-on, the authentication module in the memory is called, and the system code and the user identifier in the authorization data are passed to the authentication module. The authentication module will perform data query based on the system code and the user identifier in the authorization data and return the authentication result.
[0138] Specifically, the authentication module will perform data query according to the system code and the user identifier in the authorization data, and the steps of returning the authentication result include:
[0139] Search the user ID in the memory to determine whether there is a corresponding user ID;
[0140] If so, the system code is searched in the memory to determine whether there is a corresponding system code;
[0141] If so, the corresponding authorization level and authorization data are obtained, and the corresponding authorization dictionary data is searched. If the authorization dictionary data is found, the authentication success is returned, wherein a string of globally unique sign-in codes is sent to the third-party system, each sign-in code corresponds to a preset area in the memory, and the corresponding authorization dictionary data is placed in the corresponding preset area according to the sign-in code.
[0142] Among them, the authentication method AuthenticationMethod is used to query the data. In this embodiment, according to the user identifier, the data of the user identifier = UserCode is searched in the memory user information:
[0143] a) If the relevant data user information is not found, the authentication failure is returned, and the description information is: the specified user information is not found;
[0144] b) If the user information is found, proceed to the next step of judgment;
[0145] According to the user permission data in the system code in memory, it is determined that SystemId = system code;
[0146] a) If the relevant user authority data is not found, the authentication failure is returned, and the description information is: the relevant user authority data is not found;
[0147] b) If the user-related permission data is found, proceed to the next step of judgment;
[0148] According to the corresponding permission level Level and authorization data (type), search the dictionary data information for the data dictionary content that should be authorized at the corresponding level. In the authorization data, dictionary type = type.
[0149] a) If no relevant authorization dictionary data is found, the authentication is successful and the description information is: no relevant authorization dictionary data is found;
[0150] b) If the relevant authorization dictionary data is found, the authentication success is returned, and the description information is: a string of sign-in codes given to the third-party system, such as: 6F9619FF-8B86-D011-B42D-00C04FC964FF, which is globally unique. Then the authorization dictionary data is placed in a specified memory area, and the third-party system can directly go to the memory area to obtain relevant data. It should be noted that the sign-in code is generated by the GUID algorithm. Specifically, the GUID (Global unique identifier) is a 16-byte binary value generated by the identification number on the network card (each network card has a unique identification number) and the unique number of the CPU clock.
[0151] The format of GUID is "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", where each x is a hexadecimal number in the range of 0-9 or af. For example: 76895313-839E-4E89-BAFC-B253BFF3173F. No two computers in the world will generate duplicate GUID values. GUID is mainly used to assign identifiers that must be unique in networks or systems with multiple nodes and multiple computers. On the Windows platform, GUID is widely used: registry, class and interface identifiers, databases, and even automatically generated machine names, directory names, etc.
[0152] Exemplarily, the following are GUID generation methods under different operating environments:
[0153] 1. SQL Server database
[0154] In the past, when developing SQL Server databases, the column type was specified as uniqueidentifier in the table definition, and the column value was of GUID type.
[0155] 2. Generate a GUID using T-SQL
[0156] insert into table1(id,name,...) values(NewID(),'张三',...)
[0157] 3. Create a GUID in C#
[0158] Guid guid = Guid.NewGuid();
[0159] Console.Writeln(guid.ToString());
[0160] 4. Create a UUID in Java
[0161] In Java, it becomes UUID;
[0162] The creation method is System.out.println( java.util.UUID.randomUUID()).
[0163] Step S04, according to the authentication result returned by the authentication module, control the third-party system to perform corresponding processing to open the authorization information.
[0164] Specifically, when the returned authentication result is failure, check whether the authorization configuration has been performed;
[0165] If not, after performing the authorization configuration, then execute step S03;
[0166] If so, retry step S03;
[0167] When the returned authentication result is success, according to the check-in code, open the authorization data corresponding to the specified area in the memory;
[0168] According to the check-in validity period, control the authentication module in the portal to regularly refresh the authorization data. Among them, for users who have not checked in after expiration, the corresponding authorization data will be cleared from the memory, and the third-party system will not be able to call it again.
[0169] Step S05, control the third-party system to use the authorization information.
[0170] Specifically, according to the check-in validity period and the check-in code, control the third-party system to regularly call the check-in module in the memory to check in to extend the usage time of the authorization data. Among them, the check-in method Sign can be used for check-in, and the Sign signature can be implemented using the Sign function in Python;
[0171] According to the check-in code, control the third-party system to call the acquisition module in the memory to obtain the required data. Among them, the GetInfo method is used to obtain the required data, that is, the GetInfo function.
[0172] In summary, the memory-shared single sign-on method in the above-mentioned embodiment of the present invention configures authorization information in a portal, and the authorization information includes a system code, an authorization level, authorization data, and a sign-in time limit; when the portal is initialized, the configured authorization information is loaded and stored in the memory; when a third-party system needs to perform a single sign-on, the authentication module in the memory is called, and the system code and the user identifier in the authorization data are passed to the authentication module, and the authentication module performs data query according to the system code and the user identifier in the authorization data, and returns the authentication result; according to the authentication result returned by the authentication module, the third-party system is controlled to perform corresponding processing to open the authorization information; according to controlling the third-party system to use the authorization information, specifically, single sign-on is performed in a memory-shared manner, which involves single sign-on system credit, memory area data sharing, and only one "handshake" is required when sharing data, and the login data can be opened after authentication.
[0173] Embodiment 2
[0174] See also Figure 3 , Figure 3 1 is a structural block diagram of a memory-sharing single sign-on system 200 provided in Embodiment 2 of the present invention. The memory-sharing single sign-on system 200 includes: a configuration module 21, a loading module 22, a data query module 23, a first control module 24 and a second control module 25, wherein:
[0175] Configuration module 21, used to configure authorization information in the portal, the authorization information includes system code, authorization level, authorization data and sign-in time limit;
[0176] The loading module 22 is used to load the configured authorization information when the portal is initialized, and store the authorization information in the memory;
[0177] The data query module 23 is used to call the authentication module in the memory when the third-party system needs to perform single sign-on, and pass the system code and the user identifier in the authorization data to the authentication module. The authentication module will perform data query based on the system code and the user identifier in the authorization data, and return the authentication result, wherein the authentication method AuthenticationMethod is used for data query;
[0178] A first control module 24, used to control the third-party system to perform corresponding processing according to the authentication result returned by the authentication module to open the authorization information;
[0179] The second control module 25 is used to control the third-party system to use the authorization information.
[0180] Further, in some optional embodiments of the present invention, the data query module 23 includes:
[0181] A first judgment unit, used to search the user identifier in the memory to determine whether a corresponding user identifier exists;
[0182] A second determination unit is used to search the system code in the memory to determine whether the corresponding system code exists when it is determined that the corresponding user identifier exists;
[0183] The search unit is used to obtain the corresponding authorization level and authorization data when it is determined that the corresponding system code exists, and to search for the corresponding authorization dictionary data. If the authorization dictionary data is found, the authentication success is returned, wherein a string of globally unique sign-in codes is sent to the third-party system, each sign-in code corresponds to a preset area in the memory, and the corresponding authorization dictionary data is placed in the corresponding preset area according to the sign-in code, and the sign-in code is generated by a GUID algorithm.
[0184] Further, in some optional embodiments of the present invention, the first control module 24 includes:
[0185] A third judgment unit is used to check whether the authorization configuration has been performed when the authentication result returned is a failure;
[0186] An execution unit, used for executing the data query module 23 after performing authorization configuration when the authorization configuration is not performed;
[0187] A retry unit, used for retrying the data query module 23 when checking that the authorization configuration has been performed;
[0188] The opening unit is used to open the authorization data corresponding to the specified area in the memory according to the sign-in code when the authentication result is returned as successful;
[0189] The refresh unit is used to control the authentication module in the portal to regularly refresh the authorization data according to the sign-in time limit, wherein the corresponding authorization data of the user who fails to sign in after the expiration date will be cleared from the memory.
[0190] Further, in some optional embodiments of the present invention, the second control module 25 includes:
[0191] The sign-in unit is used to control the third-party system to regularly call the sign-in module in the memory to sign in according to the sign-in time limit and the sign-in code, so as to extend the use time of the authorized data;
[0192] The control unit is used to control the third-party system to call the acquisition module in the memory to obtain the required data according to the sign-in code, wherein the GetInfo method is used to obtain the required data.
[0193] Embodiment 3
[0194] Another aspect of the present invention provides an electronic device, see Figure 4 , shown is an electronic device in Embodiment 3 of the present invention, including a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor, wherein when the processor 10 executes the computer program 30, the memory-sharing single sign-on method as described above is implemented.
[0195] In some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 20, such as executing access restriction programs.
[0196] Among them, the memory 20 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 20 can be an internal storage unit of an electronic device, such as a hard disk of the electronic device. In other embodiments, the memory 20 can also be an external storage device of an electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 20 can also include both an internal storage unit of the electronic device and an external storage device. The memory 20 can not only be used to store application software and various types of data of the electronic device, but also can be used to temporarily store data that has been output or is to be output.
[0197] It should be pointed out that Figure 4 The structure shown does not constitute a limitation on the electronic device. In other embodiments, the electronic device may include fewer or more components than those shown in the figure, or combine certain components, or arrange the components differently.
[0198] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the memory-sharing single sign-on method as described above is implemented.
[0199] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0200] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0201] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0202] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0203] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.
Claims
1. A memory-sharing single sign-on method, It is characterized in that Applied to the scenario where a third-party system needs to perform single sign-on on a portal, the method includes: Step 1: Configure authorization information in the portal, including system code, authorization level, authorization data and sign-in time limit; Step 2: When the portal is initialized, it loads the configured authorization information and stores the authorization information in memory; Step 3: When the third-party system needs to perform single sign-on, the authentication module in the memory is called, and the system code and the user identifier in the authorization data are passed to the authentication module. The authentication module will perform data query based on the system code and the user identifier in the authorization data and return the authentication result; Step 4: According to the authentication result returned by the authentication module, control the third-party system to perform corresponding processing to open the authorization information, specifically including: If the authentication result is returned as failed, check whether the authorization configuration has been performed; If not, perform authorization configuration and then go to step 3; If yes, try step 3 again; When the authentication result is returned as successful, the authorization data corresponding to the specified area in the memory is opened according to the sign-in code; According to the sign-in time limit, the authentication module in the control portal regularly refreshes the authorization data. For users who fail to sign in after the expiration date, the corresponding authorization data will be cleared from the memory; Step 5: Control the use of authorization information by third-party systems, including: According to the sign-in time limit and sign-in code, control the third-party system to regularly call the sign-in module in the memory to sign in, so as to extend the use time of the authorized data; According to the sign-in code, control the third-party system to call the acquisition module in the memory to obtain the required data; The authentication module will perform data query according to the system code and the user identifier in the authorization data, and the steps of returning the authentication result include: Search the user ID in the memory to determine whether there is a corresponding user ID; If so, the system code is searched in the memory to determine whether there is a corresponding system code; If so, the corresponding authorization level and authorization data are obtained, and the corresponding authorization dictionary data is searched. If the authorization dictionary data is found, the authentication success is returned, wherein a string of globally unique sign-in codes is sent to the third-party system, each sign-in code corresponds to a preset area in the memory, and the corresponding authorization dictionary data is placed in the corresponding preset area according to the sign-in code.
2. The memory-sharing single sign-on method according to claim 1, It is characterized in that The sign-in code is generated by a GUID algorithm.
3. The memory-sharing single sign-on method according to claim 1, It is characterized in that The authentication module will perform data query based on the system code and the user identifier in the authorization data, and in the step of returning the authentication result, use the authentication method AuthenticationMethod to perform data query.
4. The memory-sharing single sign-on method according to claim 1, It is characterized in that In the step of controlling the third-party system to call the acquisition module in the memory to obtain the required data according to the sign-in code, the GetInfo method is used to obtain the required data.
5. A memory-sharing single sign-on system, It is characterized in that Used to implement the memory sharing single sign-on method according to any one of claims 1 to 4, the system comprises: A configuration module, used to configure authorization information in the portal, the authorization information includes system code, authorization level, authorization data and sign-in time limit; The loading module is used to load the configured authorization information when the portal is initialized and store the authorization information in the memory; A data query module is used to call the authentication module in the memory when the third-party system needs to perform single sign-on, and pass the system code and the user identifier in the authorization data to the authentication module. The authentication module will perform data query based on the system code and the user identifier in the authorization data and return the authentication result; A first control module, used to control the third-party system to perform corresponding processing according to the authentication result returned by the authentication module to open the authorization information; The second control module is used to control the third-party system to use the authorization information.
6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the memory-sharing single sign-on method as described in any one of claims 1 to 4 is implemented.
7. An electronic device, It is characterized in that The invention comprises 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 memory-sharing single sign-on method according to any one of claims 1 to 4 is implemented.
