WO2016000462A1 - User information sharing method, device and system - Google Patents

User information sharing method, device and system Download PDF

Info

Publication number
WO2016000462A1
WO2016000462A1 PCT/CN2015/073656 CN2015073656W WO2016000462A1 WO 2016000462 A1 WO2016000462 A1 WO 2016000462A1 CN 2015073656 W CN2015073656 W CN 2015073656W WO 2016000462 A1 WO2016000462 A1 WO 2016000462A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
user information
server
user
credential
Prior art date
Application number
PCT/CN2015/073656
Other languages
French (fr)
Chinese (zh)
Inventor
岑小威
王晓晖
Original Assignee
深圳创维数字技术有限公司
深圳市创维软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳创维数字技术有限公司, 深圳市创维软件有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2016000462A1 publication Critical patent/WO2016000462A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data

Definitions

  • the present invention relates to the field of information communication, and in particular, to a method and system for sharing user information based on social television.
  • a user completes registration by inputting user information on a social application. After registration, the user inputs an account and a password to log in to the social application, and uses the user information to perform social activities, thereby realizing watching TV and The seamless connection of social activities enriches the entertainment life.
  • the existing social television technology requires the user to use the remote controller to input user information.
  • the user needs to repeat the same input multiple times, the efficiency is low, the user experience is poor, and the user is Before conducting social activities, you also need to use the remote control to enter the account and password to manually log in. The operation is cumbersome.
  • users need to download user information to the server every time they request user information. Requests for the same piece of user information by multiple social applications can result in repeated downloads, which greatly wastes network resources.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method, a device, and a system for sharing user information, which can share user information across terminals, and can enable the user to obtain the user information on the social TV side without inputting through a remote controller.
  • Social activities at the same time, get a user information from the server for sharing with multiple social applications, saving network resources.
  • Embodiments of the present invention provide a method for sharing user information, which includes three aspects. Rong.
  • One aspect is a user information sharing method on the first terminal side, including:
  • the first terminal receives the identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to the user information registered on the server; the identity credential and the user identifier in the user information are one by one correspond;
  • the first terminal automatically logs in to the server according to the identity credential, obtains user information corresponding to the identity credential from the server, and transmits the user information to a social application group preset by the first terminal. So that each social application in the social application group performs social activities according to the user information.
  • Another aspect is the user information sharing method on the second terminal side, including:
  • the second terminal receives the first input to register user information on the server, and the user information includes a user identifier
  • the second terminal sends the user credential to the first terminal.
  • the third aspect is the user information sharing method on the server side, including:
  • the server receives the user information registered by the second terminal, and stores the user information, where the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier;
  • the server generates an identity credential according to the user identifier in the user information according to a predetermined rule, and returns the identity credential to the second terminal; the identity credential is in one-to-one correspondence with the user identifier in the user information.
  • the embodiment of the invention provides a device for sharing user information, and the device includes three aspects of content.
  • One of the aspects is the first terminal, including:
  • a first communication module configured to receive an identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to user information registered on the server; the identity credential and the user information One-to-one correspondence of user IDs;
  • a second communication module configured to automatically log in to the server according to the identity credential, and obtain a user information sending module corresponding to the identity credential from the server;
  • a third communication module configured to transmit the user information to the social application group.
  • Another aspect is the second terminal, including:
  • An information registration module configured to receive a first input to register user information on a server, where the user information includes a user identifier;
  • a voucher receiving module configured to receive a user credential returned by the server, where the user credential is generated by the server according to a user identifier in the user information according to a predetermined rule; the identity credential and the user information One-to-one correspondence of user IDs;
  • a voucher sending module configured to send the user credential to the first terminal.
  • the third aspect is the server, including:
  • An information storage module configured to receive user information registered by the second terminal, and store the user information, where the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier;
  • a credential generating module configured to generate an identity credential according to a user identifier in the user information according to a predetermined rule, and return the credential credential to the second terminal; the identity credential and the user identifier in the user information are one by one correspond.
  • the embodiment of the present invention provides a system for sharing user information, and the system includes the first terminal, the second terminal, and the server, which are all described above, and details are not described herein again.
  • the first terminal may automatically log in to the server according to the identity certificate shared by the second terminal, and obtain the user information corresponding to the identity credential on the server, and directly push the user information to the social application group.
  • the multiple social applications can share the user information across the terminal, so that the user does not need to input the user information on multiple social applications in the social application group of the first terminal, thereby saving user operations and saving time and convenience.
  • a piece of user information obtained from the server can be shared by multiple social applications, saving network resources.
  • FIG. 1 is a flowchart of a method for sharing user information on a first terminal side according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for sharing user information on a second terminal side according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for sharing user information on a server side according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for sharing user information provided by another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a first terminal according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a second communication module of a first terminal according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a third communication module of a first terminal according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a receiving request module of a first terminal according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an information sending module of a first terminal according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a second terminal according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a first terminal according to another embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a second terminal according to another embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a server according to another embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of a system for sharing user information according to another embodiment of the present invention.
  • FIG. 1 is a method for sharing user information on a first terminal side according to an embodiment of the present invention.
  • the user information in the embodiment of the present invention may include user profile information and social relationship information, and may also be Includes other information directly related to the user's social activities; the data form of the user information may include text, pictures, audio or video.
  • the method can include:
  • Step S101 The first terminal receives the identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to the user information registered on the server.
  • the user credential is a user credential generated by the server according to the user identifier in the user information and returned to the second terminal when the second terminal registers the user information on the server; wherein the user identifier can be obtained from the user information, the identity
  • the credential corresponds to the user ID in the user information.
  • the first terminal and the second terminal are in the same short-range communication network, and before the first terminal receives the identity certificate sent by the second terminal, the first terminal receives the pairing request of the second terminal, prompts the pairing verification code, and pairs The verification code is used to prompt the user to input the pairing verification code on the second terminal to complete the pairing; after pairing, the step of receiving the identity certificate sent by the second terminal by the first terminal is performed.
  • the first terminal may randomly generate a pairing verification code by using a certain method, and the pairing verification code is used to prompt the user to input the paired verification with the random generation on the second terminal.
  • a code-consistent verification code the second terminal may receive a matching input of the user to the pairing verification code; the first terminal may receive the matching input sent by the second terminal, and if the matching input is consistent with the pairing verification code, the first terminal and the first terminal The second terminal is successfully paired, and the first terminal accepts the identity certificate sent by the second terminal.
  • the first terminal may display, by the display module, a verification code "1234" randomly composed of numbers, and prompt the user to input "1234" as a matching input through the keyboard at the second terminal.
  • the first terminal sends the randomly generated pairing verification code B to the second terminal by using a short message, and prompts the user to input the verification code B in the short message on the second terminal by using a short message.
  • the first terminal receives the identity certificate shared by the second terminal, and the identity information is used to obtain the user information corresponding to the identity certificate.
  • Step S103 The first terminal automatically logs in to the server according to the identity credential, and obtains user information corresponding to the identity credential from the server.
  • the first terminal automatically logs in to the server according to the identity credential, and the user information corresponding to the credential obtained from the server includes:
  • the first terminal automatically logs in to the server according to the identity credential through the preset service module; after that,
  • the first terminal acquires user information corresponding to the identity certificate from the server through the service module.
  • the method further includes: the service module performs authentication according to the identity credential through the server, and when the identity credential is recognized by the server, the authentication succeeds, and the first execution is performed.
  • the step of the terminal automatically logging in to the server based on the identity credentials.
  • the preset service module sends an authentication request to the server, where the authentication request includes the identity credential; afterwards, the server extracts the identity credential from the authentication request, and identifies the identity credential by comparing the identity credential and the user information database.
  • the server finds a match of the identity credential in the user information database, the authentication succeeds, and the preset service module can automatically log in to the server.
  • the user information database may include: a correspondence of user identification-user information-identity credentials. Table 1 gives an example of the user information database, which may be different in actual use and should not be construed as limiting.
  • the server traverses the user information database to find the user information corresponding to the identity certificate, and returns the user information corresponding to the identity certificate to the preset service module of the first terminal.
  • the first terminal may obtain the user information A corresponding to the identity certificate U1 from the user information database through the preset service module, and return the user information A corresponding to the identity certificate U1 to the first A preset service module of a terminal.
  • the examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
  • Step S105 The first terminal transmits the user information corresponding to the identity certificate to the social application group preset by the first terminal, so that each social application in the preset social application group performs social activities according to the user information.
  • the transmitting the user information to the social application group preset by the first terminal includes:
  • the preset service module directly transmits the user information to the preset social application according to the received request. group.
  • the preset service module can be used as a coordinator of the preset social application group and the server exchange data.
  • the social application in the preset social application group can only obtain the identity certificate corresponding to the preset service module.
  • User Info A two-way data channel is established between the preset service module and the preset social application group: the two-way data channel transmits a request in a preset social application group to a preset service module direction; the two-way data channel is in advance
  • the service module is sent to the preset social application group to transmit user information.
  • the two-way data channel when there is only one social application in the preset social application group, can adopt a peer-to-peer data transmission mechanism; when there are more than two social applications in the preset social application group, the two-way data channel can be broadcasted. Data transfer mechanism.
  • the social application in the preset social application group may initiate a request to the preset service module by using an active request, and transmit the request to the preset service module through the bidirectional data channel; the preset service module may request the request. Performing an analysis, obtaining user information corresponding to the request from the server, and directly transmitting the corresponding user information to the social application that initiated the request in the preset social application group.
  • the request includes a request source, and the request source is used to represent the social application that sends the request in the preset social application group.
  • the preset service module directly transmits the user information to the preset social application group according to the received request, including:
  • the preset service module transmits the user information to the social application corresponding to the request source;
  • the preset service module transmits the user information to the N social applications characterized by the N request sources by broadcasting; N is a natural number greater than or equal to 2.
  • the preset service module can determine the request source in the request as the target social application by analyzing the request. When there is only one request source in the request, the preset service module determines that one request source is the target social application, and sends the user information to the one request source through the bidirectional data channel in a peer-to-peer manner; correspondingly, when the request is in the request. When there are more than two request sources, the preset service module determines that the two or more request sources are target social applications, and may send the user information corresponding to the identity credential to the two or more through the bidirectional data channel by using a broadcast manner.
  • Request source For example, at time T1, the social application group G initiates a request R to the preset service module to obtain the user information corresponding to the identity certificate.
  • the request source included in the request R is only the social application A, and the preset service module determines the social application A.
  • the user information corresponding to the user credential is sent to the social application A.
  • Another example is at time T2,
  • the application group G initiates a request R to the preset service module to obtain the user information corresponding to the identity certificate.
  • the three request sources included in the request R are the social application A1, the social application A2, and the social application A3, and the preset service module determines
  • the social application A1, the social application A2, and the social application A3 are all target social applications, and the user information corresponding to the user credentials is sent to the social application A1, the social application A2, and the social application A3 in a broadcast manner.
  • the examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
  • the first terminal receives, by using a preset service module, a request for acquiring user information initiated by a preset social application group, including:
  • the first terminal receives, by using a preset service module, a request for acquiring the user information directly initiated by the social application in the preset social application group according to the identity certificate; the request includes the identity certificate; or
  • the first terminal sends a sharing notification to the social application in the preset social application group by using the preset service module, and receives a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification.
  • the preset service module receives a request for acquiring the user information that is directly initiated by the social application in the preset social application group according to the identity certificate, that is, the preset social application group can actively request the social application group to advance the request.
  • the service module is set to request the user information corresponding to the identity certificate; the request includes the identity certificate.
  • the social application can monitor the user operation. When the user action triggers the social activity and needs to obtain the user information corresponding to the identity certificate, the social application can directly request the user information corresponding to the identity certificate from the preset service module according to the identity certificate. .
  • the social application A1 monitors the user operation of “refreshing the buddy list of the user U1”, and the social application A1 generates the request R1 according to the identity vouch U1 of the user U1, and directly sends the request R1 to the preset service module, the request.
  • the identity document U1 is included in R1.
  • the social application A2 monitors the user operation of “requesting the personal homepage of the user U2”, and the social application A2 generates the request R2 according to the identity voucher U2 of the user U2, and directly sends the request R2 to the preset service module.
  • the request R2 contains the identity certificate U2.
  • the preset service module sends a sharing notification to the social application in the preset social application group, and receives a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification, that is, The social application in the preset social application group can be passively responded to the preset
  • the service module initiates a request to obtain user information corresponding to the identity certificate.
  • the response includes a response source that can be used to characterize a social application in the preset social application group that responds to the shared notification.
  • the preset service module may notify, in a broadcast manner, that all the social applications in the preset social application group have shareable user information, and the shareable user information, that is, the identity credential corresponds to User information; when the preset service module receives the response of the preset social application group to the notification, the response source in the response may be analyzed, and the user information corresponding to the identity certificate is sent to the social application represented by the response source.
  • FIG. 2 is a method for sharing user information on a second terminal side according to an embodiment of the present invention.
  • the user information may include user profile information and social relationship information, and may also include other direct users.
  • Information directly related to social activities; the data form of user information may include text, pictures, audio or video.
  • the method can include:
  • Step S201 The second terminal receives the first input to register user information on the server, and the user information includes a user identifier.
  • the first input may be used to register user information on the input device of the second terminal; the user identifier may be a user account in the user information.
  • the second terminal may receive the first input by using a preset social application navigation module, and the preset social application navigation module of the second terminal may provide the user information input for the social application in the preset social application group of the first terminal Features.
  • the second terminal sends the user information to the server through the preset social application navigation module to complete the registration.
  • Step S203 The second terminal receives the user credential returned by the server, and the user credential is generated by the server according to the user identifier in the user information according to a predetermined rule.
  • the second terminal logs in to the server, and the second terminal can receive the identity certificate corresponding to the user information from the server.
  • the identity credential may be obtained by processing the user identifier in the user information according to a predetermined algorithm by the server.
  • the server generates a 16-bit credential for the user account “Jack” in the user information according to the MD5 algorithm, and the credential is a string. "06d15373954d8b27".
  • the examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
  • Step S205 The second terminal sends the user credential to the first terminal.
  • the second terminal sends a pairing request to the first terminal, and receives a second input consistent with the pairing verification code according to the pairing verification code prompted by the first terminal to complete the pairing.
  • the step of sending the user credential to the first terminal by the second terminal is performed.
  • the first terminal may randomly generate a pairing verification code by using a certain method, and the pairing verification code is used to prompt the user to input the paired verification with the random generation on the second terminal.
  • a code-consistent verification code the second terminal may receive a matching input of the user to the pairing verification code; the second terminal may send the matching input to the first terminal, and if the matching input is consistent with the pairing verification code, the first terminal and the second terminal The terminal is successfully paired, and the first terminal accepts the identity certificate sent by the second terminal.
  • the second terminal scans the currently scheduled short-range communication network, and receives the third input to establish a short-range communication connection with the first terminal, where the first terminal is in the short-range communication network. Then, the step of transmitting the pairing request by the second terminal to the first terminal is performed.
  • the third input can be used to select the first terminal in the short-range communication network.
  • the short-range communication network may be in the form of a network supported by the Digital Living Network Alliance DLNA.
  • the user information may include user profile information and social relationship information, and may also include other social activities directly related to the user.
  • Directly related information; the data form of the user information may include text, pictures, audio or video.
  • the method can include:
  • Step S301 The server receives the user information registered by the second terminal, and stores the user information.
  • the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier.
  • the server may receive the user information when the second terminal registers the user information, and may store the user identifier and the user identifier in the user information in the user information database in step S103, and the user information database may be as shown in Table 1 in step S103. .
  • Step S303 The server generates the identity certificate according to the user identifier in the user information according to a predetermined rule.
  • the identity credential may be obtained by processing, by the server, the user identifier in the user information according to a predetermined algorithm.
  • the server generates a 16-bit identity credential for the user account “Jack” in the user information according to the MD5 algorithm, and the identity credential is The string "06d15373954d8b27".
  • the examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
  • Step S305 The server returns the identity certificate to the second terminal.
  • the method may further include: the server sending the user information corresponding to the identity certificate to the first terminal that automatically logs in to the server. After returning the identity certificate to the second terminal, the server sends the user information corresponding to the identity certificate to the automatic login to the server.
  • the method further includes: the server receives the identity credential sent by the first terminal, and performs authentication according to the identity credential; when the server identifies the identity credential, the authentication succeeds, and the execution server sends the user information corresponding to the credential to the automatic The step to log in to the first terminal of the server.
  • the server receives the authentication request sent by the first terminal, where the authentication request includes the identity credential; afterwards, the server may extract the identity credential from the authentication request, and may identify the identity credential by comparing the identity credential and the user information database.
  • the server finds a match of the identity credential in the user information database, the authentication succeeds, and the preset service module can automatically log in to the server.
  • the user information database may include: a correspondence of user identification-user information-identity credentials.
  • An example of the user information database is given in Table 1 of step S103. Actual use may vary and should not be construed as limiting.
  • the server traverses the user information database to find the user information corresponding to the identity certificate, and returns the user information corresponding to the identity certificate to the first terminal.
  • the server finds the user information A corresponding to the identity certificate U1 from the user information database, and returns the user information A to the first terminal.
  • the user information may include user profile information and social relationship information, and may also include other information directly related to the user's social activities; the data form of the user information may include text, pictures, audio or video.
  • the method can include:
  • Step S401 The second terminal registers user information on the server.
  • the second terminal may receive the first input to register the user information on the server, where the user information includes the user identifier.
  • the first input can be used to register user information on the input device of the second terminal; the user identifier can be a user account in the user information.
  • the second terminal may receive the first input by using a preset social application navigation module, and the preset social application navigation module of the second terminal may provide the user information input for the social application in the preset social application group of the first terminal Features.
  • the second terminal may send the user information to the server through the preset social application navigation module to complete the registration.
  • Step S403 The server generates an identity certificate according to the user information.
  • the server may generate the identity credential according to the user identifier in the user information according to a predetermined rule.
  • the identity certificate may be used by the server to perform user identification in the user information according to a predetermined algorithm.
  • the processing obtains, for example, the server generates a 16-bit identity credential for the user account "Jack" in the user information according to the MD5 algorithm, and the identity credential is the character string "06d15373954d8b27".
  • the examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
  • Step S405 The server returns the identity certificate to the second terminal.
  • the server may send the identity credential to the second terminal after the second terminal logs in to the server; the second terminal may temporarily store the identity credential, where the identity credential is used for sharing to the first terminal.
  • Step S407 The second terminal requests pairing with the first terminal.
  • the second terminal may send a pairing request to the first terminal, and may receive the second input that is consistent with the pairing verification code according to the pairing verification code prompted by the first terminal. After the pairing is completed, after pairing, the step of sending the user credential to the first terminal by the second terminal is performed.
  • Step S409 The first terminal determines whether the pairing is successful.
  • the first terminal may randomly generate a pairing verification code by using a certain method, and the pairing verification code is used to prompt the user to input the paired verification with the random generation on the second terminal.
  • the code is consistent with the verification code; the second terminal can receive the matching input of the user to the pairing verification code; the first terminal receives the matching input sent by the second terminal, and determines whether the matching input is consistent with the pairing verification code, if the matching input and the matching If the verification code is consistent, the first terminal determines that the second terminal is successfully paired with the second terminal, and the step S411 is performed; otherwise, the step S421 is performed.
  • the step S407 may be performed, that is, the second terminal may re-initiate the pairing request to the first terminal. There are no restrictions here.
  • Step S411 The second terminal sends the identity certificate to the service module preset by the first terminal.
  • the preset service module can be used as a preset social application group and a coordinator of the above-mentioned server exchange data, and the social application in the preset social application group can only obtain the identity certificate by communicating with the preset service module. Corresponding user information.
  • the second terminal may share the identity certificate to the first terminal, send the identity certificate to the preset service module, and temporarily store the identity certificate in the preset service module.
  • Step S413 The service module preset by the first terminal receives the request for acquiring the user information of the social application group preset by the first terminal.
  • the preset service module can be used as a coordinator of the preset social application group and the server exchange data, and the social application in the preset social application group can only need to communicate with the preset service module. Obtain the user information corresponding to the identity certificate.
  • the preset service module may receive a request initiated by the preset social application group for acquiring user information, including:
  • the preset service module receives a request for acquiring user information directly initiated by the social application in the preset social application group according to the identity certificate; the request includes the identity certificate; or
  • the preset service module sends a sharing notification to the social application in the preset social application group, and receives a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification.
  • the preset service module may receive a request for acquiring the user information directly initiated by the social application in the preset social application group according to the identity credential, that is, the manner in which the social application group in the preset social application group can actively request.
  • the preset service module initiates a request to obtain user information corresponding to the identity certificate; the request includes the identity certificate.
  • the social application can monitor the user operation. When the user action triggers the social activity and needs to obtain the user information corresponding to the identity certificate, the social application can directly request the user information corresponding to the identity certificate from the preset service module according to the identity certificate. .
  • the preset service module may further send a sharing notification to the social application in the preset social application group, and receive a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification. That is, the social application in the preset social application group can initiate a request to the preset service module to obtain the user information corresponding to the identity certificate in a passive response manner.
  • the response includes a response source that can be used to characterize a social application in the preset social application group that responds to the shared notification.
  • the preset service module receives the identity credential from the second terminal, the preset service module can notify all social applications in the preset social application group that the shared service information has shareable user information, and the shareable user information is the identity.
  • the user information corresponding to the voucher when the preset service module receives the response of the preset social application group to the notification, the response source in the response may be analyzed, and the user information corresponding to the identity voucher is sent to the socialized by the response source application.
  • Step S415 The server determines whether the authentication of the first terminal is successful.
  • the server may receive the authentication request sent by the first terminal, where the authentication request includes the identity credential; afterwards, the server may extract the identity credential from the authentication request, and identify the identity credential by comparing the identity credential and the user information database.
  • the server finds the matching item of the identity certificate in the user information database, it may determine that the authentication is successful, and step S417 is performed; otherwise, step S421 is performed.
  • step S415 can be re-executed, that is, the server can respond to the authentication request of the first terminal again, which is not limited herein.
  • Step S417 The service module preset by the first terminal automatically logs in to the server; and obtains user information corresponding to the identity certificate from the server.
  • the preset service module can be used as a coordinator of the preset social application group and the server exchange data, and the social application in the preset social application group can only obtain the identity certificate corresponding to the preset service module. User information.
  • the preset service module can automatically log in to the server. After the automatic login succeeds, the preset service module obtains the user information corresponding to the identity credential by sending the identity credential, and the receiving server obtains the user information corresponding to the identity credential after traversing the user information database to match the identity credential.
  • Step S419 The service module preset by the first terminal transmits the user information corresponding to the identity certificate to the social application group preset by the first terminal.
  • the preset service module can be used as a coordinator of the preset social application group and the server exchange data, and the social application in the preset social application group can only obtain the identity certificate corresponding to the preset service module. User information.
  • the social application in the preset social application group may initiate a request to the preset service module by using an active request, and transmit the request to the preset service module through the bidirectional data channel; the preset service module may request the request. Performing an analysis, obtaining user information corresponding to the request from the server, and directly transmitting the corresponding user information to the social application that initiated the request in the preset social application group.
  • the request includes a request source, and the request source is used to represent the social application that sends the request in the preset social application group.
  • the preset service module directly transmits the user information to the preset social application group according to the received request, including:
  • the preset service module transmits the user information to the social application corresponding to the request source;
  • the preset service module transmits the user information to N social applications characterized by the N request sources by broadcasting; N is a natural number greater than or equal to 2.
  • the preset service module can determine the request source in the request as the target social application by analyzing the request. When there is only one request source in the request, the preset service module determines that the one request source is the target social
  • the application may send the user information to the one request source in a point-to-point manner; correspondingly, when there are more than two request sources in the request, the preset service module determines that the two or more request sources are target social applications, and The user information corresponding to the identity certificate is sent to the two or more request sources in a broadcast manner.
  • Step S421 End the current process.
  • a first terminal 50 may include at least a preset social application group 59, a first communication module 51, a second communication module 53, and a third communication module 55, where:
  • a preset social application group 59 for social activities is provided.
  • the first communication module 51 is configured to receive the identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to the user information registered on the server; the identity credential is in one-to-one correspondence with the user identifier in the user information.
  • the identity credential is generated by the server according to a predetermined rule according to the user identifier in the user information.
  • the user information may include user profile information and social relationship information, and may also include other information directly related to the user's social activities; the data form of the user information may include text, pictures, audio or video.
  • the first terminal may further include: a pairing module 57, configured to receive a pairing request of the second terminal, prompting pairing verification, before the step of the first communication module 51 performing the receiving the identity credential sent by the second terminal.
  • the code, the pairing verification code is used to prompt the user to input the pairing verification code on the second terminal to complete the pairing; after the pairing, the first communication mode 51 block performs the step of receiving the identity certificate sent by the second terminal.
  • the second communication module 53 is configured to automatically log in to the server according to the identity certificate, and obtain a user information sending module corresponding to the identity certificate from the server.
  • the second communication module 53 may further include an authentication module 531, an automatic login module 535, and an information acquisition module 537, as shown in FIG. 6, wherein:
  • the automatic login module 535 is configured to automatically log in to the server according to the identity certificate by using a preset service module.
  • the authentication module 531 is configured to perform authentication on the server according to the identity credential by using the preset service module.
  • the authentication succeeds, and the automatic login module 535 is triggered to execute the automatic verification according to the identity credential through the preset service module. The steps to log in to the server.
  • the information obtaining module 537 is configured to obtain user information corresponding to the identity certificate from the server by using a preset service module.
  • the preset service module may serve as a preset social application group 59 and a coordinator of the server exchange data.
  • the social application in the preset social application group 59 may only need to communicate with a preset service module. Obtain the user information corresponding to the identity certificate.
  • the authentication module 531 sends an authentication request to the server, where the authentication request includes the identity credential; afterwards, the server extracts the identity credential from the authentication request, and identifies the identity credential by comparing the identity credential and the user information database. The server finds a match of the identity credential in the user information database, and the authentication module 531 determines that the authentication is successful, and the automatic login module 535 can automatically log in to the server.
  • the user information database may include: a correspondence of user identification-user information-identity credentials.
  • the server traverses the user information database to find the user information corresponding to the identity certificate, and the information obtaining module 537 obtains the user information corresponding to the identity certificate.
  • the third communication module 55 is configured to transmit user information to the preset social application group 59.
  • the third communication module 55 may further include: a receiving request module 551 and an information sending module 553, as shown in FIG. 7, wherein:
  • the receiving request module 551 is configured to receive, by using a preset service module, a request for acquiring user information initiated by the social application group 59.
  • the receiving request module 551 may further include: a first receiving module 5511 and a second receiving module 5513, as shown in FIG.
  • the first receiving module 5511 is configured to receive, by using a preset service module, a request for acquiring user information directly initiated by the social application in the preset social application group 59 according to the identity credential; the request includes the identity credential.
  • the second receiving module 5513 is configured to send, by using a preset service module, a sharing notification to the social application in the preset social application group 59, and receive that the social in the preset social application group 59 should be initiated by responding to the sharing notification. A request to obtain user information.
  • the first receiving module 5511 receives the request of the social application in the preset social application group 59 to obtain the user information, that is, the social application group in the preset social application group can initiate a request to the first receiving module 5511 in a manner requested by the social application group.
  • the social application can monitor the user operation. When the user action triggers the social activity and needs to obtain the user information corresponding to the identity certificate, the social application can directly request the user information corresponding to the identity certificate from the preset service module according to the identity certificate. .
  • the preset service module sends a sharing notification to the social application in the preset social application group 59, and the second receiving module 5513 receives the social application initiated by the social application group 59 in response to the sharing notification.
  • the request for obtaining the user information that is, the social application in the preset social application group 59 can initiate a request to the preset service module to obtain the user information corresponding to the identity certificate.
  • the response includes a response source that can be used to characterize a social application in the preset social application group 59 that is responsive to the shared notification.
  • the preset service module can notify all the social applications in the preset social application group 59 that the shared social information has shareable information, and the shareable user information, that is, the identity credential Corresponding user information; when the second receiving module 5513 receives the response of the preset social application group to the notification, the response source in the response may be analyzed, and the user information corresponding to the identity certificate is sent to the social application represented by the response source.
  • the information sending module 553 is configured to directly transmit the user information to the preset social application group 59 through the preset service module.
  • the information sending module 553 may further include:
  • the first sending module 5531 is configured to transmit user information to the social application corresponding to the request source by using a preset service module when there is only one request source in the request.
  • the second sending module 5533 is configured to: when the request has N request sources, use the preset service module to broadcast the user information to the N social applications characterized by the N request sources; N is greater than or equal to 2 Natural number.
  • the request includes a request source, and the request source is used to represent the social application that requests the preset social application group.
  • the preset service module can determine the request source in the request as the target social application by analyzing the request. When there is only one request source in the request, the preset service module determines that the one request source is the target social application, and the first sending module 5531 may send the user information to the one request source in a point-to-point manner; correspondingly, when there are more than two request sources in the request, the default service module determines The two or more request sources are the target social application, and the second sending module 5533 may send the user information corresponding to the identity credential to the two or more request sources in a broadcast manner.
  • a second terminal 60 may include at least an information registration module 61, a credential receiving module 63, and a credential sending module 65, where:
  • the information registration module 61 is configured to receive the first input to register user information on the server, where the user information includes a user identifier.
  • the first input is used to register user information on the second terminal.
  • the credential receiving module 63 is configured to receive the user credential returned by the server, where the user credential is generated by the server according to a predetermined identifier according to the user identifier in the user information; the credential credential corresponds to the user identifier in the user information.
  • the credential sending module 65 is configured to send the user credential to the first terminal.
  • the second terminal 60 shown in FIG. 10 may further include: a pairing module 67 and a connection establishing module 69, wherein:
  • the pairing module 67 is configured to send a pairing request to the first terminal before the step of sending the user credential to the first terminal by the credential sending module 65, and receive a second matching with the pairing verification code according to the pairing verification code prompted by the first terminal.
  • the input is completed to complete the pairing, and after pairing, the credential sending module 65 performs the step of transmitting the user credential to the first terminal.
  • the second input is used to input a pairing verification code prompted by the first terminal on the second terminal.
  • the second terminal scans the currently scheduled short-range communication network, and receives the third input to establish a short-range communication connection with the first terminal, first The terminal is in a short-range communication network, after which the pairing module 67 performs the step of transmitting a pairing request to the first terminal.
  • the third input is used to select a first terminal in a short-range communication network to establish a connection.
  • a server 70 may include at least an information storage module 71 and a credential generation module 73, where:
  • the information storage module 71 is configured to receive user information registered by the second terminal, and store user information, where the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier.
  • the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier.
  • the server may receive user information when the second terminal registers user information, and may The user identifier in the information and user information is stored in the information storage module 71, and the information storage module 71 can be the user information database shown in Table 1 in step S103.
  • the credential generating module 73 is configured to generate an identity credential according to the user identifier in the user information according to a predetermined rule, and return the credential credential to the second terminal; the credential credential corresponds to the user identifier in the user information.
  • the credential generating module 73 may process the user credential in the user information according to a predetermined algorithm to obtain the identity credential. For example, the credential generating module 73 generates the user account “Jack” in the user information according to the MD5 algorithm.
  • the identity certificate of the bit, the identity certificate is the string "06d15373954d8b27".
  • the server 70 shown in FIG. 11 may further include: an information sending module 77 and an authentication module 75, wherein:
  • the information sending module 77 is configured to send the user information corresponding to the identity credential to the first terminal that automatically logs in to the server after the credential generating module 73 performs the step of returning the credential to the second terminal.
  • the authentication module 75 is configured to: after the step of executing the returning the identity certificate to the second terminal by the credential generating module 73, the information sending module 77 performs the step of sending the user information corresponding to the identity credential to the first terminal automatically logging in to the server, The identity credential sent by the first terminal is authenticated. When the identity credential is identified, the authentication succeeds, and the trigger information sending module 77 performs the step of sending the user information corresponding to the credential to the first terminal that automatically logs in to the server.
  • FIG. 12 is a schematic structural diagram of a first terminal according to another embodiment of the present invention.
  • the first terminal 120 may include: at least one processor 1201, such as a CPU, at least two network interfaces: a first network interface 1204 and a second network interface 1207, a user interface 1203, a memory 1205, at least A communication bus 1202 and a display screen 1206.
  • the communication bus 1202 is used to implement connection communication between these components.
  • the user interface 1203 may include a remote controller, and the optional user interface 1203 may further include a standard wired interface and a wireless interface.
  • the first network interface 1204 and the second network interface 1207 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1205 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 1205 can optionally also be at least one storage device located remotely from the aforementioned processor 1201.
  • Figure 12 As shown, the memory 1205 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a user information sharing program.
  • the first network interface 1204 is mainly used to connect to a server, and performs data communication with the server;
  • the first network interface 1207 is mainly used to connect to the second terminal and perform data communication with the second terminal;
  • the processor 1201 can be used to call the information display processing program stored in the memory 1205 and perform the following operations:
  • the identity credential is an identity credential obtained by the second terminal according to the user information registered on the server; the identity credential is in one-to-one correspondence with the user identifier in the user information;
  • the user credential used by the processor 1201 to obtain the user information is generated by the server according to the user identifier in the user information when the second terminal registers the user information on the server.
  • the processor 1201 may receive a pairing request of the second terminal, and prompt the pairing verification code, where the pairing verification code is used to prompt the user to input the pairing verification code on the second terminal. To complete the pairing.
  • the processor 1201 performs the foregoing step of automatically logging in to the server according to the identity credential, and the specific step of obtaining the user information corresponding to the credential from the server may include:
  • the processor 1201 automatically logs in to the server according to the identity certificate by using a preset service module; after that,
  • the processor 1201 obtains user information corresponding to the identity certificate from the server through a preset service module.
  • the processor 1201 may further include:
  • the processor 1201 logs in to the server according to the identity credential through the preset service module for authentication.
  • the authentication succeeds, and the processor 1201 performs the step of automatically logging in to the server according to the identity credential.
  • the specific step of the processor 1201 performing the foregoing transmitting the user information to the social application group preset by the first terminal may include:
  • the processor 1201 receives, by using a preset service module, a request initiated by the preset social application group for acquiring user information;
  • the processor 1201 directly transmits the user information to the preset social application group according to the received request by using a preset service module.
  • the processor 1201 establishes a bidirectional data channel between the preset service module and the preset social application group:
  • the two-way data channel transmits the above request in the direction of the preset social application group to the preset service module;
  • the two-way data channel transmits user information in a direction from a preset service module to a preset social application group.
  • the request includes a request source, and the request source is used to represent the social application that requests the request in the preset social application group.
  • the specific step of the processor 1201 performing the foregoing directly transmitting the user information to the social application group according to the received request by using the preset service module may include:
  • the processor 1201 transmits the user information to the social application corresponding to the request source through the preset service module; or
  • the processor 1201 broadcasts the user information to the N social applications characterized by the N request sources through a preset service module; N is a natural number greater than or equal to 2.
  • the specific step of the processor 1201 executing the foregoing request for acquiring the user information initiated by the preset social application group by using the preset service module may include:
  • the processor 1201 receives, by using a preset service module, a request for acquiring user information directly initiated by the social application in the preset social application group according to the identity certificate; the request includes the identity certificate; or
  • the processor 1201 sends a sharing notification to the social application in the preset social application group by using the preset service module, and receives a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification.
  • FIG. 13 is a schematic structural diagram of a second terminal according to another embodiment of the present invention.
  • the second terminal 130 may include: at least one processor 1301, such as a CPU, at least two network interfaces: a first network interface 1304 and a second network interface 1307, a user interface 1303, a memory 1305, at least A communication bus 1302 and a display 1306.
  • the communication bus 1302 is used to implement connection communication between these components.
  • the user interface 1303 can include Including a touch screen (Touch Screen), the optional user interface 1303 may also include a standard wired interface, a wireless interface.
  • the first network interface 1304 and the second network interface 1307 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1305 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 1305 can also optionally be at least one storage device located remotely from the aforementioned processor 1301. As shown in FIG. 13, an operating system, a network communication module, a user interface module, and a user information sharing program may be included in the memory 1305 as a computer storage medium.
  • the first network interface 1304 is mainly used to connect to the server, and performs data communication with the server;
  • the second network interface 1307 is mainly used to connect to the first terminal and perform data communication with the first terminal;
  • the processor 1301 can be used to call the information display processing program stored in the memory 1305 and perform the following operations:
  • the processor 1301 receives the first input to register user information on the server, and the user information includes a user identifier;
  • the processor 1301 receives the user credential returned by the server, and the user credential is generated by the server according to the user identifier in the user information according to a predetermined rule; the identity credential has a one-to-one correspondence with the user identifier in the user information;
  • the processor 1301 sends the user credential to the first terminal.
  • the method further includes:
  • the processor 1301 sends a pairing request to the first terminal, and receives a second input that is consistent with the pairing verification code according to the pairing verification code prompted by the first terminal to complete the pairing. After pairing, the step of transmitting the user credential to the first terminal is performed.
  • the method further includes:
  • the processor 1301 scans the currently scheduled short-range communication network, receives the third input to establish a short-range communication connection with the first terminal, and the first terminal is in the short-range communication network, and then performs the step of the second terminal transmitting a pairing request to the first terminal.
  • FIG. 14 is a schematic structural diagram of a server according to another embodiment of the present invention.
  • the second terminal 140 may include: at least one processor 1401, for example The CPU, at least two network interfaces: a first network interface 1404 and a second network interface 1403, a memory 1405 and at least one communication bus 1402.
  • the communication bus 1402 is used to implement connection communication between these components.
  • the first network interface 1404 and the second network interface 1407 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1405 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 1405 can optionally also be at least one storage device located remotely from the aforementioned processor 1401.
  • an operating system, a network communication module, and a user information sharing program may be included in the memory 1405 as a computer storage medium.
  • the first network interface 1404 is mainly used to connect to the first terminal, and performs data communication with the first terminal.
  • the second network interface 1403 is mainly used to connect the second terminal with the second terminal. Data communication is performed; and the processor 1401 can be used to call the information display processing program stored in the memory 1405 and perform the following operations:
  • the processor 1401 receives the user information registered by the second terminal, and stores the user information, where the user information is user information obtained by the second terminal by receiving the input; the user information includes the user identifier;
  • the processor 1401 generates an identity credential according to the user identifier in the user information according to a predetermined rule, and returns the identity credential to the second terminal; the identity credential is in one-to-one correspondence with the user identifier in the user information.
  • the user information corresponding to the identity certificate is sent to the first terminal that automatically logs in to the server.
  • the processor 1401 after performing the step of returning the identity credential to the second terminal, before performing the step of sending the user information corresponding to the identity credential to the first terminal that automatically logs in to the server, may further include:
  • the processor 1401 receives the identity credential sent by the first terminal, and performs authentication according to the identity credential;
  • the processor 1401 identifies the identity credential, and determines that the authentication is successful, and performs the step of transmitting the user information corresponding to the identity credential to the first terminal that automatically logs in to the server.
  • a system 150 for sharing user information includes: a first terminal 1503, a second terminal 1501, and a server 1505, wherein
  • the first terminal 1503 may include a preset service module and a preset social application group, and the social application group may include a first social application, a second social application, a third social application, and the like, and the first terminal 1503 may be the foregoing figure. 5 to the first terminal 50 in any one of the embodiments of FIG. 9, the optional first terminal 1503 may also be the first terminal 120 in the foregoing embodiment shown in FIG. 12; each functional module in the first terminal 1503 may be For reference to the description of the first terminal 50 or the first terminal 120 in the foregoing embodiment, details are not described herein again.
  • the second terminal 1501 may be the second terminal 60 in the embodiment shown in FIG. 10, and the second terminal 1501 may be the second terminal 130 in the foregoing embodiment shown in FIG. 13;
  • the description of the second terminal 60 or the second terminal 130 in the foregoing embodiment is omitted.
  • the server 1505 may be the server 70 in the foregoing embodiment of the present invention.
  • the server 1505 may also be the server 140 in the embodiment shown in FIG. 14.
  • the function modules in the second terminal 1505 may refer to the server in the foregoing embodiment. The description of 70 or server 140 will not be repeated here.
  • the first terminal can automatically log in to the server according to the identity credential shared by the second terminal, and obtain the user information corresponding to the identity credential on the server, and can directly push the user information to the social application group.
  • the plurality of social applications can share the user information across the terminal, so that the user does not need to input the user information on multiple social applications in the social application group of the first terminal, thereby saving user operations and saving time and convenience.
  • a user information obtained from the server can be shared by multiple social applications, thereby saving network resources.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed in an embodiment of the present invention are a user information sharing method, device and system, comprising: a first terminal receives an identity credential transmitted by a second terminal, the identity credential being obtained by the second terminal according to the user information registered on a server, the identity credential being in one to one correspondence with the user identification in the user information; the first terminal automatically logs in to the server according to the identity credential and obtains from the server the user information corresponding to the identity credential; the first terminal transmits the user information to a social application group preset by the first terminal to enable the social applications in the social application group to conduct social activities according to the user information. The present invention enables cross-terminal sharing of user information and allows users to obtain the user information at a social television side and conduct social activities without any input through a remote control; in addition, one piece of user information obtained from the server can be shared by multiple social applications, thus saving network resources.

Description

一种用户信息共享的方法、设备及系统Method, device and system for sharing user information
本申请要求于2014年07月02日提交中国专利局、申请号为201410312927.9,发明名称为“一种用户信息共享的方法、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201410312927.9, filed on July 2, 2014, entitled "A Method, Apparatus and System for User Information Sharing", the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明涉及信息通信领域,尤其涉及一种基于社交电视的用户信息共享的方法及系统。The present invention relates to the field of information communication, and in particular, to a method and system for sharing user information based on social television.
背景技术Background technique
目前,社交电视上的社交应用越来越多,让身处不同地方的用户通过社交电视上的社交应用来共享和讨论他们所观看的节目,进行交流。At present, there are more and more social applications on social TV, allowing users in different places to share and discuss the programs they watch through social applications on social TV.
现有的社交电视技术中,用户通过在社交应用上输入用户信息来完成注册,注册之后,用户输入账号和密码来登陆所述社交应用,利用所述用户信息进行社交活动,实现了观看电视和社交活动的无缝连接,丰富了娱乐生活。In the existing social television technology, a user completes registration by inputting user information on a social application. After registration, the user inputs an account and a password to log in to the social application, and uses the user information to perform social activities, thereby realizing watching TV and The seamless connection of social activities enriches the entertainment life.
但是,现有的社交电视技术需要用户利用遥控器来输入用户信息,对于不同的社交应用上的同一个用户信息则需要用户多次重复同样的输入,效率低下,用户体验不佳;而且用户在进行社交活动之前,也需要先利用遥控器输入账号和密码来进行手动登陆,操作繁琐;另外,由于社交电视的存储空间有限,用户每次请求用户信息的操作都需要向服务器端下载用户信息,多个社交应用对同一份用户信息的请求就会导致重复下载,极大地浪费了网络资源。However, the existing social television technology requires the user to use the remote controller to input user information. For the same user information on different social applications, the user needs to repeat the same input multiple times, the efficiency is low, the user experience is poor, and the user is Before conducting social activities, you also need to use the remote control to enter the account and password to manually log in. The operation is cumbersome. In addition, due to the limited storage space of social TV, users need to download user information to the server every time they request user information. Requests for the same piece of user information by multiple social applications can result in repeated downloads, which greatly wastes network resources.
发明内容Summary of the invention
本发明实施例所要解决的技术问题是提供一种用户信息共享的方法、设备及系统,可以跨终端共享用户信息,可使得用户在社交电视侧不用通过遥控器输入即可获取所述用户信息,进行社交活动,同时,从服务器获取一份用户信息可供多个社交应用共享,节约网络资源。The technical problem to be solved by the embodiments of the present invention is to provide a method, a device, and a system for sharing user information, which can share user information across terminals, and can enable the user to obtain the user information on the social TV side without inputting through a remote controller. Social activities, at the same time, get a user information from the server for sharing with multiple social applications, saving network resources.
为解决上述问题,本发明的技术方案为:In order to solve the above problems, the technical solution of the present invention is:
本发明实施例提供了一种用户信息共享的方法,该方法包括三个方面的内 容。其中一个方面为第一终端侧的用户信息共享方法,包括:Embodiments of the present invention provide a method for sharing user information, which includes three aspects. Rong. One aspect is a user information sharing method on the first terminal side, including:
第一终端接收第二终端发送的身份凭证,所述身份凭证为所述第二终端根据在服务器上注册的用户信息得到的身份凭证;所述身份凭证与所述用户信息中的用户标识一一对应;The first terminal receives the identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to the user information registered on the server; the identity credential and the user identifier in the user information are one by one correspond;
所述第一终端根据所述身份凭证自动登录到服务器,从所述服务器上获取所述身份凭证对应的用户信息;并将所述用户信息传送至所述第一终端预设的社交应用群,以使所述社交应用群中的各个社交应用根据所述用户信息进行社交活动。The first terminal automatically logs in to the server according to the identity credential, obtains user information corresponding to the identity credential from the server, and transmits the user information to a social application group preset by the first terminal. So that each social application in the social application group performs social activities according to the user information.
其中另一个方面为第二终端侧的用户信息共享方法,包括:Another aspect is the user information sharing method on the second terminal side, including:
第二终端接收第一输入来在服务器上注册用户信息,所述用户信息包括用户标识;The second terminal receives the first input to register user information on the server, and the user information includes a user identifier;
所述第二终端接收所述服务器返回的用户凭证,所述用户凭证是由所述服务器按预定的规则根据所述用户信息中的所述用户标识生成的;所述身份凭证与所述用户信息中的用户标识一一对应;Receiving, by the second terminal, a user credential returned by the server, where the user credential is generated by the server according to the user identifier in the user information according to a predetermined rule; the identity credential and the user information One-to-one correspondence of user IDs;
所述第二终端发送所述用户凭证至第一终端。The second terminal sends the user credential to the first terminal.
其中第三个方面为服务器侧的用户信息共享方法,包括:The third aspect is the user information sharing method on the server side, including:
服务器接收第二终端注册的用户信息,存储所述用户信息,所述用户信息为所述第二终端通过接收输入来获取的用户信息;所述用户信息包括用户标识;The server receives the user information registered by the second terminal, and stores the user information, where the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier;
所述服务器按预定的规则根据所述用户信息中的用户标识生成身份凭证,返回所述身份凭证至所述第二终端;所述身份凭证与所述用户信息中的用户标识一一对应。And the server generates an identity credential according to the user identifier in the user information according to a predetermined rule, and returns the identity credential to the second terminal; the identity credential is in one-to-one correspondence with the user identifier in the user information.
本发明实施例提供了一种用户信息共享的设备,该设备包括三个方面的内容。其中一个方面为第一终端,包括:The embodiment of the invention provides a device for sharing user information, and the device includes three aspects of content. One of the aspects is the first terminal, including:
预设的社交应用群,用于进行社交活动;a preset social application group for social activities;
第一通信模块,用于接收第二终端发送的身份凭证,所述身份凭证为所述第二终端根据在服务器上注册的用户信息得到的身份凭证;所述身份凭证与所述用户信息中的用户标识一一对应;a first communication module, configured to receive an identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to user information registered on the server; the identity credential and the user information One-to-one correspondence of user IDs;
第二通信模块,用于根据所述身份凭证自动登录到服务器,从所述服务器上获取所述身份凭证对应的用户信息发送模块; a second communication module, configured to automatically log in to the server according to the identity credential, and obtain a user information sending module corresponding to the identity credential from the server;
第三通信模块,用于将所述用户信息传送至所述社交应用群。And a third communication module, configured to transmit the user information to the social application group.
其中另一个方面为第二终端,包括:Another aspect is the second terminal, including:
信息注册模块,用于接收第一输入来在服务器上注册用户信息,所述用户信息包括用户标识;An information registration module, configured to receive a first input to register user information on a server, where the user information includes a user identifier;
凭证接收模块,用于接收所述服务器返回的用户凭证,所述用户凭证为所述服务器按预定的规则根据所述用户信息中的用户标识来产生的;所述身份凭证与所述用户信息中的用户标识一一对应;a voucher receiving module, configured to receive a user credential returned by the server, where the user credential is generated by the server according to a user identifier in the user information according to a predetermined rule; the identity credential and the user information One-to-one correspondence of user IDs;
凭证发送模块,用于发送所述用户凭证至所述第一终端。And a voucher sending module, configured to send the user credential to the first terminal.
其中第三个方面为服务器,包括:The third aspect is the server, including:
信息存储模块,用于接收第二终端注册的用户信息,存储所述用户信息,所述用户信息为所述第二终端通过接收输入来获取的用户信息;所述用户信息包括用户标识;An information storage module, configured to receive user information registered by the second terminal, and store the user information, where the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier;
凭证生成模块,用于按预定的规则根据所述用户信息中的用户标识生成身份凭证,返回所述身份凭证至所述第二终端;所述身份凭证与所述用户信息中的用户标识一一对应。a credential generating module, configured to generate an identity credential according to a user identifier in the user information according to a predetermined rule, and return the credential credential to the second terminal; the identity credential and the user identifier in the user information are one by one correspond.
本发明实施例提供了一种用户信息共享的系统,该系统包括如上所有内容所述的第一终端、第二终端和服务器,这里不再赘述。The embodiment of the present invention provides a system for sharing user information, and the system includes the first terminal, the second terminal, and the server, which are all described above, and details are not described herein again.
通过实施本发明实施例,第一终端可根据第二终端共享的身份凭证自动登录服务器,并在服务器上获取所述身份凭证对应的用户信息,可直接将所述用户信息推送给社交应用群中的多个社交应用,可以实现跨终端共享用户信息,可使得用户不需要在第一终端的所述社交应用群中的多个社交应用上输入所述用户信息,节省用户操作,省时便捷,同时,可使得从服务器获取的一份用户信息供多个社交应用共享,节约网络资源。By implementing the embodiment of the present invention, the first terminal may automatically log in to the server according to the identity certificate shared by the second terminal, and obtain the user information corresponding to the identity credential on the server, and directly push the user information to the social application group. The multiple social applications can share the user information across the terminal, so that the user does not need to input the user information on multiple social applications in the social application group of the first terminal, thereby saving user operations and saving time and convenience. At the same time, a piece of user information obtained from the server can be shared by multiple social applications, saving network resources.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本发明的一种实施例提供的第一终端侧的用户信息共享的方法的流程图;1 is a flowchart of a method for sharing user information on a first terminal side according to an embodiment of the present invention;
图2是本发明的一种实施例提供的第二终端侧的用户信息共享的方法的流程图;2 is a flowchart of a method for sharing user information on a second terminal side according to an embodiment of the present invention;
图3是本发明的一种实施例提供的服务器侧的用户信息共享的方法的流程图;3 is a flowchart of a method for sharing user information on a server side according to an embodiment of the present invention;
图4是本发明的另一种实施例提供的用户信息共享的方法的流程图;4 is a flowchart of a method for sharing user information provided by another embodiment of the present invention;
图5是本发明的一种实施例提供的第一终端的结构示意图;FIG. 5 is a schematic structural diagram of a first terminal according to an embodiment of the present invention;
图6是本发明的一种实施例提供的第一终端的第二通信模块结构示意图;6 is a schematic structural diagram of a second communication module of a first terminal according to an embodiment of the present invention;
图7是本发明的一种实施例提供的第一终端的第三通信模块结构示意图;7 is a schematic structural diagram of a third communication module of a first terminal according to an embodiment of the present invention;
图8是本发明的一种实施例提供的第一终端的接收请求模块结构示意图;FIG. 8 is a schematic structural diagram of a receiving request module of a first terminal according to an embodiment of the present invention; FIG.
图9是本发明的一种实施例提供的第一终端的信息发送模块结构示意图;FIG. 9 is a schematic structural diagram of an information sending module of a first terminal according to an embodiment of the present invention;
图10是本发明的一种实施例提供的第二终端的结构示意图;FIG. 10 is a schematic structural diagram of a second terminal according to an embodiment of the present invention;
图11是本发明的一种实施例提供的服务器的结构示意图;11 is a schematic structural diagram of a server according to an embodiment of the present invention;
图12是本发明的另一种实施例提供的第一终端的结构示意图;FIG. 12 is a schematic structural diagram of a first terminal according to another embodiment of the present invention; FIG.
图13是本发明的另一种实施例提供的第二终端的结构示意图;FIG. 13 is a schematic structural diagram of a second terminal according to another embodiment of the present invention; FIG.
图14是本发明的另一种实施例提供的服务器的结构示意图;FIG. 14 is a schematic structural diagram of a server according to another embodiment of the present invention; FIG.
图15是本发明的另一种实施例提供的用户信息共享的系统的结构示意图。FIG. 15 is a schematic structural diagram of a system for sharing user information according to another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。 It is to be understood that the terminology used in the embodiments of the present invention is for the purpose of describing the particular embodiments, and is not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
参见图1,是本发明的一种实施例提供的第一终端侧的用户信息共享的方法,需要说明的是本发明实施例中的用户信息可包括用户个人档案信息和社交关系信息,亦可包括其他直接与用户的社交活动直接相关的信息;用户信息的数据形式可包括文本、图片、音频或视频。该方法可以包括:FIG. 1 is a method for sharing user information on a first terminal side according to an embodiment of the present invention. It should be noted that the user information in the embodiment of the present invention may include user profile information and social relationship information, and may also be Includes other information directly related to the user's social activities; the data form of the user information may include text, pictures, audio or video. The method can include:
步骤S101:第一终端接收第二终端发送的身份凭证,身份凭证为第二终端根据在服务器上注册的用户信息得到的身份凭证。Step S101: The first terminal receives the identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to the user information registered on the server.
具体的,用户凭证是第二终端在服务器上注册用户信息时,由服务器根据用户信息中的用户标识来生成并向第二终端返回的用户凭证;其中,用户标识可以从用户信息中获取,身份凭证与用户信息中的用户标识一一对应。Specifically, the user credential is a user credential generated by the server according to the user identifier in the user information and returned to the second terminal when the second terminal registers the user information on the server; wherein the user identifier can be obtained from the user information, the identity The credential corresponds to the user ID in the user information.
具体的,第一终端与第二终端处在同一个短程通信网络中,在第一终端接收第二终端发送的身份凭证之前,第一终端接收第二终端的配对请求,提示配对验证码,配对验证码用于提示用户在第二终端上输入配对验证码来完成配对;配对之后,执行第一终端接收第二终端发送的身份凭证的步骤。Specifically, the first terminal and the second terminal are in the same short-range communication network, and before the first terminal receives the identity certificate sent by the second terminal, the first terminal receives the pairing request of the second terminal, prompts the pairing verification code, and pairs The verification code is used to prompt the user to input the pairing verification code on the second terminal to complete the pairing; after pairing, the step of receiving the identity certificate sent by the second terminal by the first terminal is performed.
具体的,当第一终端接收第二终端的配对请求时,第一终端可通过一定方式随机产生出配对验证码,配对验证码用于提示用户在第二终端上输入跟该随机产生的配对验证码一致的验证码;第二终端可接收用户对配对验证码的匹配输入;第一终端可接收第二终端发送的该匹配输入,如果该匹配输入与配对验证码一致,则第一终端与第二终端配对成功,第一终端接受第二终端发送的身份凭证。例如,第一终端可以通过显示模块来显示由数字随机组成一个验证码“1234”,提示用户在第二终端通过键盘输入“1234”作为匹配输入。又例如,第一终端将随机产生的配对验证码B通过短信的方式发送给第二终端,以短信的方式提示用户在第二终端上输入短信中的验证码B。Specifically, when the first terminal receives the pairing request of the second terminal, the first terminal may randomly generate a pairing verification code by using a certain method, and the pairing verification code is used to prompt the user to input the paired verification with the random generation on the second terminal. a code-consistent verification code; the second terminal may receive a matching input of the user to the pairing verification code; the first terminal may receive the matching input sent by the second terminal, and if the matching input is consistent with the pairing verification code, the first terminal and the first terminal The second terminal is successfully paired, and the first terminal accepts the identity certificate sent by the second terminal. For example, the first terminal may display, by the display module, a verification code "1234" randomly composed of numbers, and prompt the user to input "1234" as a matching input through the keyboard at the second terminal. For another example, the first terminal sends the randomly generated pairing verification code B to the second terminal by using a short message, and prompts the user to input the verification code B in the short message on the second terminal by using a short message.
上述配对成功之后,第一终端接收第二终端共享的身份凭证,可利用身份凭证获取身份凭证对应的用户信息。After the pairing is successful, the first terminal receives the identity certificate shared by the second terminal, and the identity information is used to obtain the user information corresponding to the identity certificate.
步骤S103:第一终端根据身份凭证自动登录到服务器,从服务器上获取身份凭证对应的用户信息。Step S103: The first terminal automatically logs in to the server according to the identity credential, and obtains user information corresponding to the identity credential from the server.
具体的,所述第一终端根据身份凭证自动登录到服务器,从服务器上获取身份凭证对应的用户信息包括:Specifically, the first terminal automatically logs in to the server according to the identity credential, and the user information corresponding to the credential obtained from the server includes:
第一终端通过预设的服务模块根据身份凭证自动登录到服务器;之后, The first terminal automatically logs in to the server according to the identity credential through the preset service module; after that,
第一终端通过服务模块从服务器获取身份凭证对应的用户信息。The first terminal acquires user information corresponding to the identity certificate from the server through the service module.
其中,在第一终端通过预设的服务模块根据身份凭证自动登录到服务器之前,还包括:服务模块根据身份凭证通过服务器进行鉴权,当身份凭证被服务器识别,则鉴权成功,执行第一终端根据身份凭证自动登录到服务器的步骤。Before the first terminal automatically logs in to the server according to the identity credential through the preset service module, the method further includes: the service module performs authentication according to the identity credential through the server, and when the identity credential is recognized by the server, the authentication succeeds, and the first execution is performed. The step of the terminal automatically logging in to the server based on the identity credentials.
具体的,预设的服务模块向服务器发出鉴权请求,该鉴权请求中包含身份凭证;之后,服务器从鉴权请求中提取出身份凭证,通过比较身份凭证和用户信息数据库来识别身份凭证,当服务器在用户信息数据库中找到身份凭证的匹配项,则鉴权成功,预设的服务模块可自动登录服务器。用户信息数据库可包括:用户标识-用户信息-身份凭证的对应关系。表1给出了用户信息数据库一个示例,实际使用可以不同,不应构成限定。Specifically, the preset service module sends an authentication request to the server, where the authentication request includes the identity credential; afterwards, the server extracts the identity credential from the authentication request, and identifies the identity credential by comparing the identity credential and the user information database. When the server finds a match of the identity credential in the user information database, the authentication succeeds, and the preset service module can automatically log in to the server. The user information database may include: a correspondence of user identification-user information-identity credentials. Table 1 gives an example of the user information database, which may be different in actual use and should not be construed as limiting.
用户标识User ID 用户信息User Info 身份凭证Identity certificate
用户U1User U1 信息AInformation A 身份凭证U1Identity voucher U1
用户U2User U2 信息BInformation B 身份凭证U2Identity voucher U2
用户U3User U3 信息CInformation C 身份凭证U3Identity voucher U3
表1Table 1
自动登录成功之后,服务器遍历用户信息数据库寻找与身份凭证对应的用户信息,将身份凭证对应的用户信息返回给第一终端的预设的服务模块。例如,在表1所示的用户信息数据库中,第一终端可以通过预设的服务模块从用户信息数据库中获取身份凭证U1对应的用户信息A,将身份凭证U1对应的用户信息A返回给第一终端的预设的服务模块。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。After the automatic login is successful, the server traverses the user information database to find the user information corresponding to the identity certificate, and returns the user information corresponding to the identity certificate to the preset service module of the first terminal. For example, in the user information database shown in Table 1, the first terminal may obtain the user information A corresponding to the identity certificate U1 from the user information database through the preset service module, and return the user information A corresponding to the identity certificate U1 to the first A preset service module of a terminal. The examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
步骤S105:第一终端将身份凭证对应的用户信息传送至第一终端预设的社交应用群,以使预设的社交应用群中的各个社交应用根据用户信息进行社交活动。Step S105: The first terminal transmits the user information corresponding to the identity certificate to the social application group preset by the first terminal, so that each social application in the preset social application group performs social activities according to the user information.
具体的,所述将用户信息传送至第一终端预设的社交应用群包括:Specifically, the transmitting the user information to the social application group preset by the first terminal includes:
第一终端通过预设的服务模块接收预设的社交应用群发起的用于获取用户信息的请求;Receiving, by the preset service module, a request initiated by the preset social application group for acquiring user information;
预设的服务模块根据接收的请求直接将用户信息传送至预设的社交应用 群。The preset service module directly transmits the user information to the preset social application according to the received request. group.
其中,预设的服务模块可作为预设的社交应用群和服务器交换数据的协调者,预设的社交应用群中的社交应用可以只需要和预设的服务模块通信就能获取身份凭证对应的用户信息。预设的服务模块与预设的社交应用群之间建立有双向数据通道:该双向数据通道在预设的社交应用群至预设的服务模块方向上传送的是请求;该双向数据通道在预设的服务模块至预设的社交应用群方向上传送的是用户信息。其中,当预设的社交应用群中仅有一个社交应用时,双向数据通道可以采用点对点的数据传输机制;当预设的社交应用群中有两个以上社交应用时,双向数据通道可以采用广播的数据传输机制。The preset service module can be used as a coordinator of the preset social application group and the server exchange data. The social application in the preset social application group can only obtain the identity certificate corresponding to the preset service module. User Info. A two-way data channel is established between the preset service module and the preset social application group: the two-way data channel transmits a request in a preset social application group to a preset service module direction; the two-way data channel is in advance The service module is sent to the preset social application group to transmit user information. Wherein, when there is only one social application in the preset social application group, the two-way data channel can adopt a peer-to-peer data transmission mechanism; when there are more than two social applications in the preset social application group, the two-way data channel can be broadcasted. Data transfer mechanism.
具体的,预设的社交应用群中的社交应用可以通过主动请求的方式向预设的服务模块发起请求,将请求通过双向数据通道传送至预设的服务模块;预设的服务模块可对请求进行分析,从服务器上获取与请求对应的用户信息,将请求对应的用户信息直接传送至预设的社交应用群中发起请求的社交应用。Specifically, the social application in the preset social application group may initiate a request to the preset service module by using an active request, and transmit the request to the preset service module through the bidirectional data channel; the preset service module may request the request. Performing an analysis, obtaining user information corresponding to the request from the server, and directly transmitting the corresponding user information to the social application that initiated the request in the preset social application group.
具体的,请求包含请求源,请求源用以表征预设的社交应用群中发出请求的社交应用,预设的服务模块根据接收的请求直接将用户信息传送至预设的社交应用群,包括:Specifically, the request includes a request source, and the request source is used to represent the social application that sends the request in the preset social application group. The preset service module directly transmits the user information to the preset social application group according to the received request, including:
当请求中仅有一个请求源时,预设的服务模块将用户信息传送至该请求源对应的社交应用;或When there is only one request source in the request, the preset service module transmits the user information to the social application corresponding to the request source; or
当请求中有N个请求源时,预设的服务模块通过广播方式将用户信息传送至所述N个请求源表征的N个社交应用;N为大于等于2的自然数。When there are N request sources in the request, the preset service module transmits the user information to the N social applications characterized by the N request sources by broadcasting; N is a natural number greater than or equal to 2.
预设的服务模块可通过分析请求,判定请求中的请求源为目标社交应用。当请求中仅有一个请求源时,预设的服务模块判定一个请求源为目标社交应用,可采用点对点的方式通过上述双向数据通道发送用户信息至所述一个请求源;相应的,当请求中有两个以上请求源时,预设的服务模块判定所述两个以上请求源为目标社交应用,可以采用广播的方式通过上述双向数据通道将身份凭证对应的用户信息发送至所述两个以上请求源。例如,在时刻T1,社交应用群G向预设的服务模块发起请求R来获取身份凭证对应的用户信息,该请求R包含的请求源仅为社交应用A,预设的服务模块判定社交应用A为目标社交应用,发送用户凭证对应的用户信息至社交应用A。又例如,在时刻T2,社 交应用群G向预设的服务模块发起请求R来获取身份凭证对应的用户信息,该请求R包含的三个请求源为社交应用A1、社交应用A2和社交应用A3,预设的服务模块判定社交应用A1、社交应用A2和社交应用A3均为目标社交应用,采用广播的方式将用户凭证对应的用户信息发送至社交应用A1、社交应用A2和社交应用A3。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。The preset service module can determine the request source in the request as the target social application by analyzing the request. When there is only one request source in the request, the preset service module determines that one request source is the target social application, and sends the user information to the one request source through the bidirectional data channel in a peer-to-peer manner; correspondingly, when the request is in the request When there are more than two request sources, the preset service module determines that the two or more request sources are target social applications, and may send the user information corresponding to the identity credential to the two or more through the bidirectional data channel by using a broadcast manner. Request source. For example, at time T1, the social application group G initiates a request R to the preset service module to obtain the user information corresponding to the identity certificate. The request source included in the request R is only the social application A, and the preset service module determines the social application A. For the target social application, the user information corresponding to the user credential is sent to the social application A. Another example is at time T2, The application group G initiates a request R to the preset service module to obtain the user information corresponding to the identity certificate. The three request sources included in the request R are the social application A1, the social application A2, and the social application A3, and the preset service module determines The social application A1, the social application A2, and the social application A3 are all target social applications, and the user information corresponding to the user credentials is sent to the social application A1, the social application A2, and the social application A3 in a broadcast manner. The examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
具体的,所述第一终端通过预设的服务模块接收预设的社交应用群发起的用于获取用户信息的请求,包括:Specifically, the first terminal receives, by using a preset service module, a request for acquiring user information initiated by a preset social application group, including:
第一终端通过预设的服务模块接收预设的社交应用群中的社交应用根据身份凭证直接发起的用于获取用户信息的请求;请求中包含身份凭证;或The first terminal receives, by using a preset service module, a request for acquiring the user information directly initiated by the social application in the preset social application group according to the identity certificate; the request includes the identity certificate; or
第一终端通过预设的服务模块向预设的社交应用群中的社交应用发送共享通知,接收预设的社交应用群中的社交应用通过响应共享通知而发起的用于获取用户信息的请求。The first terminal sends a sharing notification to the social application in the preset social application group by using the preset service module, and receives a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification.
具体的,预设的服务模块接收预设的社交应用群中的社交应用根据身份凭证直接发起的用于获取用户信息的请求,即预设的社交应用群中社交应用可以主动请求的方式向预设的服务模块发起请求来获取身份凭证对应的用户信息;该请求中包含身份凭证。社交应用可监测用户操作,当用户操作触发的社交活动需要获取身份凭证对应的用户信息时,社交应用可以根据身份凭证通过主动请求的方式直接向预设的服务模块请求获取身份凭证对应的用户信息。例如,在T1时刻,社交应用A1监测到“刷新用户U1的好友列表”的用户操作,社交应用A1根据用户U1的身份凭证U1生成请求R1,直接发送请求R1至预设的服务模块,该请求R1中包含身份凭证U1。又例如,在T2时刻,社交应用A2监测到“请求用户U2的个人主页”的用户操作,社交应用A2根据用户U2的身份凭证U2生成请求R2,直接发送请求R2至预设的服务模块,该请求R2中包含身份凭证U2。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the preset service module receives a request for acquiring the user information that is directly initiated by the social application in the preset social application group according to the identity certificate, that is, the preset social application group can actively request the social application group to advance the request. The service module is set to request the user information corresponding to the identity certificate; the request includes the identity certificate. The social application can monitor the user operation. When the user action triggers the social activity and needs to obtain the user information corresponding to the identity certificate, the social application can directly request the user information corresponding to the identity certificate from the preset service module according to the identity certificate. . For example, at time T1, the social application A1 monitors the user operation of “refreshing the buddy list of the user U1”, and the social application A1 generates the request R1 according to the identity vouch U1 of the user U1, and directly sends the request R1 to the preset service module, the request. The identity document U1 is included in R1. For another example, at time T2, the social application A2 monitors the user operation of “requesting the personal homepage of the user U2”, and the social application A2 generates the request R2 according to the identity voucher U2 of the user U2, and directly sends the request R2 to the preset service module. The request R2 contains the identity certificate U2. The examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
具体的,预设的服务模块向预设的社交应用群中的社交应用发送共享通知,接收预设的社交应用群中的社交应用通过响应共享通知而发起的用于获取用户信息的请求,即预设的社交应用群中社交应用可以被动响应的方式向预设的 服务模块发起请求来获取身份凭证对应的用户信息。响应中包括响应源,可用于表征预设的社交应用群中对共享通知做出响应的社交应用。当第一终端从第二终端接收身份凭证时,预设的服务模块可以广播的方式通知预设的社交应用群中的所有社交应用有可共享的用户信息,可共享的用户信息即身份凭证对应的用户信息;当预设的服务模块接收到预设的社交应用群对该通知的响应,可分析该响应中的响应源,将身份凭证对应的用户信息发送至该响应源表征的社交应用。Specifically, the preset service module sends a sharing notification to the social application in the preset social application group, and receives a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification, that is, The social application in the preset social application group can be passively responded to the preset The service module initiates a request to obtain user information corresponding to the identity certificate. The response includes a response source that can be used to characterize a social application in the preset social application group that responds to the shared notification. When the first terminal receives the identity credential from the second terminal, the preset service module may notify, in a broadcast manner, that all the social applications in the preset social application group have shareable user information, and the shareable user information, that is, the identity credential corresponds to User information; when the preset service module receives the response of the preset social application group to the notification, the response source in the response may be analyzed, and the user information corresponding to the identity certificate is sent to the social application represented by the response source.
参见图2,是本发明的一种实施例提供的第二终端侧的用户信息共享的方法,需要说明的是用户信息可包括用户个人档案信息和社交关系信息,亦可包括其他直接与用户的社交活动直接相关的信息;用户信息的数据形式可包括文本、图片、音频或视频。该方法可以包括:FIG. 2 is a method for sharing user information on a second terminal side according to an embodiment of the present invention. It should be noted that the user information may include user profile information and social relationship information, and may also include other direct users. Information directly related to social activities; the data form of user information may include text, pictures, audio or video. The method can include:
步骤S201:第二终端接收第一输入来在服务器上注册用户信息,用户信息包括用户标识。Step S201: The second terminal receives the first input to register user information on the server, and the user information includes a user identifier.
具体的,第一输入可用于在第二终端的输入设备上注册用户信息;用户标识可为用户信息中的用户账号。第二终端可通过预设的社交应用导航模块来接收第一输入,第二终端的预设的社交应用导航模块可以为第一终端的预设的社交应用群中的社交应用提供用户信息的录入功能。第二终端通过预设的社交应用导航模块发送用户信息至服务器,完成注册。Specifically, the first input may be used to register user information on the input device of the second terminal; the user identifier may be a user account in the user information. The second terminal may receive the first input by using a preset social application navigation module, and the preset social application navigation module of the second terminal may provide the user information input for the social application in the preset social application group of the first terminal Features. The second terminal sends the user information to the server through the preset social application navigation module to complete the registration.
步骤S203:第二终端接收服务器返回的用户凭证,用户凭证是由服务器按预定的规则根据用户信息中的用户标识生成的。Step S203: The second terminal receives the user credential returned by the server, and the user credential is generated by the server according to the user identifier in the user information according to a predetermined rule.
具体的,第二终端登陆服务器,第二终端可从服务器接收上述用户信息对应的身份凭证。身份凭证可为服务器按预定的算法对用户信息中的用户标识进行处理获得的,例如,服务器根据MD5算法对用户信息中的用户账号“Jack”生成16位的身份凭证,该身份凭证为字符串“06d15373954d8b27”。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the second terminal logs in to the server, and the second terminal can receive the identity certificate corresponding to the user information from the server. The identity credential may be obtained by processing the user identifier in the user information according to a predetermined algorithm by the server. For example, the server generates a 16-bit credential for the user account “Jack” in the user information according to the MD5 algorithm, and the credential is a string. "06d15373954d8b27". The examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
步骤S205:第二终端发送用户凭证至第一终端。Step S205: The second terminal sends the user credential to the first terminal.
具体的,在第二终端发送用户凭证至第一终端之前,第二终端向第一终端发送配对请求,根据第一终端提示的配对验证码,接收与配对验证码一致的第二输入来完成配对,配对之后,执行第二终端发送用户凭证至第一终端的步骤。 Specifically, before the second terminal sends the user credential to the first terminal, the second terminal sends a pairing request to the first terminal, and receives a second input consistent with the pairing verification code according to the pairing verification code prompted by the first terminal to complete the pairing. After pairing, the step of sending the user credential to the first terminal by the second terminal is performed.
具体的,当第二终端向第一终端发送配对请求时,第一终端可通过一定方式随机产生出配对验证码,配对验证码用于提示用户在第二终端上输入跟该随机产生的配对验证码一致的验证码;第二终端可接收用户对配对验证码的匹配输入;第二终端可发送该匹配输入至第一终端,如果该匹配输入与配对验证码一致,则第一终端与第二终端配对成功,第一终端接受第二终端发送的身份凭证。Specifically, when the second terminal sends a pairing request to the first terminal, the first terminal may randomly generate a pairing verification code by using a certain method, and the pairing verification code is used to prompt the user to input the paired verification with the random generation on the second terminal. a code-consistent verification code; the second terminal may receive a matching input of the user to the pairing verification code; the second terminal may send the matching input to the first terminal, and if the matching input is consistent with the pairing verification code, the first terminal and the second terminal The terminal is successfully paired, and the first terminal accepts the identity certificate sent by the second terminal.
具体的,在第二终端向第一终端发送配对请求之前,第二终端扫描当前预定的短程通信网络,接收第三输入来与第一终端建立短程通信连接,第一终端在该短程通信网络中,之后,执行第二终端向第一终端发送配对请求的步骤。Specifically, before the second terminal sends the pairing request to the first terminal, the second terminal scans the currently scheduled short-range communication network, and receives the third input to establish a short-range communication connection with the first terminal, where the first terminal is in the short-range communication network. Then, the step of transmitting the pairing request by the second terminal to the first terminal is performed.
具体的,第三输入可用于在上述短程通信网络中选择第一终端。该短程通信网络可为数字生活网络联盟DLNA中支持的网络形式。Specifically, the third input can be used to select the first terminal in the short-range communication network. The short-range communication network may be in the form of a network supported by the Digital Living Network Alliance DLNA.
参见图3,是本发明的一种实施例提供的服务器侧的用户信息共享的方法,需要说明的是用户信息可包括用户个人档案信息和社交关系信息,亦可包括其他直接与用户的社交活动直接相关的信息;用户信息的数据形式可包括文本、图片、音频或视频。该方法可以包括:Referring to FIG. 3, it is a method for sharing user information on the server side according to an embodiment of the present invention. It should be noted that the user information may include user profile information and social relationship information, and may also include other social activities directly related to the user. Directly related information; the data form of the user information may include text, pictures, audio or video. The method can include:
步骤S301:服务器接收第二终端注册的用户信息,存储用户信息。Step S301: The server receives the user information registered by the second terminal, and stores the user information.
具体的,用户信息为第二终端通过接收输入来获取的用户信息;用户信息包括用户标识。服务器可在第二终端注册用户信息时接收用户信息,可将用户信息和用户信息中的用户标识存储在步骤S103中的用户信息数据库中,该用户信息数据库可如步骤S103中的表1所示。Specifically, the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier. The server may receive the user information when the second terminal registers the user information, and may store the user identifier and the user identifier in the user information in the user information database in step S103, and the user information database may be as shown in Table 1 in step S103. .
步骤S303:服务器按预定的规则根据用户信息中的用户标识生成身份凭证。Step S303: The server generates the identity certificate according to the user identifier in the user information according to a predetermined rule.
具体的,身份凭证可为服务器按预定的算法对用户信息中的用户标识进行处理获得的,例如,服务器根据MD5算法对用户信息中的用户账号“Jack”生成16位的身份凭证,身份凭证为字符串“06d15373954d8b27”。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the identity credential may be obtained by processing, by the server, the user identifier in the user information according to a predetermined algorithm. For example, the server generates a 16-bit identity credential for the user account “Jack” in the user information according to the MD5 algorithm, and the identity credential is The string "06d15373954d8b27". The examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
步骤S305:服务器返回身份凭证至第二终端。Step S305: The server returns the identity certificate to the second terminal.
具体的,服务器返回身份凭证至第二终端之后,还可包括:服务器将身份凭证对应的用户信息发送至自动登录到服务器的第一终端。在返回身份凭证至第二终端之后,服务器将身份凭证对应的用户信息发送至自动登录到服务器的 第一终端之前,还包括:服务器接收第一终端发送的身份凭证,并根据身份凭证进行鉴权;当服务器识别出身份凭证,则鉴权成功,执行服务器将身份凭证对应的用户信息发送至自动登录到服务器的第一终端的步骤。Specifically, after the server returns the identity certificate to the second terminal, the method may further include: the server sending the user information corresponding to the identity certificate to the first terminal that automatically logs in to the server. After returning the identity certificate to the second terminal, the server sends the user information corresponding to the identity certificate to the automatic login to the server. Before the first terminal, the method further includes: the server receives the identity credential sent by the first terminal, and performs authentication according to the identity credential; when the server identifies the identity credential, the authentication succeeds, and the execution server sends the user information corresponding to the credential to the automatic The step to log in to the first terminal of the server.
具体的,服务器接收第一终端发送的鉴权请求,该鉴权请求中包含身份凭证;之后,服务器可从鉴权请求中提取出身份凭证,可通过比较身份凭证和用户信息数据库来识别身份凭证,当服务器在用户信息数据库中找到身份凭证的匹配项,则鉴权成功,预设的服务模块可自动登录服务器。用户信息数据库可包括:用户标识-用户信息-身份凭证的对应关系。步骤S103表1给出了用户信息数据库一个示例。实际使用可以不同,不应构成限定。Specifically, the server receives the authentication request sent by the first terminal, where the authentication request includes the identity credential; afterwards, the server may extract the identity credential from the authentication request, and may identify the identity credential by comparing the identity credential and the user information database. When the server finds a match of the identity credential in the user information database, the authentication succeeds, and the preset service module can automatically log in to the server. The user information database may include: a correspondence of user identification-user information-identity credentials. An example of the user information database is given in Table 1 of step S103. Actual use may vary and should not be construed as limiting.
自动登录成功之后,服务器遍历用户信息数据库寻找与身份凭证对应的用户信息,将身份凭证对应的用户信息返回给第一终端。例如,在步骤S103中的表1所示的用户信息数据库中,服务器从用户信息数据库中找到身份凭证U1对应的用户信息A,将用户信息A返回给第一终端。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。After the automatic login succeeds, the server traverses the user information database to find the user information corresponding to the identity certificate, and returns the user information corresponding to the identity certificate to the first terminal. For example, in the user information database shown in Table 1 in step S103, the server finds the user information A corresponding to the identity certificate U1 from the user information database, and returns the user information A to the first terminal. The examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
参见图4,是发明的另一种实施例提供的用户信息共享的方法。需要说明的是用户信息可包括用户个人档案信息和社交关系信息,亦可包括其他直接与用户的社交活动直接相关的信息;用户信息的数据形式可包括文本、图片、音频或视频。该方法可以包括:Referring to FIG. 4, it is a method for sharing user information provided by another embodiment of the invention. It should be noted that the user information may include user profile information and social relationship information, and may also include other information directly related to the user's social activities; the data form of the user information may include text, pictures, audio or video. The method can include:
步骤S401:第二终端在服务器上注册用户信息。Step S401: The second terminal registers user information on the server.
具体的,第二终端可接收第一输入来在服务器上注册用户信息,用户信息包括用户标识。Specifically, the second terminal may receive the first input to register the user information on the server, where the user information includes the user identifier.
具体的,第一输入可用于在第二终端的输入设备上注册用户信息;该用户标识可为用户信息中的用户账号。第二终端可通过预设的社交应用导航模块来接收第一输入,第二终端的预设的社交应用导航模块可以为第一终端的预设的社交应用群中的社交应用提供用户信息的录入功能。第二终端可通过预设的社交应用导航模块发送用户信息至服务器,完成注册。Specifically, the first input can be used to register user information on the input device of the second terminal; the user identifier can be a user account in the user information. The second terminal may receive the first input by using a preset social application navigation module, and the preset social application navigation module of the second terminal may provide the user information input for the social application in the preset social application group of the first terminal Features. The second terminal may send the user information to the server through the preset social application navigation module to complete the registration.
步骤S403:服务器根据用户信息产生身份凭证。Step S403: The server generates an identity certificate according to the user information.
具体的,服务器可按预定的规则根据用户信息中的用户标识生成身份凭证。Specifically, the server may generate the identity credential according to the user identifier in the user information according to a predetermined rule.
具体的,身份凭证可为服务器按预定的算法对用户信息中的用户标识进行 处理获得的,例如,服务器根据MD5算法对用户信息中的用户账号“Jack”生成16位的身份凭证,身份凭证为字符串“06d15373954d8b27”。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the identity certificate may be used by the server to perform user identification in the user information according to a predetermined algorithm. The processing obtains, for example, the server generates a 16-bit identity credential for the user account "Jack" in the user information according to the MD5 algorithm, and the identity credential is the character string "06d15373954d8b27". The examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
步骤S405:服务器返回身份凭证至第二终端。Step S405: The server returns the identity certificate to the second terminal.
具体的,服务器可在第二终端登录服务器之后,发送身份凭证至第二终端;第二终端可临时存储身份凭证,身份凭证用于共享给第一终端。Specifically, the server may send the identity credential to the second terminal after the second terminal logs in to the server; the second terminal may temporarily store the identity credential, where the identity credential is used for sharing to the first terminal.
步骤S407:第二终端请求与第一终端配对。Step S407: The second terminal requests pairing with the first terminal.
具体的,在第二终端发送用户凭证至第一终端之前,第二终端可向第一终端发送配对请求,可根据第一终端提示的配对验证码,接收与配对验证码一致的第二输入来完成配对,配对之后,执行第二终端发送用户凭证至第一终端的步骤。Specifically, before the second terminal sends the user credential to the first terminal, the second terminal may send a pairing request to the first terminal, and may receive the second input that is consistent with the pairing verification code according to the pairing verification code prompted by the first terminal. After the pairing is completed, after pairing, the step of sending the user credential to the first terminal by the second terminal is performed.
步骤S409:第一终端判断配对是否成功。Step S409: The first terminal determines whether the pairing is successful.
具体的,当第二终端向第一终端发送配对请求时,第一终端可通过一定方式随机产生出配对验证码,配对验证码用于提示用户在第二终端上输入跟该随机产生的配对验证码一致的验证码;第二终端可接收用户对配对验证码的匹配输入;第一终端接收第二终端发送的该匹配输入,判断该匹配输入与配对验证码是否一致,如果该匹配输入与配对验证码一致,则第一终端判定与第二终端配对成功,执行步骤S411;否则,执行步骤S421,具体实现中,还可以执行步骤S407,即第二终端可对第一终端重新发起配对请求,这里不作限制。Specifically, when the second terminal sends a pairing request to the first terminal, the first terminal may randomly generate a pairing verification code by using a certain method, and the pairing verification code is used to prompt the user to input the paired verification with the random generation on the second terminal. The code is consistent with the verification code; the second terminal can receive the matching input of the user to the pairing verification code; the first terminal receives the matching input sent by the second terminal, and determines whether the matching input is consistent with the pairing verification code, if the matching input and the matching If the verification code is consistent, the first terminal determines that the second terminal is successfully paired with the second terminal, and the step S411 is performed; otherwise, the step S421 is performed. In the specific implementation, the step S407 may be performed, that is, the second terminal may re-initiate the pairing request to the first terminal. There are no restrictions here.
步骤S411:第二终端发送身份凭证至第一终端预设的服务模块。Step S411: The second terminal sends the identity certificate to the service module preset by the first terminal.
具体的,预设的服务模块可作为预设的社交应用群和上述服务器交换数据的协调者,预设的社交应用群中的社交应用可以只需要和预设的服务模块通信就能获取身份凭证对应的用户信息。Specifically, the preset service module can be used as a preset social application group and a coordinator of the above-mentioned server exchange data, and the social application in the preset social application group can only obtain the identity certificate by communicating with the preset service module. Corresponding user information.
上述配对成功之后,第二终端可共享身份凭证至第一终端,发送身份凭证至预设的服务模块,临时存储身份凭证于预设的服务模块。After the pairing is successful, the second terminal may share the identity certificate to the first terminal, send the identity certificate to the preset service module, and temporarily store the identity certificate in the preset service module.
步骤S413:第一终端预设的服务模块接收到第一终端预设的社交应用群的获取用户信息的请求。Step S413: The service module preset by the first terminal receives the request for acquiring the user information of the social application group preset by the first terminal.
具体的,预设的服务模块可作为预设的社交应用群和服务器交换数据的协调者,预设的社交应用群中的社交应用可以只需要和预设的服务模块通信就能 获取身份凭证对应的用户信息。Specifically, the preset service module can be used as a coordinator of the preset social application group and the server exchange data, and the social application in the preset social application group can only need to communicate with the preset service module. Obtain the user information corresponding to the identity certificate.
具体的,预设的服务模块可接收预设的社交应用群发起的用于获取用户信息的请求,包括:Specifically, the preset service module may receive a request initiated by the preset social application group for acquiring user information, including:
预设的服务模块接收预设的社交应用群中的社交应用根据身份凭证直接发起的用于获取用户信息的请求;该请求中包含身份凭证;或The preset service module receives a request for acquiring user information directly initiated by the social application in the preset social application group according to the identity certificate; the request includes the identity certificate; or
预设的服务模块向预设的社交应用群中的社交应用发送共享通知,接收预设的社交应用群中的社交应用通过响应共享通知而发起的用于获取用户信息的请求。The preset service module sends a sharing notification to the social application in the preset social application group, and receives a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification.
具体的,预设的服务模块可接收预设的社交应用群中的社交应用根据身份凭证直接发起的用于获取用户信息的请求,即预设的社交应用群中社交应用可以主动请求的方式向预设的服务模块发起请求来获取身份凭证对应的用户信息;该请求中包含身份凭证。社交应用可监测用户操作,当用户操作触发的社交活动需要获取身份凭证对应的用户信息时,社交应用可以根据身份凭证通过主动请求的方式直接向预设的服务模块请求获取身份凭证对应的用户信息。Specifically, the preset service module may receive a request for acquiring the user information directly initiated by the social application in the preset social application group according to the identity credential, that is, the manner in which the social application group in the preset social application group can actively request The preset service module initiates a request to obtain user information corresponding to the identity certificate; the request includes the identity certificate. The social application can monitor the user operation. When the user action triggers the social activity and needs to obtain the user information corresponding to the identity certificate, the social application can directly request the user information corresponding to the identity certificate from the preset service module according to the identity certificate. .
具体的,预设的服务模块还可向预设的社交应用群中的社交应用发送共享通知,接收预设的社交应用群中的社交应用通过响应共享通知而发起的用于获取用户信息的请求,即预设的社交应用群中社交应用可以被动响应的方式向预设的服务模块发起请求来获取身份凭证对应的用户信息。响应中包括响应源,可用于表征预设的社交应用群中对共享通知做出响应的社交应用。当预设的服务模块从第二终端接收身份凭证时,预设的服务模块可以广播的方式通知预设的社交应用群中的所有社交应用有可共享的用户信息,可共享的用户信息即身份凭证对应的用户信息;当预设的服务模块接收到预设的社交应用群对该通知的响应,可分析该响应中的响应源,将身份凭证对应的用户信息发送至该响应源表征的社交应用。Specifically, the preset service module may further send a sharing notification to the social application in the preset social application group, and receive a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification. That is, the social application in the preset social application group can initiate a request to the preset service module to obtain the user information corresponding to the identity certificate in a passive response manner. The response includes a response source that can be used to characterize a social application in the preset social application group that responds to the shared notification. When the preset service module receives the identity credential from the second terminal, the preset service module can notify all social applications in the preset social application group that the shared service information has shareable user information, and the shareable user information is the identity. The user information corresponding to the voucher; when the preset service module receives the response of the preset social application group to the notification, the response source in the response may be analyzed, and the user information corresponding to the identity voucher is sent to the socialized by the response source application.
步骤S415:服务器判断第一终端的鉴权是否成功。Step S415: The server determines whether the authentication of the first terminal is successful.
具体的,服务器可接收第一终端发送的鉴权请求,该鉴权请求中包含身份凭证;之后,服务器可从鉴权请求中提取出身份凭证,通过比较身份凭证和用户信息数据库来识别身份凭证,当服务器在用户信息数据库中找到身份凭证的匹配项,则可判定鉴权成功,执行步骤S417;否则,执行步骤S421,具体实 现中,还可以重新执行步骤S415,即服务器可再次响应第一终端的鉴权请求,这里不作限制。Specifically, the server may receive the authentication request sent by the first terminal, where the authentication request includes the identity credential; afterwards, the server may extract the identity credential from the authentication request, and identify the identity credential by comparing the identity credential and the user information database. When the server finds the matching item of the identity certificate in the user information database, it may determine that the authentication is successful, and step S417 is performed; otherwise, step S421 is performed. Now, step S415 can be re-executed, that is, the server can respond to the authentication request of the first terminal again, which is not limited herein.
步骤S417:第一终端预设的服务模块自动登录到服务器;并从服务器获取身份凭证对应的用户信息。Step S417: The service module preset by the first terminal automatically logs in to the server; and obtains user information corresponding to the identity certificate from the server.
具体的,预设的服务模块可作为预设的社交应用群和服务器交换数据的协调者,预设的社交应用群中的社交应用可以只需要和预设的服务模块通信就能获取身份凭证对应的用户信息。Specifically, the preset service module can be used as a coordinator of the preset social application group and the server exchange data, and the social application in the preset social application group can only obtain the identity certificate corresponding to the preset service module. User information.
上述鉴权成功后,预设的服务模块可自动登录服务器。自动登录成功之后,预设的服务模块通过发送身份凭证来获取身份凭证对应的用户信息,接收服务器在遍历用户信息数据库来匹配身份凭证之后的结果,获取身份凭证对应的用户信息。After the above authentication succeeds, the preset service module can automatically log in to the server. After the automatic login succeeds, the preset service module obtains the user information corresponding to the identity credential by sending the identity credential, and the receiving server obtains the user information corresponding to the identity credential after traversing the user information database to match the identity credential.
步骤S419:第一终端预设的服务模块将身份凭证对应的用户信息传送至第一终端预设的社交应用群。Step S419: The service module preset by the first terminal transmits the user information corresponding to the identity certificate to the social application group preset by the first terminal.
具体的,预设的服务模块可作为预设的社交应用群和服务器交换数据的协调者,预设的社交应用群中的社交应用可以只需要和预设的服务模块通信就能获取身份凭证对应的用户信息。Specifically, the preset service module can be used as a coordinator of the preset social application group and the server exchange data, and the social application in the preset social application group can only obtain the identity certificate corresponding to the preset service module. User information.
具体的,预设的社交应用群中的社交应用可以通过主动请求的方式向预设的服务模块发起请求,将请求通过双向数据通道传送至预设的服务模块;预设的服务模块可对请求进行分析,从服务器上获取与请求对应的用户信息,将请求对应的用户信息直接传送至预设的社交应用群中发起请求的社交应用。Specifically, the social application in the preset social application group may initiate a request to the preset service module by using an active request, and transmit the request to the preset service module through the bidirectional data channel; the preset service module may request the request. Performing an analysis, obtaining user information corresponding to the request from the server, and directly transmitting the corresponding user information to the social application that initiated the request in the preset social application group.
具体的,请求包含请求源,请求源用以表征预设的社交应用群中发出请求的社交应用,预设的服务模块根据接收的请求直接将用户信息传送至预设的社交应用群,包括:Specifically, the request includes a request source, and the request source is used to represent the social application that sends the request in the preset social application group. The preset service module directly transmits the user information to the preset social application group according to the received request, including:
当请求中仅有一个请求源时,预设的服务模块将用户信息传送至请求源对应的社交应用;或When there is only one request source in the request, the preset service module transmits the user information to the social application corresponding to the request source; or
当请求中有N个请求源时,预设的服务模块通过广播方式将用户信息传送至N个请求源表征的N个社交应用;N为大于等于2的自然数。When there are N request sources in the request, the preset service module transmits the user information to N social applications characterized by the N request sources by broadcasting; N is a natural number greater than or equal to 2.
预设的服务模块可通过分析请求,判定请求中的请求源为目标社交应用。当请求中仅有一个请求源时,预设的服务模块判定所述一个请求源为目标社交 应用,可采用点对点的方式发送用户信息至所述一个请求源;相应的,当请求中有两个以上请求源时,预设的服务模块判定所述两个以上请求源为目标社交应用,可以采用广播的方式将身份凭证对应的用户信息发送至所述两个以上请求源。The preset service module can determine the request source in the request as the target social application by analyzing the request. When there is only one request source in the request, the preset service module determines that the one request source is the target social The application may send the user information to the one request source in a point-to-point manner; correspondingly, when there are more than two request sources in the request, the preset service module determines that the two or more request sources are target social applications, and The user information corresponding to the identity certificate is sent to the two or more request sources in a broadcast manner.
步骤S421:结束当前流程。Step S421: End the current process.
上述详细阐述了本发明实施例提供的用户信息共享的方法,下面为了便于更好地实施本发明实施例的上述方案,相应地,下面还提供用于配合实施上述方案的相关设备。The foregoing describes in detail the method for sharing the user information provided by the embodiment of the present invention. In order to facilitate the implementation of the foregoing solution of the embodiment of the present invention, the related device for implementing the foregoing solution is also provided below.
参见图5,是本发明的一种实施例提供的第一终端50,至少可以包括预设的社交应用群59、第一通信模块51、第二通信模块53及第三通信模块55,其中:Referring to FIG. 5, a first terminal 50 according to an embodiment of the present invention may include at least a preset social application group 59, a first communication module 51, a second communication module 53, and a third communication module 55, where:
预设的社交应用群59,用于进行社交活动。A preset social application group 59 for social activities.
第一通信模块51,用于接收第二终端发送的身份凭证,身份凭证为第二终端根据在服务器上注册的用户信息得到的身份凭证;身份凭证与用户信息中的用户标识一一对应。The first communication module 51 is configured to receive the identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to the user information registered on the server; the identity credential is in one-to-one correspondence with the user identifier in the user information.
具体的,身份凭证为服务器按预定的规则根据用户信息中的用户标识生成的。Specifically, the identity credential is generated by the server according to a predetermined rule according to the user identifier in the user information.
需要说明的是用户信息可包括用户个人档案信息和社交关系信息,亦可包括其他直接与用户的社交活动直接相关的信息;用户信息的数据形式可包括文本、图片、音频或视频。It should be noted that the user information may include user profile information and social relationship information, and may also include other information directly related to the user's social activities; the data form of the user information may include text, pictures, audio or video.
如图5所示的第一终端,还可以包括:配对模块57,用于在第一通信模块51执行接收第二终端发送的身份凭证的步骤之前,接收第二终端的配对请求,提示配对验证码,配对验证码用于提示用户在第二终端上输入配对验证码来完成配对;配对之后,第一通信模51块执行接收第二终端发送的身份凭证的步骤。The first terminal, as shown in FIG. 5, may further include: a pairing module 57, configured to receive a pairing request of the second terminal, prompting pairing verification, before the step of the first communication module 51 performing the receiving the identity credential sent by the second terminal The code, the pairing verification code is used to prompt the user to input the pairing verification code on the second terminal to complete the pairing; after the pairing, the first communication mode 51 block performs the step of receiving the identity certificate sent by the second terminal.
第二通信模块53,用于根据身份凭证自动登录到服务器,从服务器上获取身份凭证对应的用户信息发送模块。具体实现中,第二通信模块53可以如图6所示进一步包括:鉴权模块531、自动登录模块535和信息获取模块537,其中: The second communication module 53 is configured to automatically log in to the server according to the identity certificate, and obtain a user information sending module corresponding to the identity certificate from the server. In a specific implementation, the second communication module 53 may further include an authentication module 531, an automatic login module 535, and an information acquisition module 537, as shown in FIG. 6, wherein:
自动登录模块535,用于通过预设的服务模块根据身份凭证自动登录到服务器。The automatic login module 535 is configured to automatically log in to the server according to the identity certificate by using a preset service module.
鉴权模块531,用于通过预设的服务模块根据身份凭证在服务器进行鉴权,当身份凭证被服务器识别,则鉴权成功,触发自动登录模块535执行通过预设的服务模块根据身份凭证自动登录到服务器的步骤。The authentication module 531 is configured to perform authentication on the server according to the identity credential by using the preset service module. When the identity credential is recognized by the server, the authentication succeeds, and the automatic login module 535 is triggered to execute the automatic verification according to the identity credential through the preset service module. The steps to log in to the server.
信息获取模块537,用于通过预设的服务模块从服务器获取身份凭证对应的用户信息。The information obtaining module 537 is configured to obtain user information corresponding to the identity certificate from the server by using a preset service module.
具体的,上述预设的服务模块可作为预设的社交应用群59和上述服务器交换数据的协调者,预设的社交应用群59中的社交应用可以只需要和预设的服务模块通信就能获取身份凭证对应的用户信息。Specifically, the preset service module may serve as a preset social application group 59 and a coordinator of the server exchange data. The social application in the preset social application group 59 may only need to communicate with a preset service module. Obtain the user information corresponding to the identity certificate.
具体的,鉴权模块531向服务器发出鉴权请求,该鉴权请求中包含身份凭证;之后,服务器从鉴权请求中提取出身份凭证,通过比较身份凭证和用户信息数据库来识别身份凭证,当服务器在用户信息数据库中找到身份凭证的匹配项,则鉴权模块531判定鉴权成功,自动登录模块535可自动登录服务器。用户信息数据库可包括:用户标识-用户信息-身份凭证的对应关系。Specifically, the authentication module 531 sends an authentication request to the server, where the authentication request includes the identity credential; afterwards, the server extracts the identity credential from the authentication request, and identifies the identity credential by comparing the identity credential and the user information database. The server finds a match of the identity credential in the user information database, and the authentication module 531 determines that the authentication is successful, and the automatic login module 535 can automatically log in to the server. The user information database may include: a correspondence of user identification-user information-identity credentials.
在自动登录模块535自动登录成功之后,服务器遍历用户信息数据库找到与身份凭证对应的用户信息,信息获取模块537获取身份凭证对应的用户信息。After the automatic login module 535 automatically logs in successfully, the server traverses the user information database to find the user information corresponding to the identity certificate, and the information obtaining module 537 obtains the user information corresponding to the identity certificate.
第三通信模块55,用于将用户信息传送至预设的社交应用群59。具体实现中,第三通信模块55可以如图7所示进一步包括:接收请求模块551和信息发送模块553,其中:The third communication module 55 is configured to transmit user information to the preset social application group 59. In a specific implementation, the third communication module 55 may further include: a receiving request module 551 and an information sending module 553, as shown in FIG. 7, wherein:
接收请求模块551,用于通过预设的服务模块接收上述社交应用群59发起的用于获取用户信息的请求。具体实现中,接收请求模块551可以如图8所示进一步包括:第一接收模块5511和第二接收模块5513,其中:The receiving request module 551 is configured to receive, by using a preset service module, a request for acquiring user information initiated by the social application group 59. In a specific implementation, the receiving request module 551 may further include: a first receiving module 5511 and a second receiving module 5513, as shown in FIG.
第一接收模块5511,用于通过预设的服务模块接收预设的社交应用群59中的社交应用根据身份凭证直接发起的用于获取用户信息的请求;该请求中包含身份凭证。The first receiving module 5511 is configured to receive, by using a preset service module, a request for acquiring user information directly initiated by the social application in the preset social application group 59 according to the identity credential; the request includes the identity credential.
第二接收模块5513,用于通过预设的服务模块向预设的社交应用群59中的社交应用发送共享通知,接收预设的社交应用群59中的社交应通过响应共享通知而发起的用于获取用户信息的请求。 The second receiving module 5513 is configured to send, by using a preset service module, a sharing notification to the social application in the preset social application group 59, and receive that the social in the preset social application group 59 should be initiated by responding to the sharing notification. A request to obtain user information.
具体的,第一接收模块5511接收预设的社交应用群59中的社交应用获取用户信息的请求,即预设的社交应用群中社交应用可以主动请求的方式向第一接收模块5511发起请求来获取身份凭证对应的用户信息;请求中包含身份凭证。社交应用可监测用户操作,当用户操作触发的社交活动需要获取身份凭证对应的用户信息时,社交应用可以根据身份凭证通过主动请求的方式直接向预设的服务模块请求获取身份凭证对应的用户信息。Specifically, the first receiving module 5511 receives the request of the social application in the preset social application group 59 to obtain the user information, that is, the social application group in the preset social application group can initiate a request to the first receiving module 5511 in a manner requested by the social application group. Obtain the user information corresponding to the identity certificate; the request contains the identity certificate. The social application can monitor the user operation. When the user action triggers the social activity and needs to obtain the user information corresponding to the identity certificate, the social application can directly request the user information corresponding to the identity certificate from the preset service module according to the identity certificate. .
具体的,预设的服务模块向预设的社交应用群59中的社交应用发送共享通知,第二接收模块5513接收预设的社交应用群59中的社交应用通过响应共享通知而发起的用于获取用户信息的请求,即预设的社交应用群59中社交应用可以被动响应的方式向预设的服务模块发起请求来获取身份凭证对应的用户信息。响应中包括响应源,可用于表征预设的社交应用群59中对共享通知做出响应的社交应用。当第一终端从第二终端接收身份凭证时,预设的服务模块可以广播的方式通知预设的社交应用群59中的所有社交应用有可共享的用户信息,可共享的用户信息即身份凭证对应的用户信息;当第二接收模块5513接收到预设的社交应用群对通知的响应,可分析该响应中的响应源,将身份凭证对应的用户信息发送至该响应源表征的社交应用。Specifically, the preset service module sends a sharing notification to the social application in the preset social application group 59, and the second receiving module 5513 receives the social application initiated by the social application group 59 in response to the sharing notification. The request for obtaining the user information, that is, the social application in the preset social application group 59 can initiate a request to the preset service module to obtain the user information corresponding to the identity certificate. The response includes a response source that can be used to characterize a social application in the preset social application group 59 that is responsive to the shared notification. When the first terminal receives the identity credential from the second terminal, the preset service module can notify all the social applications in the preset social application group 59 that the shared social information has shareable information, and the shareable user information, that is, the identity credential Corresponding user information; when the second receiving module 5513 receives the response of the preset social application group to the notification, the response source in the response may be analyzed, and the user information corresponding to the identity certificate is sent to the social application represented by the response source.
信息发送模块553,用于通过预设的服务模块直接将用户信息传送至预设的社交应用群59。具体实现中,信息发送模块553可以如图9所示进一步包括:The information sending module 553 is configured to directly transmit the user information to the preset social application group 59 through the preset service module. In a specific implementation, the information sending module 553 may further include:
第一发送模块5531,当请求中仅有一个请求源时,用于通过预设的服务模块将用户信息传送至该请求源对应的社交应用。The first sending module 5531 is configured to transmit user information to the social application corresponding to the request source by using a preset service module when there is only one request source in the request.
第二发送模块5533,当请求中有N个请求源时,用于通过预设的服务模块通过广播方式将用户信息传送至所述N个请求源表征的N个社交应用;N为大于等于2的自然数。The second sending module 5533 is configured to: when the request has N request sources, use the preset service module to broadcast the user information to the N social applications characterized by the N request sources; N is greater than or equal to 2 Natural number.
具体的,请求包含请求源,该请求源用以表征预设的社交应用群中发出请求的社交应用。预设的服务模块可通过分析请求,判定请求中的请求源为目标社交应用。当请求中仅有一个请求源时,预设的服务模块判定所述一个请求源为目标社交应用,第一发送模块5531可采用点对点的方式发送用户信息至所述一个请求源;相应的,当请求中有两个以上请求源时,预设的服务模块判定 所述两个以上请求源为目标社交应用,第二发送模块5533可以采用广播的方式将身份凭证对应的用户信息发送至所述两个以上请求源。Specifically, the request includes a request source, and the request source is used to represent the social application that requests the preset social application group. The preset service module can determine the request source in the request as the target social application by analyzing the request. When there is only one request source in the request, the preset service module determines that the one request source is the target social application, and the first sending module 5531 may send the user information to the one request source in a point-to-point manner; correspondingly, when When there are more than two request sources in the request, the default service module determines The two or more request sources are the target social application, and the second sending module 5533 may send the user information corresponding to the identity credential to the two or more request sources in a broadcast manner.
参见图10,是本发明的一种实施例提供的第二终端60,至少可以包括信息注册模块61、凭证接收模块63、凭证发送模块65,其中:Referring to FIG. 10, a second terminal 60 according to an embodiment of the present invention may include at least an information registration module 61, a credential receiving module 63, and a credential sending module 65, where:
信息注册模块61,用于接收第一输入来在服务器上注册用户信息,用户信息包括用户标识。The information registration module 61 is configured to receive the first input to register user information on the server, where the user information includes a user identifier.
具体的,上述第一输入用于在第二终端上注册用户信息。Specifically, the first input is used to register user information on the second terminal.
凭证接收模块63,用于接收服务器返回的用户凭证,用户凭证为服务器按预定的规则根据用户信息中的用户标识来产生的;身份凭证与用户信息中的用户标识一一对应。The credential receiving module 63 is configured to receive the user credential returned by the server, where the user credential is generated by the server according to a predetermined identifier according to the user identifier in the user information; the credential credential corresponds to the user identifier in the user information.
凭证发送模块65,用于发送用户凭证至第一终端。The credential sending module 65 is configured to send the user credential to the first terminal.
如图10所示的第二终端60还可以包括:配对模块67和建立连接模块69,其中:The second terminal 60 shown in FIG. 10 may further include: a pairing module 67 and a connection establishing module 69, wherein:
配对模块67,用于在凭证发送模块65执行发送用户凭证至第一终端的步骤之前,向第一终端发送配对请求,根据第一终端提示的配对验证码,接收与配对验证码一致的第二输入来完成配对,配对之后,凭证发送模块65执行发送用户凭证至第一终端的步骤。The pairing module 67 is configured to send a pairing request to the first terminal before the step of sending the user credential to the first terminal by the credential sending module 65, and receive a second matching with the pairing verification code according to the pairing verification code prompted by the first terminal. The input is completed to complete the pairing, and after pairing, the credential sending module 65 performs the step of transmitting the user credential to the first terminal.
具体的,上述第二输入用于在第二终端上输入第一终端提示的配对验证码。Specifically, the second input is used to input a pairing verification code prompted by the first terminal on the second terminal.
建立连接模块69,用于在配对模块67执行向第一终端发送配对请求的步骤之前,第二终端扫描当前预定的短程通信网络,接收第三输入来与第一终端建立短程通信连接,第一终端在短程通信网络中,之后,配对模块67执行向第一终端发送配对请求的步骤。Establishing a connection module 69, before the pairing module 67 performs the step of sending a pairing request to the first terminal, the second terminal scans the currently scheduled short-range communication network, and receives the third input to establish a short-range communication connection with the first terminal, first The terminal is in a short-range communication network, after which the pairing module 67 performs the step of transmitting a pairing request to the first terminal.
具体的,上述第三输入用于在短程通信网络中选择第一终端来建立连接。Specifically, the third input is used to select a first terminal in a short-range communication network to establish a connection.
参见图11,是本发明的一种实施例提供的服务器70,至少可以包括信息存储模块71和凭证生成模块73,其中:Referring to FIG. 11, a server 70 according to an embodiment of the present invention may include at least an information storage module 71 and a credential generation module 73, where:
信息存储模块71,用于接收第二终端注册的用户信息,存储用户信息,用户信息为第二终端通过接收输入来获取的用户信息;用户信息包括用户标识。The information storage module 71 is configured to receive user information registered by the second terminal, and store user information, where the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier.
具体的,用户信息为第二终端通过接收输入来获取的用户信息;用户信息包括用户标识。服务器可在第二终端注册用户信息时接收用户信息,可将用户 信息和用户信息中的用户标识存储在信息存储模块71中,信息存储模块71可如步骤S103中表1所示的用户信息数据库。Specifically, the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier. The server may receive user information when the second terminal registers user information, and may The user identifier in the information and user information is stored in the information storage module 71, and the information storage module 71 can be the user information database shown in Table 1 in step S103.
凭证生成模块73,用于按预定的规则根据用户信息中的用户标识生成身份凭证,返回身份凭证至第二终端;身份凭证与用户信息中的用户标识一一对应。The credential generating module 73 is configured to generate an identity credential according to the user identifier in the user information according to a predetermined rule, and return the credential credential to the second terminal; the credential credential corresponds to the user identifier in the user information.
具体的,凭证生成模块73可将身份凭证按预定的算法对用户信息中的用户标识进行处理来获得身份凭证,例如,凭证生成模块73根据MD5算法对用户信息中的用户账号“Jack”生成16位的身份凭证,身份凭证为字符串“06d15373954d8b27”。示例仅仅是实施例的一部分,实际应用中还可不同,不应构成限定。Specifically, the credential generating module 73 may process the user credential in the user information according to a predetermined algorithm to obtain the identity credential. For example, the credential generating module 73 generates the user account “Jack” in the user information according to the MD5 algorithm. The identity certificate of the bit, the identity certificate is the string "06d15373954d8b27". The examples are only a part of the embodiments, and may be different in practical applications and should not be construed as limiting.
如图11所示的服务器70还可以包括:信息发送模块77和鉴权模块75,其中:The server 70 shown in FIG. 11 may further include: an information sending module 77 and an authentication module 75, wherein:
信息发送模块77,用于在凭证生成模块73执行返回身份凭证至第二终端的步骤之后,将身份凭证对应的用户信息发送至自动登录到服务器的第一终端。The information sending module 77 is configured to send the user information corresponding to the identity credential to the first terminal that automatically logs in to the server after the credential generating module 73 performs the step of returning the credential to the second terminal.
鉴权模块75,用于在凭证生成模块73执行返回身份凭证至第二终端的步骤之后,信息发送模块77执行将身份凭证对应的用户信息发送至自动登录到服务器的第一终端的步骤之前,对第一终端发送的身份凭证进行鉴权;当识别出身份凭证,则鉴权成功,触发信息发送模块77执行将身份凭证对应的用户信息发送至自动登录到服务器的第一终端的步骤。The authentication module 75 is configured to: after the step of executing the returning the identity certificate to the second terminal by the credential generating module 73, the information sending module 77 performs the step of sending the user information corresponding to the identity credential to the first terminal automatically logging in to the server, The identity credential sent by the first terminal is authenticated. When the identity credential is identified, the authentication succeeds, and the trigger information sending module 77 performs the step of sending the user information corresponding to the credential to the first terminal that automatically logs in to the server.
请参阅图12,图12是本发明的另一种实施例提供第一终端的结构示意图。其中,如图12所示,第一终端120可以包括:至少一个处理器1201,例如CPU,至少两个网络接口:第一网络接口1204和第二网络接口1207,用户接口1203,存储器1205,至少一个通信总线1202以及显示屏1206。其中,通信总线1202用于实现这些组件之间的连接通信。其中,用户接口1203可以包括遥控器(Remote),可选用户接口1203还可以包括标准的有线接口、无线接口。第一网络接口1204和第二网络接口1207可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1205可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1205可选的还可以是至少一个位于远离前述处理器1201的存储装置。如图12 所示,作为一种计算机存储介质的存储器1205中可以包括操作系统、网络通信模块、用户接口模块以及用户信息共享程序。Referring to FIG. 12, FIG. 12 is a schematic structural diagram of a first terminal according to another embodiment of the present invention. As shown in FIG. 12, the first terminal 120 may include: at least one processor 1201, such as a CPU, at least two network interfaces: a first network interface 1204 and a second network interface 1207, a user interface 1203, a memory 1205, at least A communication bus 1202 and a display screen 1206. Among them, the communication bus 1202 is used to implement connection communication between these components. The user interface 1203 may include a remote controller, and the optional user interface 1203 may further include a standard wired interface and a wireless interface. The first network interface 1204 and the second network interface 1207 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1205 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. The memory 1205 can optionally also be at least one storage device located remotely from the aforementioned processor 1201. Figure 12 As shown, the memory 1205 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a user information sharing program.
在图12所示的第一终端120中,第一网络接口1204主要用于连接服务器,与服务器进行数据通信;第一网络接口1207主要用于连接第二终端,与第二终端进行数据通信;而处理器1201可以用于调用存储器1205中存储的信息显示处理程序,并执行以下操作:In the first terminal 120 shown in FIG. 12, the first network interface 1204 is mainly used to connect to a server, and performs data communication with the server; the first network interface 1207 is mainly used to connect to the second terminal and perform data communication with the second terminal; The processor 1201 can be used to call the information display processing program stored in the memory 1205 and perform the following operations:
接收第二终端发送的身份凭证,身份凭证为第二终端根据在服务器上注册的用户信息得到的身份凭证;身份凭证与用户信息中的用户标识一一对应;Receiving the identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to the user information registered on the server; the identity credential is in one-to-one correspondence with the user identifier in the user information;
根据身份凭证自动登录到服务器,从服务器上获取身份凭证对应的用户信息;并将用户信息传送至第一终端预设的社交应用群,以使社交应用群中的各个社交应用根据用户信息进行社交活动。Automatically log in to the server according to the identity credential, obtain the user information corresponding to the credential from the server, and transmit the user information to the social application group preset by the first terminal, so that each social application in the social application group socializes according to the user information. activity.
进一步地,处理器1201执行获取用户信息时使用的用户凭证是第二终端在服务器上注册用户信息时,由服务器根据用户信息中的用户标识来生成。在处理器1201执行接收第二终端发送的身份凭证的步骤之前,处理器1201可以接收第二终端的配对请求,提示配对验证码,配对验证码用于提示用户在第二终端上输入配对验证码来完成配对。Further, the user credential used by the processor 1201 to obtain the user information is generated by the server according to the user identifier in the user information when the second terminal registers the user information on the server. Before the processor 1201 performs the step of receiving the identity credential sent by the second terminal, the processor 1201 may receive a pairing request of the second terminal, and prompt the pairing verification code, where the pairing verification code is used to prompt the user to input the pairing verification code on the second terminal. To complete the pairing.
再进一步地,处理器1201执行上述根据身份凭证自动登录到服务器,从服务器上获取身份凭证对应的用户信息的具体步骤可包括:Further, the processor 1201 performs the foregoing step of automatically logging in to the server according to the identity credential, and the specific step of obtaining the user information corresponding to the credential from the server may include:
处理器1201通过预设的服务模块根据身份凭证自动登录到服务器;之后,The processor 1201 automatically logs in to the server according to the identity certificate by using a preset service module; after that,
处理器1201通过预设的服务模块从服务器获取身份凭证对应的用户信息。The processor 1201 obtains user information corresponding to the identity certificate from the server through a preset service module.
再进一步地,处理器1201执行在上述通过预设的服务模块根据身份凭证自动登录到服务器的步骤之前,还可以包括:Further, before the step of automatically logging in to the server according to the identity credential by the preset service module, the processor 1201 may further include:
处理器1201通过预设的服务模块根据身份凭证登录服务器进行鉴权,当身份凭证被服务器识别,则鉴权成功,处理器1201执行根据身份凭证自动登录到服务器的步骤。The processor 1201 logs in to the server according to the identity credential through the preset service module for authentication. When the identity credential is recognized by the server, the authentication succeeds, and the processor 1201 performs the step of automatically logging in to the server according to the identity credential.
再进一步地,处理器1201执行上述将用户信息传送至第一终端预设的社交应用群的具体步骤可包括:Further, the specific step of the processor 1201 performing the foregoing transmitting the user information to the social application group preset by the first terminal may include:
处理器1201通过预设的服务模块接收预设的社交应用群发起的用于获取用户信息的请求; The processor 1201 receives, by using a preset service module, a request initiated by the preset social application group for acquiring user information;
处理器1201通过预设的服务模块根据接收的上述请求直接将用户信息传送至预设的社交应用群。The processor 1201 directly transmits the user information to the preset social application group according to the received request by using a preset service module.
再进一步地,处理器1201在预设的服务模块与预设的社交应用群之间建立有双向数据通道:Further, the processor 1201 establishes a bidirectional data channel between the preset service module and the preset social application group:
双向数据通道在预设的社交应用群至预设的服务模块方向上传送的是上述请求;The two-way data channel transmits the above request in the direction of the preset social application group to the preset service module;
双向数据通道在预设的服务模块至预设的社交应用群方向上传送的是用户信息。The two-way data channel transmits user information in a direction from a preset service module to a preset social application group.
其中,请求包含请求源,请求源用以表征预设的社交应用群中发出请求的社交应用,The request includes a request source, and the request source is used to represent the social application that requests the request in the preset social application group.
再进一步地,处理器1201通过预设的服务模块执行上述根据接收的请求直接将用户信息传送至社交应用群的具体步骤可包括:Further, the specific step of the processor 1201 performing the foregoing directly transmitting the user information to the social application group according to the received request by using the preset service module may include:
当请求中仅有一个请求源时,处理器1201通过预设的服务模块将用户信息传送至请求源对应的社交应用;或When there is only one request source in the request, the processor 1201 transmits the user information to the social application corresponding to the request source through the preset service module; or
当请求中有N个请求源时,处理器1201通过预设的服务模块通过广播方式将用户信息传送至N个请求源表征的N个社交应用;N为大于等于2的自然数。When there are N request sources in the request, the processor 1201 broadcasts the user information to the N social applications characterized by the N request sources through a preset service module; N is a natural number greater than or equal to 2.
再进一步地,处理器1201通过预设的服务模块执行上述接收预设的社交应用群发起的用于获取用户信息的请求的具体步骤可包括:Further, the specific step of the processor 1201 executing the foregoing request for acquiring the user information initiated by the preset social application group by using the preset service module may include:
处理器1201通过预设的服务模块接收预设的社交应用群中的社交应用根据身份凭证直接发起的用于获取用户信息的请求;请求中包含身份凭证;或The processor 1201 receives, by using a preset service module, a request for acquiring user information directly initiated by the social application in the preset social application group according to the identity certificate; the request includes the identity certificate; or
处理器1201通过预设的服务模块向预设的社交应用群中的社交应用发送共享通知,接收预设的社交应用群中的社交应用通过响应共享通知而发起的用于获取用户信息的请求。The processor 1201 sends a sharing notification to the social application in the preset social application group by using the preset service module, and receives a request for acquiring the user information by the social application in the preset social application group by responding to the sharing notification.
请参阅图13,图13是本发明的另一种实施例提供第二终端的结构示意图。其中,如图13所示,第二终端130可以包括:至少一个处理器1301,例如CPU,至少两个网络接口:第一网络接口1304和第二网络接口1307,用户接口1303,存储器1305,至少一个通信总线1302以及显示屏1306。其中,通信总线1302用于实现这些组件之间的连接通信。其中,用户接口1303可以包 括触摸屏(Touch Screen),可选用户接口1303还可以包括标准的有线接口、无线接口。第一网络接口1304和第二网络接口1307可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1305可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1305可选的还可以是至少一个位于远离前述处理器1301的存储装置。如图13所示,作为一种计算机存储介质的存储器1305中可以包括操作系统、网络通信模块、用户接口模块以及用户信息共享程序。Please refer to FIG. 13. FIG. 13 is a schematic structural diagram of a second terminal according to another embodiment of the present invention. As shown in FIG. 13, the second terminal 130 may include: at least one processor 1301, such as a CPU, at least two network interfaces: a first network interface 1304 and a second network interface 1307, a user interface 1303, a memory 1305, at least A communication bus 1302 and a display 1306. Among them, the communication bus 1302 is used to implement connection communication between these components. Wherein, the user interface 1303 can include Including a touch screen (Touch Screen), the optional user interface 1303 may also include a standard wired interface, a wireless interface. The first network interface 1304 and the second network interface 1307 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1305 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. The memory 1305 can also optionally be at least one storage device located remotely from the aforementioned processor 1301. As shown in FIG. 13, an operating system, a network communication module, a user interface module, and a user information sharing program may be included in the memory 1305 as a computer storage medium.
在图13所示的第一终端130中,第一网络接口1304主要用于连接服务器,与服务器进行数据通信;第二网络接口1307主要用于连接第一终端,与第一终端进行数据通信;而处理器1301可以用于调用存储器1305中存储的信息显示处理程序,并执行以下操作:In the first terminal 130 shown in FIG. 13, the first network interface 1304 is mainly used to connect to the server, and performs data communication with the server; the second network interface 1307 is mainly used to connect to the first terminal and perform data communication with the first terminal; The processor 1301 can be used to call the information display processing program stored in the memory 1305 and perform the following operations:
处理器1301接收第一输入来在服务器上注册用户信息,用户信息包括用户标识;The processor 1301 receives the first input to register user information on the server, and the user information includes a user identifier;
处理器1301接收服务器返回的用户凭证,用户凭证是由服务器按预定的规则根据用户信息中的用户标识生成的;身份凭证与用户信息中的用户标识一一对应;The processor 1301 receives the user credential returned by the server, and the user credential is generated by the server according to the user identifier in the user information according to a predetermined rule; the identity credential has a one-to-one correspondence with the user identifier in the user information;
处理器1301发送用户凭证至第一终端。The processor 1301 sends the user credential to the first terminal.
进一步地,处理器1301执行发送用户凭证至第一终端的步骤之前,还可以包括:Further, before the step of the processor 1301 transmitting the user credential to the first terminal, the method further includes:
处理器1301向第一终端发送配对请求,根据第一终端提示的配对验证码,接收与配对验证码一致的第二输入来完成配对,配对之后,执行发送用户凭证至第一终端的步骤。The processor 1301 sends a pairing request to the first terminal, and receives a second input that is consistent with the pairing verification code according to the pairing verification code prompted by the first terminal to complete the pairing. After pairing, the step of transmitting the user credential to the first terminal is performed.
再进一步地,处理器1301执行向第一终端发送配对请求的步骤之前,还可以包括:Further, before the step of the processor 1301 performing the sending of the pairing request to the first terminal, the method further includes:
处理器1301扫描当前预定的短程通信网络,接收第三输入来与第一终端建立短程通信连接,第一终端在短程通信网络中,之后,执行第二终端向第一终端发送配对请求的步骤。The processor 1301 scans the currently scheduled short-range communication network, receives the third input to establish a short-range communication connection with the first terminal, and the first terminal is in the short-range communication network, and then performs the step of the second terminal transmitting a pairing request to the first terminal.
请参阅图14,图14是本发明的另一种实施例提供服务器的结构示意图。其中,如图14所示,第二终端140可以包括:至少一个处理器1401,例如 CPU,至少两个网络接口:第一网络接口1404和第二网络接口1403,存储器1405及至少一个通信总线1402。其中,通信总线1402用于实现这些组件之间的连接通信。其中,第一网络接口1404和第二网络接口1407可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1405可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1405可选的还可以是至少一个位于远离前述处理器1401的存储装置。如图14所示,作为一种计算机存储介质的存储器1405中可以包括操作系统、网络通信模块以及用户信息共享程序。Please refer to FIG. 14. FIG. 14 is a schematic structural diagram of a server according to another embodiment of the present invention. Wherein, as shown in FIG. 14, the second terminal 140 may include: at least one processor 1401, for example The CPU, at least two network interfaces: a first network interface 1404 and a second network interface 1403, a memory 1405 and at least one communication bus 1402. Among them, the communication bus 1402 is used to implement connection communication between these components. The first network interface 1404 and the second network interface 1407 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1405 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. The memory 1405 can optionally also be at least one storage device located remotely from the aforementioned processor 1401. As shown in FIG. 14, an operating system, a network communication module, and a user information sharing program may be included in the memory 1405 as a computer storage medium.
在图14所示的第一终端140中,第一网络接口1404主要用于连接第一终端,与第一终端进行数据通信;第二网络接口1403主要用于连接第二终端,与第二终端进行数据通信;而处理器1401可以用于调用存储器1405中存储的信息显示处理程序,并执行以下操作:In the first terminal 140 shown in FIG. 14, the first network interface 1404 is mainly used to connect to the first terminal, and performs data communication with the first terminal. The second network interface 1403 is mainly used to connect the second terminal with the second terminal. Data communication is performed; and the processor 1401 can be used to call the information display processing program stored in the memory 1405 and perform the following operations:
处理器1401接收第二终端注册的用户信息,存储用户信息,用户信息为第二终端通过接收输入来获取的用户信息;用户信息包括用户标识;The processor 1401 receives the user information registered by the second terminal, and stores the user information, where the user information is user information obtained by the second terminal by receiving the input; the user information includes the user identifier;
处理器1401按预定的规则根据用户信息中的用户标识生成身份凭证,返回身份凭证至第二终端;身份凭证与用户信息中的用户标识一一对应。The processor 1401 generates an identity credential according to the user identifier in the user information according to a predetermined rule, and returns the identity credential to the second terminal; the identity credential is in one-to-one correspondence with the user identifier in the user information.
进一步地,处理器1401执行返回身份凭证至第二终端的步骤之后,还可以Further, after the processor 1401 performs the step of returning the identity certificate to the second terminal,
将身份凭证对应的用户信息发送至自动登录到服务器的第一终端。The user information corresponding to the identity certificate is sent to the first terminal that automatically logs in to the server.
再进一步地,处理器1401在执行返回身份凭证至第二终端的步骤之后,执行将身份凭证对应的用户信息发送至自动登录到服务器的第一终端的步骤之前,还可以包括:Further, the processor 1401, after performing the step of returning the identity credential to the second terminal, before performing the step of sending the user information corresponding to the identity credential to the first terminal that automatically logs in to the server, may further include:
处理器1401接收第一终端发送的身份凭证,并根据身份凭证进行鉴权;The processor 1401 receives the identity credential sent by the first terminal, and performs authentication according to the identity credential;
处理器1401识别出身份凭证,则判定鉴权成功,执行上述将身份凭证对应的用户信息发送至自动登录到服务器的第一终端的步骤。The processor 1401 identifies the identity credential, and determines that the authentication is successful, and performs the step of transmitting the user information corresponding to the identity credential to the first terminal that automatically logs in to the server.
上述详细阐述了本发明实施例提供的用户信息共享的设备,下面为了便于更好地实施本发明实施例的上述方案,相应地,下面还提供实施上述方案的系统。参见图15,是本发明的另一种实施例提供的用户信息共享的系统150,包括:第一终端1503、第二终端1501和服务器1505,其中 The foregoing describes the device for sharing user information provided by the embodiment of the present invention. In order to facilitate the implementation of the foregoing solution of the embodiment of the present invention, a system for implementing the foregoing solution is provided below. Referring to FIG. 15, a system 150 for sharing user information according to another embodiment of the present invention includes: a first terminal 1503, a second terminal 1501, and a server 1505, wherein
第一终端1503可以包括预设的服务模块和预设的社交应用群,该社交应用群可以包括第一社交应用、第二社交应用、第三社交应用等,该第一终端1503可以为上述图5至图9任意一个实施例中的第一终端50,可选的该第一终端1503还可以为上述图12所示实施例中的第一终端120;第一终端1503中的各个功能模块可以参考上述实施例中第一终端50或第一终端120的描述,这里不再赘述。The first terminal 1503 may include a preset service module and a preset social application group, and the social application group may include a first social application, a second social application, a third social application, and the like, and the first terminal 1503 may be the foregoing figure. 5 to the first terminal 50 in any one of the embodiments of FIG. 9, the optional first terminal 1503 may also be the first terminal 120 in the foregoing embodiment shown in FIG. 12; each functional module in the first terminal 1503 may be For reference to the description of the first terminal 50 or the first terminal 120 in the foregoing embodiment, details are not described herein again.
第二终端1501可以为上述图10所示实施例中的第二终端60,可选的该第二终端1501还可以为上述图13所示实施例中的第二终端130;第二终端1501中的各个功能模块可以参考上述实施例中第二终端60或第二终端130的描述,这里不再赘述。The second terminal 1501 may be the second terminal 60 in the embodiment shown in FIG. 10, and the second terminal 1501 may be the second terminal 130 in the foregoing embodiment shown in FIG. 13; For the description of the second terminal 60 or the second terminal 130 in the foregoing embodiment, the description of the second terminal 60 or the second terminal 130 in the foregoing embodiment is omitted.
服务器1505可以为上述图11实施例中的服务器70,可选的该服务器1505还可以为图14所示实施例中的服务器140;第二终端1505中的各个功能模块可以参考上述实施例中服务器70或服务器140的描述,这里不再赘述。The server 1505 may be the server 70 in the foregoing embodiment of the present invention. The server 1505 may also be the server 140 in the embodiment shown in FIG. 14. The function modules in the second terminal 1505 may refer to the server in the foregoing embodiment. The description of 70 or server 140 will not be repeated here.
综上所述,通过实施本发明实施例,第一终端可根据第二终端共享的身份凭证自动登录服务器,并在服务器上获取身份凭证对应的用户信息,可直接将用户信息推送给社交应用群中的多个社交应用,可以实现跨终端共享用户信息,可使得用户不需要在第一终端的所述社交应用群中的多个社交应用上输入所述用户信息,节省用户操作,省时便捷,同时,可使得从服务器获取的一份用户信息供多个社交应用共享,节约网络资源。In summary, by implementing the embodiment of the present invention, the first terminal can automatically log in to the server according to the identity credential shared by the second terminal, and obtain the user information corresponding to the identity credential on the server, and can directly push the user information to the social application group. The plurality of social applications can share the user information across the terminal, so that the user does not need to input the user information on multiple social applications in the social application group of the first terminal, thereby saving user operations and saving time and convenience. At the same time, a user information obtained from the server can be shared by multiple social applications, thereby saving network resources.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。 The above disclosure is only a preferred embodiment of the present invention, and of course, the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the present invention. The equivalent changes required are still within the scope of the invention.

Claims (29)

  1. 一种用户信息共享的方法,其特征在于,包括:A method for sharing user information, comprising:
    第一终端接收第二终端发送的身份凭证,所述身份凭证为所述第二终端根据在服务器上注册的用户信息得到的身份凭证;所述身份凭证与所述用户信息中的用户标识一一对应;The first terminal receives the identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to the user information registered on the server; the identity credential and the user identifier in the user information are one by one correspond;
    所述第一终端根据所述身份凭证自动登录到服务器,从所述服务器上获取所述身份凭证对应的用户信息;并将所述用户信息传送至所述第一终端预设的社交应用群,以使所述社交应用群中的各个社交应用根据所述用户信息进行社交活动。The first terminal automatically logs in to the server according to the identity credential, obtains user information corresponding to the identity credential from the server, and transmits the user information to a social application group preset by the first terminal. So that each social application in the social application group performs social activities according to the user information.
  2. 如权利要求1所述的方法,其特征在于,所述用户凭证是所述第二终端在服务器上注册所述用户信息时,由所述服务器根据所述用户信息中的用户标识来生成并向所述第二终端返回的用户凭证。The method according to claim 1, wherein the user credential is generated by the server according to the user identifier in the user information when the second terminal registers the user information on the server User credentials returned by the second terminal.
  3. 如权利要求1所述的方法,其特征在于,在所述第一终端接收所述第二终端发送的身份凭证之前,所述第一终端接收所述第二终端的配对请求,提示配对验证码,所述配对验证码用于提示用户在所述第二终端上输入所述配对验证码来完成所述配对;所述配对之后,执行所述第一终端接收所述第二终端发送的身份凭证的步骤。The method according to claim 1, wherein before the first terminal receives the identity credential sent by the second terminal, the first terminal receives a pairing request of the second terminal, and prompts a pairing verification code. The pairing verification code is used to prompt the user to input the pairing verification code on the second terminal to complete the pairing; after the pairing, the first terminal is configured to receive the identity certificate sent by the second terminal. A step of.
  4. 如权利要求1所述的方法,其特征在于,所述第一终端根据所述身份凭证自动登录到服务器,从所述服务器上获取所述身份凭证对应的用户信息包括:The method of claim 1, wherein the first terminal automatically logs in to the server according to the identity credential, and the user information corresponding to the identity credential obtained from the server includes:
    所述第一终端通过预设的服务模块根据所述身份凭证自动登录到所述服务器;之后,The first terminal automatically logs in to the server according to the identity credential through a preset service module; after that,
    所述第一终端通过所述服务模块从所述服务器获取所述身份凭证对应的用户信息。The first terminal acquires user information corresponding to the identity certificate from the server by using the service module.
  5. 如权利要求4所述的方法,其特征在于,在所述第一终端通过预设的 服务模块根据所述身份凭证自动登录到所述服务器之前,还包括:The method of claim 4, wherein the first terminal is preset Before the service module automatically logs in to the server according to the identity credential, the method further includes:
    所述服务模块根据所述身份凭证通过所述服务器进行鉴权,当所述身份凭证被所述服务器识别,则所述鉴权成功,执行所述第一终端根据所述身份凭证自动登录到服务器的步骤。The service module performs authentication by using the server according to the identity credential. When the identity credential is recognized by the server, the authentication succeeds, and the first terminal is automatically logged into the server according to the identity credential. A step of.
  6. 如权利要求1所述的方法,其特征在于,所述将所述用户信息传送至所述第一终端预设的社交应用群包括:The method of claim 1, wherein the transmitting the user information to the social application group preset by the first terminal comprises:
    所述第一终端通过预设的服务模块接收所述社交应用群发起的用于获取所述用户信息的请求;The first terminal receives, by using a preset service module, a request initiated by the social application group to obtain the user information;
    所述服务模块根据接收的所述请求直接将所述用户信息传送至所述社交应用群。The service module directly transmits the user information to the social application group according to the received request.
  7. 如权利要求6所述的方法,其特征在于,所述服务模块与所述预设的社交应用群之间建立有双向数据通道:The method according to claim 6, wherein a bidirectional data channel is established between the service module and the preset social application group:
    所述双向数据通道在所述社交应用群至所述服务模块方向上传送的是所述请求;Transmitting, in the direction of the social application group to the service module, the two-way data channel is the request;
    所述双向数据通道在所述服务模块至所述社交应用群方向上传送的是所述用户信息。The two-way data channel transmits the user information in the direction of the service module to the social application group.
  8. 如权利要求6所述的方法,其特征在于,所述请求包含请求源,所述请求源用以表征所述社交应用群中发出所述请求的社交应用,所述服务模块根据接收的所述请求直接将所述用户信息传送至所述社交应用群,包括:The method of claim 6, wherein the request includes a request source, the request source is used to represent a social application in the social application group that issues the request, the service module according to the received Requesting to directly transmit the user information to the social application group, including:
    当所述请求中仅有一个请求源时,所述服务模块将所述用户信息传送至所述请求源对应的社交应用;或When there is only one request source in the request, the service module transmits the user information to a social application corresponding to the request source; or
    当所述请求中有N个请求源时,所述服务模块通过广播方式将所述用户信息传送至所述N个请求源表征的N个社交应用;所述N为大于等于2的自然数。When there are N request sources in the request, the service module transmits the user information to N social applications characterized by the N request sources by broadcasting; the N is a natural number greater than or equal to 2.
  9. 如权利要求6所述的方法,其特征在于,所述第一终端通过预设的服 务模块接收所述社交应用群发起的用于获取所述用户信息的请求,包括:The method of claim 6 wherein said first terminal passes a predetermined service Receiving, by the service module, a request for acquiring the user information initiated by the social application group, including:
    所述第一终端通过预设的服务模块接收所述社交应用群中的社交应用根据所述身份凭证直接发起的用于获取所述用户信息的请求;所述请求中包含所述身份凭证;或Receiving, by the preset service module, the request that the social application in the social application group directly initiates according to the identity credential for acquiring the user information; the request includes the identity credential; or
    所述第一终端通过预设的服务模块向所述社交应用群中的社交应用发送共享通知,接收所述社交应用群中的社交应用通过响应所述共享通知而发起的用于获取所述用户信息的请求。The first terminal sends a sharing notification to the social application in the social application group by using a preset service module, and receiving, by the social application group in the social application group, the user that is initiated by responding to the sharing notification Request for information.
  10. 一种用户信息共享的方法,其特征在于:A method for sharing user information, characterized by:
    第二终端接收第一输入来在服务器上注册用户信息,所述用户信息包括用户标识;The second terminal receives the first input to register user information on the server, and the user information includes a user identifier;
    所述第二终端接收所述服务器返回的用户凭证,所述用户凭证是由所述服务器按预定的规则根据所述用户信息中的所述用户标识生成的;所述身份凭证与所述用户信息中的用户标识一一对应;Receiving, by the second terminal, a user credential returned by the server, where the user credential is generated by the server according to the user identifier in the user information according to a predetermined rule; the identity credential and the user information One-to-one correspondence of user IDs;
    所述第二终端发送所述用户凭证至第一终端。The second terminal sends the user credential to the first terminal.
  11. 如权利要求10所述的方法,其特征在于,在所述第二终端发送所述用户凭证至所述第一终端之前,所述第二终端向所述第一终端发送配对请求,根据所述第一终端提示的配对验证码,接收与所述配对验证码一致的第二输入来完成配对,所述配对之后,执行所述第二终端发送所述用户凭证至所述第一终端的步骤。The method of claim 10, wherein before the second terminal sends the user credential to the first terminal, the second terminal sends a pairing request to the first terminal, according to the method And a pairing verification code prompted by the first terminal, receiving a second input that is consistent with the pairing verification code to complete pairing, and after the pairing, performing the step of the second terminal sending the user credential to the first terminal.
  12. 如权利要求11所述的方法,其特征在于,在所述第二终端向所述第一终端发送配对请求之前,所述第二终端扫描当前预定的短程通信网络,接收第三输入来与所述第一终端建立短程通信连接,所述第一终端在所述短程通信网络中,之后,执行所述第二终端向所述第一终端发送配对请求的步骤。The method according to claim 11, wherein before the second terminal sends a pairing request to the first terminal, the second terminal scans a currently scheduled short-range communication network, and receives a third input The first terminal establishes a short-range communication connection, and the first terminal is in the short-range communication network, and then performs the step of the second terminal sending a pairing request to the first terminal.
  13. 一种用户信息共享的方法,其特征在于,包括:A method for sharing user information, comprising:
    服务器接收第二终端注册的用户信息,存储所述用户信息,所述用户信息 为所述第二终端通过接收输入来获取的用户信息;所述用户信息包括用户标识;The server receives the user information registered by the second terminal, and stores the user information, where the user information User information obtained by receiving input by the second terminal; the user information includes a user identifier;
    所述服务器按预定的规则根据所述用户信息中的用户标识生成身份凭证,返回所述身份凭证至所述第二终端;所述身份凭证与所述用户信息中的用户标识一一对应。And the server generates an identity credential according to the user identifier in the user information according to a predetermined rule, and returns the identity credential to the second terminal; the identity credential is in one-to-one correspondence with the user identifier in the user information.
  14. 如权利要求13所述的方法,其特征在于,所述返回所述身份凭证至所述第二终端之后,还包括:The method of claim 13, after the returning the identity credential to the second terminal, further comprising:
    所述服务器将所述身份凭证对应的用户信息发送至自动登录到所述服务器的第一终端。The server sends the user information corresponding to the identity credential to the first terminal that automatically logs in to the server.
  15. 如权利要求14所述的方法,其特征在于,在所述返回所述身份凭证至所述第二终端之后,所述服务器将所述身份凭证对应的用户信息发送至自动登录到所述服务器的第一终端之前,还包括:The method according to claim 14, wherein after the returning the identity credential to the second terminal, the server sends user information corresponding to the identity credential to automatically log in to the server. Before the first terminal, it also includes:
    所述服务器接收所述第一终端发送的所述身份凭证,并根据所述身份凭证进行鉴权;Receiving, by the server, the identity credential sent by the first terminal, and performing authentication according to the identity credential;
    当所述服务器识别出所述身份凭证,则鉴权成功,执行所述服务器将所述身份凭证对应的用户信息发送至自动登录到所述服务器的第一终端的步骤。When the server identifies the identity credential, the authentication succeeds, and the step of the server transmitting the user information corresponding to the identity credential to the first terminal automatically logging in to the server is performed.
  16. 一种用户信息共享的第一终端,其特征在于,包括:A first terminal for sharing user information, comprising:
    预设的社交应用群,用于进行社交活动;a preset social application group for social activities;
    第一通信模块,用于接收第二终端发送的身份凭证,所述身份凭证为所述第二终端根据在服务器上注册的用户信息得到的身份凭证;所述身份凭证与所述用户信息中的用户标识一一对应;a first communication module, configured to receive an identity credential sent by the second terminal, where the identity credential is an identity credential obtained by the second terminal according to user information registered on the server; the identity credential and the user information One-to-one correspondence of user IDs;
    第二通信模块,用于根据所述身份凭证自动登录到服务器,从所述服务器上获取所述身份凭证对应的用户信息发送模块;a second communication module, configured to automatically log in to the server according to the identity credential, and obtain a user information sending module corresponding to the identity credential from the server;
    第三通信模块,用于将所述用户信息传送至所述社交应用群。And a third communication module, configured to transmit the user information to the social application group.
  17. 如权利要求16所述的第一终端,其特征在于,还包括配对模块,用于在所述第一通信模块执行所述接收第二终端发送的身份凭证的步骤之前,接 收所述第二终端的配对请求,提示配对验证码,所述配对验证码用于提示用户在所述第二终端上输入所述配对验证码来完成所述配对;所述配对之后,触发所述第一通信模块执行所述接收第二终端发送的身份凭证的步骤。The first terminal according to claim 16, further comprising a pairing module, configured to: before the step of the first communication module performing the receiving the identity credential sent by the second terminal Receiving a pairing request of the second terminal, prompting a pairing verification code, the pairing verification code is used to prompt the user to input the pairing verification code on the second terminal to complete the pairing; after the pairing, triggering the pairing The first communication module performs the step of receiving the identity credential sent by the second terminal.
  18. 如权利要求16所述的第一终端,其特征在于,所述第二通信模块包括:The first terminal of claim 16, wherein the second communication module comprises:
    自动登录模块,用于通过预设的服务模块根据所述身份凭证自动登录到所述服务器;An automatic login module, configured to automatically log in to the server according to the identity certificate by using a preset service module;
    信息获取模块,用于通过所述服务模块从所述服务器获取所述身份凭证对应的用户信息。And an information obtaining module, configured to obtain, by using the service module, user information corresponding to the identity certificate from the server.
  19. 如权利要求18所述的第一终端,其特征在于,所述第二通信模块还包括鉴权模块,用于通过预设的服务模块根据所述身份凭证在所述服务器进行鉴权,当所述身份凭证被所述服务器识别,则所述鉴权成功,触发所述自动登录模块执行所述通过预设的服务模块根据所述身份凭证自动登录到所述服务器的步骤。The first terminal according to claim 18, wherein the second communication module further comprises an authentication module, configured to perform authentication on the server according to the identity credential by using a preset service module, If the identity credential is recognized by the server, the authentication succeeds, and the automatic login module is triggered to perform the step of automatically logging in to the server according to the identity credential by using a preset service module.
  20. 如权利要求16所述的第一终端,其特征在于,所述第三通信模块包括:The first terminal according to claim 16, wherein the third communication module comprises:
    接收请求模块,用于通过预设的服务模块接收所述社交应用群发起的用于获取所述用户信息的请求;Receiving a requesting module, configured to receive, by using a preset service module, a request initiated by the social application group for acquiring the user information;
    信息发送模块,用于通过所述服务模块直接将所述用户信息传送至所述社交应用群。And an information sending module, configured to directly transmit the user information to the social application group by using the service module.
  21. 如权利要求20所述的第一终端,其特征在于,所述信息发送模块包括:The first terminal according to claim 20, wherein the information sending module comprises:
    第一发送模块,当所述请求中仅有一个请求源时,用于通过所述服务模块将所述用户信息传送至所述请求源对应的社交应用;或a first sending module, configured to transmit the user information to a social application corresponding to the request source by using the service module when there is only one request source in the request; or
    第二发送模块,当所述请求中有N个请求源时,用于通过所述服务模块 通过广播方式将所述用户信息传送至所述N个请求源表征的N个社交应用;所述N为大于等于2的自然数。a second sending module, configured to pass the service module when there are N request sources in the request Transmitting the user information to N social applications characterized by the N request sources by broadcast; the N is a natural number greater than or equal to 2.
  22. 如权利要求20所述的第一终端,其特征在于,所述接收请求模块包括:The first terminal according to claim 20, wherein the receiving request module comprises:
    第一接收模块,用于通过预设的服务模块接收所述社交应用群中的社交应用根据所述身份凭证直接发起的用于获取所述用户信息的请求;所述请求中包含所述身份凭证;或a first receiving module, configured to receive, by using a preset service module, a request that is sent by the social application in the social application group according to the identity credential for acquiring the user information; the request includes the identity credential ;or
    第二接收模块,用于通过所述服务模块向所述社交应用群中的社交应用发送共享通知,接收所述社交应用群中的所述社交应通过响应所述共享通知而发起的用于获取所述用户信息的请求。a second receiving module, configured to send, by using the service module, a sharing notification to a social application in the social application group, and receiving, by the service application group, the social interaction that is initiated by responding to the sharing notification The request for the user information.
  23. 一种用户信息共享的第二终端,其特征在于,包括:A second terminal for sharing user information, comprising:
    信息注册模块,用于接收第一输入来在服务器上注册用户信息,所述用户信息包括用户标识;An information registration module, configured to receive a first input to register user information on a server, where the user information includes a user identifier;
    凭证接收模块,用于接收所述服务器返回的用户凭证,所述用户凭证为所述服务器按预定的规则根据所述用户信息中的用户标识来产生的;所述身份凭证与所述用户信息中的用户标识一一对应;a voucher receiving module, configured to receive a user credential returned by the server, where the user credential is generated by the server according to a user identifier in the user information according to a predetermined rule; the identity credential and the user information One-to-one correspondence of user IDs;
    凭证发送模块,用于发送所述用户凭证至所述第一终端。And a voucher sending module, configured to send the user credential to the first terminal.
  24. 如权利要求23所述的第二终端,其特征在于,还包括配对模块,用于在所述凭证发送模块执行所述发送所述用户凭证至所述第一终端的步骤之前,向所述第一终端发送配对请求,根据所述第一终端提示的配对验证码,接收与所述配对验证码一致的第二输入来完成配对,所述配对之后,触发所述凭证发送模块执行所述发送所述用户凭证至所述第一终端的步骤。The second terminal according to claim 23, further comprising a pairing module, configured to: before said step of transmitting said user credential to said first terminal by said credential transmitting module Transmitting, by a terminal, a pairing request, according to the pairing verification code prompted by the first terminal, receiving a second input that is consistent with the pairing verification code to complete pairing, and after the pairing, triggering the credential sending module to execute the sending station The step of describing the user credential to the first terminal.
  25. 如权利要求24所述的第二终端,其特征在于,还包括建立连接模块,用于在所述配对模块执行所述向所述第一终端发送配对请求的步骤之前,所述第二终端扫描当前预定的短程通信网络,接收第三输入来与所述第一终端建立 短程通信连接,所述第一终端在所述短程通信网络中,之后,触发所述配对模块执行所述向所述第一终端发送配对请求的步骤。The second terminal according to claim 24, further comprising a connection establishing module, configured to scan the second terminal before the step of the pairing module performing the sending a pairing request to the first terminal a currently scheduled short-range communication network receiving a third input to establish with the first terminal a short-range communication connection, wherein the first terminal is in the short-range communication network, and then the pairing module is triggered to perform the step of sending a pairing request to the first terminal.
  26. 一种用户信息共享的服务器,其特征在于,包括:A server for sharing user information, comprising:
    信息存储模块,用于接收第二终端注册的用户信息,存储所述用户信息,所述用户信息为所述第二终端通过接收输入来获取的用户信息;所述用户信息包括用户标识;An information storage module, configured to receive user information registered by the second terminal, and store the user information, where the user information is user information obtained by the second terminal by receiving input; the user information includes a user identifier;
    凭证生成模块,用于按预定的规则根据所述用户信息中的用户标识生成身份凭证,返回所述身份凭证至所述第二终端;所述身份凭证与所述用户信息中的用户标识一一对应。a credential generating module, configured to generate an identity credential according to a user identifier in the user information according to a predetermined rule, and return the credential credential to the second terminal; the identity credential and the user identifier in the user information are one by one correspond.
  27. 如权利要求26所述的服务器,其特征在于,还包括信息发送模块,用于在所述凭证生成模块执行所述返回所述身份凭证至所述第二终端的步骤之后,将所述身份凭证对应的用户信息发送至自动登录到所述服务器的第一终端。The server according to claim 26, further comprising an information transmitting module, configured to: after said credential generating module performs said step of returning said identity credential to said second terminal, said identity credential The corresponding user information is sent to the first terminal that is automatically logged into the server.
  28. 如权利要求27所述的服务器,其特征在于,还包括鉴权模块,用于在所述凭证生成模块执行所述返回所述身份凭证至所述第二终端的步骤之后,所述信息发送模块执行所述将所述身份凭证对应的用户信息发送至自动登录到所述服务器的第一终端的步骤之前,The server according to claim 27, further comprising an authentication module, wherein said information transmitting module is configured after said credential generating module performs said step of returning said identity credential to said second terminal Before performing the step of transmitting the user information corresponding to the identity credential to the first terminal automatically logging in to the server,
    对所述第一终端发送的所述身份凭证进行鉴权;当识别出所述身份凭证,则鉴权成功,触发所述信息发送模块执行所述将所述身份凭证对应的用户信息发送至自动登录到所述服务器的第一终端的步骤。And authenticating the identity credential sent by the first terminal; if the identity credential is identified, the authentication succeeds, and the information sending module is triggered to perform the sending the user information corresponding to the identity credential to the automatic The step of logging in to the first terminal of the server.
  29. 一种用户信息共享的系统,其特征在于,包括第一终端、第二终端和服务器,其中A system for sharing user information, comprising: a first terminal, a second terminal, and a server, wherein
    所述第一终端为如权利要求16-22任一项所述的用户信息共享的第一终端;The first terminal is a first terminal for sharing user information according to any one of claims 16-22;
    所述第二终端为如权利要求23-25任一项所述的用户信息共享的第二终端;The second terminal is a second terminal for sharing user information according to any one of claims 23-25;
    所述服务器为如权利要求26-28任一项所述的用户信息共享的服务器。 The server is a server for sharing user information according to any one of claims 26-28.
PCT/CN2015/073656 2014-07-02 2015-03-04 User information sharing method, device and system WO2016000462A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410312927.9 2014-07-02
CN201410312927.9A CN104125485B (en) 2014-07-02 2014-07-02 A kind of user profile shared method, equipment and system

Publications (1)

Publication Number Publication Date
WO2016000462A1 true WO2016000462A1 (en) 2016-01-07

Family

ID=51770728

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/073656 WO2016000462A1 (en) 2014-07-02 2015-03-04 User information sharing method, device and system

Country Status (2)

Country Link
CN (1) CN104125485B (en)
WO (1) WO2016000462A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111373709A (en) * 2017-09-28 2020-07-03 深圳传音通讯有限公司 Terminal pairing method, server and terminal
WO2022161071A1 (en) * 2021-01-29 2022-08-04 华为技术有限公司 Group member or friend adding method, and electronic device

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125485B (en) * 2014-07-02 2018-03-16 深圳创维数字技术有限公司 A kind of user profile shared method, equipment and system
CN105847272A (en) * 2016-04-21 2016-08-10 乐视控股(北京)有限公司 Method and device for personal information exchange
CN106611372B (en) * 2016-12-27 2021-01-08 深圳微众信用科技股份有限公司 Credit investigation data query method and system
CN108092992A (en) * 2017-12-29 2018-05-29 新开普电子股份有限公司 A kind of POS terminal Activiation method
CN109413096B (en) * 2018-11-30 2019-08-09 北京海泰方圆科技股份有限公司 A kind of login method and device more applied
CN111625495B (en) * 2020-04-30 2023-12-29 未来穿戴技术有限公司 Method for calling archived data, electronic device and readable storage medium
CN114792004A (en) * 2021-01-26 2022-07-26 华为云计算技术有限公司 Identity information processing method, equipment and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118355A (en) * 2013-01-17 2013-05-22 北京奇虎科技有限公司 Display method of mobile terminal user information, mobile terminals and service system
US20140165165A1 (en) * 2012-12-06 2014-06-12 Audible, Inc. Device Credentialing for Network Access
CN103905401A (en) * 2012-12-27 2014-07-02 中国移动通信集团公司 Identity authentication method and device
CN104125485A (en) * 2014-07-02 2014-10-29 深圳创维数字技术股份有限公司 Method, equipment and system for sharing user information

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426009A (en) * 2007-10-31 2009-05-06 中国移动通信集团公司 Identity management platform, service server, uniform login system and method
CN101309143A (en) * 2008-06-24 2008-11-19 宇龙计算机通信科技(深圳)有限公司 Method and system for interactive sharing data between mobile terminals
CN102843311B (en) * 2012-07-30 2015-07-29 北京网蜜在线网络有限公司 Based on information fusion method and the server of SNS
CN102868595B (en) * 2012-09-17 2015-06-03 腾讯科技(深圳)有限公司 Method for realizing interaction among terminals, and related equipment and system
CN103825865A (en) * 2012-11-19 2014-05-28 镇江金钛软件有限公司 Multi-point login communication method, multi-point login communication device, multi-point login communication system and user terminal
CN103118032B (en) * 2013-03-01 2015-09-30 北京奇艺世纪科技有限公司 Method, terminal and server that a kind of terminal login account is synchronous
CN103281327B (en) * 2013-06-06 2016-06-15 百度在线网络技术(北京)有限公司 The method of many equipment secure log, system and cloud server
CN103414740B (en) * 2013-07-01 2017-12-12 深圳Tcl新技术有限公司 A kind of private cloud account configuration method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140165165A1 (en) * 2012-12-06 2014-06-12 Audible, Inc. Device Credentialing for Network Access
CN103905401A (en) * 2012-12-27 2014-07-02 中国移动通信集团公司 Identity authentication method and device
CN103118355A (en) * 2013-01-17 2013-05-22 北京奇虎科技有限公司 Display method of mobile terminal user information, mobile terminals and service system
CN104125485A (en) * 2014-07-02 2014-10-29 深圳创维数字技术股份有限公司 Method, equipment and system for sharing user information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111373709A (en) * 2017-09-28 2020-07-03 深圳传音通讯有限公司 Terminal pairing method, server and terminal
CN111373709B (en) * 2017-09-28 2023-05-23 深圳传音通讯有限公司 Terminal pairing method, server and terminal
WO2022161071A1 (en) * 2021-01-29 2022-08-04 华为技术有限公司 Group member or friend adding method, and electronic device

Also Published As

Publication number Publication date
CN104125485B (en) 2018-03-16
CN104125485A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
WO2016000462A1 (en) User information sharing method, device and system
US11810072B2 (en) Method, apparatus, and computer program product for authorizing and authenticating user communication within an enterprise group-based communication platform
US10475023B2 (en) Method and apparatus of processing symbology interactions between mobile stations and a control system
US20200177599A1 (en) Network connection method, hotspot terminal and management terminal
US9386445B2 (en) Electronic device, personal cloud apparatus, personal cloud system and method for registering personal cloud apparatus in user portal server thereof
US11637829B2 (en) Systems, methods, and media for authenticating multiple devices
EP3425566B1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
US9967099B2 (en) Method and apparatus for providing information
US20220231870A1 (en) Multiplexing message distribution within group-based communication system
US11941103B2 (en) Multidevice user authentication in group-based communication systems
US20190089693A1 (en) Systems and methods for authenticating internet-of-things devices
KR20130009624A (en) Method and system for use in providing network services interchange
WO2016004768A1 (en) Social relation management method, device and system
JP2013251835A (en) Information processing apparatus, information processing system, information processing method, and program
WO2015117362A1 (en) Method and device for sharing personal information on terminal
US9622075B2 (en) System and method for adaptive multifactor authentication
US11575530B2 (en) Systems and methods for call initiation based on mobile device proximity
KR20160123121A (en) Multi-object concurrent control system and method for concurrent controlling multi-object
JP2007288376A (en) Authentication system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15814227

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 26/05/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15814227

Country of ref document: EP

Kind code of ref document: A1