Abstract:
A method for implementing unified authentication for user logon, the method comprising the steps of: establishing an authentication server; creating a user authentication account number in the authentication server; storing user information which the user uses in a plurality of systems into the authentication server; associating, in the authentication server, the created user authentication account number with the user information which the user uses in the plurality of systems; and providing an authentication flag to the client of the user by the authentication server based on the association between the user authentication account number and the user information which the user uses in the plurality of systems established in the authentication server so that the user can log on the plurality of systems using the authentication flag. The present invention is applied to provide a unified mechanism of user logon authentication in integration and mergence of the service processes provided by a plurality of Internet information systems or Internet providers, and thus the user can access all authorized application systems or service providers with only one logon authentication.

Description:
RELATED APPLICATIONS 
     This application claims priority to PCT Application No. PCT/CN2005/002127 filed Dec. 8, 2005, and Chinese Patent Application No. 200510072981.1 filed May 16, 2005. 
     FIELD OF THE INVENTION 
     The present invention relates to a network authentication method in the environment of the Internet, and particularly to a method of providing unified authentication for user logon in integrated and merged service processes provided by a plurality of Internet information systems or Internet service providers. 
     BACKGROUND OF THE INVENTION 
     Currently, a user needs to undergo respective procedures for logon authentication before he or she can access each of the services provided by a plurality of Internet information systems and Internet service providers. In this way, the user has to remember several user passwords, which complicates the use of these systems by the user and increases the probability of error occurrence. Besides, the risk of suffering from illegal interception and damage is heightened, leading to security loosening of security. Furthermore, if the user forgets one of the user passwords, he or she cannot carry out a corresponding task and has to ask for help from an administrator. The user can only wait before regaining his or her password. This contributes to the overhead of system and security management resource and lowers work efficiency. 
     SUMMARY OF THE INVENTION 
     An object of the present invention is to provide a method for implementing unified authentication for user logon which enables a user to access all authorized resources with only authenticating the user identity once, instead of authenticating several times to access all of the resources. With this method, it is possible to improve the work efficiency of a network user, reduce the cost of network operation and enhance the network security. 
     According to one aspect of the present invention, there is provided a method for implementing unified authentication for user logon, the method comprising the steps of: establishing an authentication server; creating a user authentication account number in the authentication server; storing user information which the user uses in a plurality of systems into the authentication server; associating, in the authentication server, the created user authentication account number with said user information which the user uses in the plurality of systems; and providing an authentication flag to the client of the user by the authentication server based on the association between the user authentication account number and said user information which the user uses in the plurality of systems established in the authentication server so that the user can log on to the plurality of systems using the authentication flag. 
     The present invention is primarily applied to provide a unified authenticating mechanism for user logon authentication in integrated and merged service processes provided by a plurality of Internet information systems or Internet providers. Thus, the user can access all authorized application systems or service providers with only one logon authentication, instead of conducting logon authentication every time the user accesses an application system or service provider. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
       The above object, advantages and features of the present invention will be apparent from the following detailed description of the several embodiments taken in conjunction with the drawings, in which: 
         FIG. 1  is a flowchart for creating, collecting and storing data in the method for implementing unified authentication according to one embodiment of the present invention; 
         FIG. 2  is a main flowchart for logging on to an authentication server and authentication system by using the method for implementing unified authentication according to one embodiment the present invention; 
         FIG. 3  is a flowchart for primary operation of the authentication server, the client of the user and the application system server when the user accesses other application systems after a successful logon into the authentication server with the method for implementing unified authentication according to the present invention; and 
         FIG. 4  is a sequence diagram for a user authentication process in the method for implementing unified authentication according to the present invention. 
     
    
    
     DETAILED DESCRIPTION 
     According to the method for implementing unified authentication of the present invention, a user needs to conduct logon authentication with an authentication server only once, and after that, no user authentication is required when the user accesses other application systems and information systems. For clearly describing this solution, the scheme of the present invention will be divided into three sections, with the first section describing preparation work before an authentication system runs, the second section explaining a user&#39;s logon, and the third section illustrating access to other application systems by the user after the above logon. 
     Below, in the description of the present invention with reference to the figures, related terms are defined as follows. 
     Authentication server: a server used to conduct unified logon authentication; Authentication account number: an account number used by a user to log on to the same authentication server; user token: a credential for authentication issued by the authentication server to the user after he or she logs on to the authentication server successfully; client of the user: a client-side program used by the user to connect to and access the authentication server and other application systems. 
       FIG. 1  is a flowchart for creating, collecting and storing data in the method for implementing unified authentication according to the present invention. 
     Referring to  FIG. 1 , at step S 11 , a user authentication account number needs to be created in an authentication server (e.g., allocating a user name and password to the user) and stored permanently (e.g., in a database or Lightweight Direct Access Protocol “LDAP”) so that the user can log on to the authentication server. 
     At step S 12 , the user&#39;s user information, for example, user name for logon, in other application systems needs to be collected into the authentication server and stored permanently. 
     At step S 13 , the correspondence between the created user authentication account number and the user information used in other application systems needs to be established to ensure that the application information of the user used in other application systems can be retrieved through the information of the user authentication account number, that is, the user&#39;s user information used in other application systems can be obtained by means of one authentication account number of the user. The correspondence as described above is stored in a persistent storage device. 
       FIG. 2  is a main flowchart for the user logging on to the authentication server and the authentication system in the method for implementing unified authentication according to one embodiment of the present invention. 
     Referring to  FIG. 2 , the primary tasks to be fulfilled by the authentication system and the client of the user when the user logs on the authentication server during the running of the system are depicted. 
     Now, a description will be made at the primary tasks to be completed by the client and the authentication server in the process of a user logon through the client of the user. The user attempts to log on to the authentication server at step S 21 . The authentication r server verifies the authentication account number of the user at step S 22 , and the logon will fail if the verification fails. At step S 23 , it is determined whether the verification of the authentication account number succeeds, and if it does, the authentication server allocates a temporary memory area to the user at step S 24 . It is necessary to allocate a unique identification to the temporary memory area; the identification can be generated in a random manner. Additionally, a timer is set and started simultaneously for the temporary memory area, which will be withdrawn by the system if no heartbeat request from the client of the user is received for a predetermined time period. Also, this memory area should be taken back if the user sends out logout information. On the other hand, the timer will be reset to an initial status for retiming if a heartbeat request from the client of the user is received within a predetermined time period. At step S 25 , the authentication server searches the stored user information (e.g., a database) for the user&#39;s user information (e.g., user name for logon) used in other application systems and stores the obtained information in the temporary memory area. The authentication server encrypts the unique identification of the temporary memory area at step S 26 . Here, it is necessary to guarantee that the encrypted cryptograph can be decrypted. The generated cryptograph is returned to the client of the user as a user token. At step S 27 , the logon is successful when the client of the user receives the user token sent back from the authentication server. The client of the user temporarily stores the token for further use during access to other application systems. Additionally, the client of the user sends a heartbeat request to the authentication server at a regular interval so that the latter will not withdraw the temporary memory area allocated for the user. 
       FIG. 3  is a flowchart showing the primary operations of the authentication server, the client of the user and the application system server when the user accesses other application systems after a successful logon into the authentication server in the method for implementing unified authentication according to the present invention. 
     Referring to  FIG. 3 , when the user wants to access other application systems after a successfully logging on to the authentication server, the authentication server, the client of the user and the application system server operate mainly as follows: At step S 31 , the client of the user takes the obtained user token to access another application system. At step S 32 , the application system server requests the authentication server to authenticate the user token. In particular, the application system receives the access request from the client of the user, acquires the user token and sends an authentication request to the authentication server along with the user token. At step S 33 , having received the authentication request from the application system, the authentication server retrieves the user token in the request from the application system and decrypts it. Then it is determined whether this decryption succeeds at step S 34 . If it is successful, the flow goes to step S 35 , where the authentication server, after a successful decryption of the user token at step S 33 , obtains the identification of the temporary memory area, locates the temporary memory area based on the identification and acquires the user&#39;s user information of the application system from this temporary memory area. On the other hand, the flow goes to step S 39  if the decryption fails at step S 34 . The authentication server returns authentication failure information to the application system at step S 39 , and then the application system returns this authentication failure information to the client of the user at step S 40 . Now, proceeding to step S 36 , the authentication server determines whether the information on the application system has been obtained. The flow proceeds to step S 37  if the determination result is “YES”. The authentication server returns the user information to the application system at step S 37 , and the flow enters step S 38  where the application system receives the information returned by the authentication server and determines whether there is user information. If there is, this authentication succeeds, and the user is allowed to use the application system. Otherwise, if the determination result at step S 36  is “NO”, the flow returns to step S 39 , where the authentication server returns authentication failure information to the application system. Again, the application system returns this authentication failure information to the client of the user at step S 40 . 
     Relevant terms used in implementing the above steps are defined as follows. Authentication user name: a user name used when the user logs on to the authentication server; service user name: a user name the user registers with another information system or SP service system, and the user can use this service user name and service user password to log on to a SP service system directly (in practice, the service user name is referred to as the user name registered with one of the SPs, for example, the user Zhang San has a user name of zhangsan@263.net with 263 service and a user name of 0401210003 with Unicorn Service of Uni-Video (Baoshitong)); SP: service provider; SP_ID: the identification of a service provider. 
     In the method according to the present embodiment. 
     According to one embodiment of a method of the present invention, first, the user needs to create a user account number (e.g., a user name and a password) in the authentication server so as to log on to the authentication server using this user account number later. Such an account number can be created before the computer is sold to the user and given to the user along with the computer. The account number can also be created when the user registers with the authentication server after he or she has purchased a computer. 
     Second, the user names which the user utilizes for respective information systems or SPs and corresponding SP_IDs need to be collected into the authentication server and stored. In reality, such information will be recoded in the authentication server if the user applies for other SP service: through a Lenovo system and the application is admitted. In other kinds of applications, the above information can also be built into the authentication server by the user or administer. 
     Third, the correspondence between the authentication user names and the service user names needs to be established for the collected information. The relationship can be a one-to-many relationship and depicted in data structure, that is, the user on the authentication server has one or more user names of other service systems. Such correspondence is established by the system when the user has become registered system user and other service user names of the user are added. 
       FIG. 4  is a sequence diagram for a user authentication process in the method for implementing unified authentication according to the present invention. Referring to  FIG. 4 , the user authentication process in the method for implementing unified authentication according to the present invention goes as follows. 
     1. The user utilizes his or her account number for the authentication server (authentication user name and password) to log on to the authentication server by means of a client, which can be a browser or an application. 
     2. The authentication server verifies the account number with which the user logs on and checks whether it coincides with that stored in the system. 
     3. After the check on the user authentication credential succeeds, the authentication server constructs a Session object for the user so as to conduct temporary storage. A Session object is a data container for holding data of key-value pair. A Session object is primarily used to save some information related to the user. Each Session object has an attribute of a SessionID, which is unique and can be generated randomly by the authentication system. Table 1 below shows an example of a Session object: 
     
       
         
               
               
               
             
           
               
                   
                 TABLE 1 
               
               
                   
                   
               
               
                   
                 Attribute name 
                 Attribute value 
               
               
                   
                   
               
             
             
               
                   
                 SessionID 
                 A59BA9A3EAE516F1F815E455D4CF324A 
               
               
                   
                 Key2 
                 Value2 
               
               
                   
                 Key3 
                 Value3 
               
               
                   
                 . . . 
                 . . . 
               
               
                   
                   
               
             
          
         
       
     
     As described above, a Session object is a data container for holding data of a key-value pair, such as a Hashtable, and is used to save some information related to the user. Each Session object has an attribute of a SessionID, which should be unique and thus can be distinguished from any other Session object. The attribute value of Session object can be generated randomly by the authentication system. As shown in above example, the SessionID is the attribute name, and A59BA9A3EAE516F1F815E455D4CF324A is the attribute value. A Session object can accommodate many key-value pairs, in which ‘value’ can be acquired via ‘key’. 
     4. The authentication server loads list information of the service user names of the user by using the correspondence between the authentication user names and the service user names, and stores the information in the Session object for the user. The Session object will be destroyed when the user logs out or when the user session expires. 
     5. The authentication server encrypts the user&#39;s SessionID with a symmetrical encryption algorithm (e.g., DES, 3DES, IDEA) and its key. A user token is generated after the encryption and issued to the client of the user. 
     6. The client of the user needs to buffer the returned user token after receiving it so that the user token can be used in logon authentication when the user accesses other information systems or SP services. 
     7. It should be noted that the client of the user has to maintain the session with the authentication server throughout the process of using the information systems or SP services by the user. Otherwise, if the session expires, the user token will be invalidated. 
     8. When the user accesses another application system or SP through the client, the client passes the user token to the SP as the credential for logon authentication. 
     9. The SP sends the user token of the user along with its SP_ID to the authentication server after receiving the logon request from the user. 
     10. The authentication server decrypts the user token with the key and algorithm used in the previous encryption after receiving the authentication request from the SP. 
     11. If the user token is legal, the authentication server will obtain a SessionID after the decryption and search the Session object established for the user with help of the SessionID. 
     12. The authentication server retrieves the service user name corresponding to the above SP_ID from the user&#39;s Session object stored in the memory. 
     13. The authentication server returns the service user name to the SP. 
     14. Having received the service user name, the SP believes the user is trusted and uses this user name to authorize the user for service usage. 
     15. When the user logs out of the authentication server, the authentication server destroys the user&#39;s Session and, at this moment, the user token becomes invalid. If the SP uses this invalid token in the authentication conducted on the authentication server, the latter cannot locate a Session object based on the token and thus returns authentication failure information to the SP. 
     Data structures used in the embodiment of the present invention are illustrated below. 
     
       
         
               
             
               
               
               
               
             
           
               
                 TABLE 2 
               
             
             
               
                   
               
               
                 Authentication user table 
               
             
          
           
               
                 Name 
                 Code 
                 Description 
                 Data type 
               
               
                   
               
               
                 Authentication 
                 ID 
                 Primary key in 
                 NUMBER (20) 
               
               
                 user ID 
                   
                 table, 
               
               
                   
                   
                 self-increment, 
               
               
                   
                   
                 positive integer, 
               
               
                   
                   
                 uniqueness in the 
               
               
                   
                   
                 system 
               
               
                 Authentication 
                 LoginName 
                 Authentication user 
                 VARCHAR2 (50) 
               
               
                 user name 
                   
                 name 
               
               
                 Authentication 
                 Password 
                 Authentication user 
                 VARCHAR2 (20) 
               
               
                 user password 
                   
                 password 
               
               
                   
               
             
          
         
       
     
     In Table 2, the authentication user ID is the primary key in the Authentication User Table and can be a self-incrementing positive integer. 
     The authentication user name is a user name which the user utilizes to log on to the authentication server. 
     The authentication user password is a password which the user utilizes to log on to the authentication server. 
     Table 3: Service User Table 
     
       
         
               
             
               
               
               
               
             
           
               
                 TABLE 3 
               
             
             
               
                   
               
               
                 Service user table 
               
             
          
           
               
                 Name 
                 Code 
                 Description 
                 Data type 
               
               
                   
               
               
                 Service user 
                 UserId 
                 Primary key in 
                 NUMBER (20) 
               
               
                 ID 
                   
                 table, 
               
               
                   
                   
                 self-increment, 
               
               
                   
                   
                 positive integer, 
               
               
                   
                   
                 uniqueness in the 
               
               
                   
                   
                 system 
               
               
                 Service user 
                 UserName 
                 Service user name 
                 VARCHAR2 (50) 
               
               
                 name 
               
               
                 Authentication 
                 ID 
                 Authentication user 
                 NUMBER (20) 
               
               
                 user ID 
                   
                 ID 
               
               
                 Service 
                 SP_ID 
                 Identification of 
                 NUMBER (20) 
               
               
                 provider ID 
                   
                 Service provider 
               
               
                   
               
             
          
         
       
     
     As shown in Table 3, the service user ID is the primary key in the Service User Table and can be a self-incrementing positive integer. 
     The service user name is a user name which the user utilizes to log on and use the service provided by a certain service provider. 
     The authentication user ID is an outer key in the table and used to authenticate the primary key. The Service provider ID is a unique identification of the service provider which provides the service for the user. 
     Although the present invention has been illustrated above with reference to the detailed embodiments, the present invention is not limited to the described embodiments and defined only by the appended claims. It will be understood that any modification and change made to the embodiments by those skilled in the art is within the scope and spirit of the present invention.