Credential registration, login authentication method of application program, electronic device

By embedding an authenticator within the application, generating and managing credential information using a web authentication interface, and employing biometric authentication, the security risks and cumbersome operation of password authentication methods are resolved, resulting in a more secure and user-friendly authentication solution.

CN116800477BActive Publication Date: 2026-11-27阿里巴巴(上海)有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310602039.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-23
Publication Date
2026-11-27
Estimated Expiration
2043-05-23

AI Technical Summary

Technical Problem

In existing technologies, password authentication methods pose security risks when faced with malicious attacks, and the authentication process is cumbersome when switching between different terminal devices, which affects the user experience.

Method used

By embedding an authenticator within the application, generating and managing credential information using a web authentication interface, and employing biometric authentication, reliance on user input is reduced.

Benefits of technology

It improves application authentication security while reducing authentication difficulty, providing a more user-friendly authentication method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116800477B_ABST
    Figure CN116800477B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a credential registration method and device of an application program, a login authentication method and device of an application program, a service component providing method and device, a Web authentication interface implementing method and device, a configuration method and device for credential sharing, a computer readable storage medium, and an electronic device. The method comprises: a client of a first application program providing a verifier process with an identity verifier built-in; receiving a challenge value generated by a server of the first application program in response to a registration request submitted by a target user, sending the challenge value to the verifier process by calling a Web authentication interface, generating, by the identity verifier, credential information associated with the target user under the first application program, locally saving a private key in the credential information, signing the challenge value by using the private key, and sending a public key in the credential information and the signed challenge value to the server. In this way, a Web authentication function can be implemented on the application program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing technology, and in particular to a method and apparatus for credential registration of an application, a method and apparatus for login authentication of an application, a method and apparatus for providing service components, a method and apparatus for implementing a Web authentication interface, a method and apparatus for credential registration for local area network login, a method and apparatus for login to a local area network, a configuration method and apparatus for credential sharing, a credential registration method and apparatus, a login authentication method and apparatus, a computer-readable storage medium, and an electronic device. Background Technology

[0002] Currently, password authentication is the most common and direct method of identity verification in our daily lives. However, it is susceptible to password leaks when faced with malicious attacks, such as phishing and credential stuffing attacks, posing certain security risks. Furthermore, since many users habitually use the same password for multiple websites, a single password leak can potentially affect multiple websites.

[0003] To enhance authentication security, dynamic tokens can be generated and used across different devices for authentication. For example, if a user wants to log in via a computer application, they first need to install a corresponding application that generates dynamic tokens on their mobile device. During login authentication, the user can first launch the mobile application to obtain a dynamically generated token, and then, within the token's validity period, manually enter the token on the login authentication page of the computer application. The backend server then uses the token to authenticate the user's identity.

[0004] While this approach can improve identity authentication security, switching between different terminals can lead to cumbersome operations and long authentication chains, thus affecting the user experience. Summary of the Invention

[0005] This application provides a method and apparatus for credential registration of an application, a method and apparatus for login authentication of an application, a method and apparatus for providing service components, a method and apparatus for implementing a Web authentication interface, a method and apparatus for credential registration for local area network login, a method and apparatus for local area network login, a configuration method and apparatus for credential sharing, a credential registration method and apparatus, a login authentication method and apparatus, a computer-readable storage medium, and an electronic device, which can implement Web authentication functions on applications, thereby improving authentication security and reducing authentication difficulty.

[0006] This application provides the following solution:

[0007] A method for credential registration in an application, comprising:

[0008] The client of the first application provides a validator process with a built-in authenticator;

[0009] Upon receiving the challenge value generated by the server of the first application in response to the registration request submitted by the target user, the challenge value is sent to the verifier process by calling the Web authentication interface. The verifier generates the credential information associated with the target user under the first application, saves the private key in the credential information locally, and signs the challenge value using the private key.

[0010] The public key in the credential information and the challenge value obtained after signing are sent to the server.

[0011] The step of sending the challenge value to the verifier process by calling the Web authentication interface includes:

[0012] When the verifier process detects that the client is calling the Web authentication interface, it establishes a connection with the Web authentication interface and obtains the challenge value submitted by the client to the Web authentication interface.

[0013] The method further includes:

[0014] If it is determined that the number of users registering for the first application with credentials on the terminal device associated with the first application does not exceed a preset number, the registration request submitted by the target user is sent to the server, and the server generates the challenge value.

[0015] A login authentication method for an application, comprising:

[0016] The client of the first application provides a validator process with a built-in authenticator;

[0017] Upon receiving a challenge value generated by the server of the first application in response to a login request submitted by the target user, the challenge value is sent to the verifier process by calling a Web authentication interface. The verifier obtains the private key from the credential information associated with the target user under the first application and signs the challenge value using the private key. The credential information is generated by the client based on the registration request submitted by the target user, and the public key in the credential information is sent to the server for storage.

[0018] The challenge value obtained by the authenticator after signing is sent to the server.

[0019] A method for providing a service component, comprising:

[0020] A service component for credential registration is provided. This service component provides a validator process with a built-in authenticator. After being deployed on the client of the first application, the service component performs the following processing:

[0021] Upon receiving the challenge value generated by the server of the first application in response to the registration request submitted by the target user, the challenge value is sent to the verifier process by calling the Web authentication interface. The verifier generates the credential information associated with the target user under the first application, saves the private key in the credential information locally, and signs the challenge value using the private key.

[0022] The public key in the credential information and the challenge value obtained after signing are sent to the server.

[0023] A method for providing a service component, comprising:

[0024] A service component for login authentication is provided. This service component provides an authenticator process with a built-in authenticator. After being deployed on the client of the first application, the service component performs the following processing:

[0025] Upon receiving a challenge value generated by the server of the first application in response to a login request submitted by a target user, the challenge value is sent to the verifier process by calling a Web authentication interface. The verifier obtains the private key from the credential information associated with the target user under the first application and signs the challenge value using the private key. The credential information is generated by a service component for credential registration deployed on the client based on the registration request submitted by the target user, and the public key in the credential information is sent to the server for storage.

[0026] The challenge value obtained by the authenticator after signing is sent to the server.

[0027] A method for implementing a web authentication interface, comprising:

[0028] The interface layer implementation of the Web authentication interface is overlaid into the underlying implementation of the service component. When the service component listens for the interface layer accepting the call, it obtains the challenge value submitted to the Web authentication interface and starts the authenticator built into the service component to perform credential registration or login authentication.

[0029] A credential registration method for local area network login includes:

[0030] The client of the application used to implement local area network login provides an authenticator process with a built-in authenticator;

[0031] When it is determined that the terminal device associated with the application has registered the biometric information of the target user, the authenticator process is initiated to register credentials and obtain the credential information associated with the target user under the application.

[0032] A local area network login method includes:

[0033] The client of the application used to implement local area network login provides an authenticator process with a built-in authenticator;

[0034] The biometric information of the user requesting local area network login is collected and compared with the biometric information of the target user registered on the terminal device associated with the application;

[0035] When the biometric information verification is successful, the authenticator process starts the identity verification device to perform login authentication, and accesses the local area network when the login authentication is successful.

[0036] A configuration method for credential sharing includes:

[0037] Obtain at least two applications that have a binding relationship, said at least two applications being installed on the terminal device associated with the target user;

[0038] For service components deployed in the at least two applications, the same shared authenticator is configured. The shared authenticator is built into the authenticator process provided by the service component. When the authenticator process obtains a challenge value submitted to the Web authentication interface, it starts the shared authenticator to perform credential registration or login authentication.

[0039] A credential registration method, comprising:

[0040] From at least two applications that are associated with the target user and have a binding relationship, determine a first application, wherein the clients of the at least two applications respectively provide a first authenticator process with the same shared authenticator built in;

[0041] The shared authenticator is initiated through the first authenticator process provided by the client of the first application to register credentials and obtain the shared credential information associated with the target user under the at least two applications. The shared credential information includes a shared public key and a shared private key.

[0042] A login authentication method, comprising:

[0043] The client of the second application provides a first authenticator process with a built-in shared authenticator. The second application belongs to at least two applications that are associated with the target user and have a binding relationship. The first authenticator processes provided by the clients of the at least two applications each have the same built-in shared authenticator.

[0044] The shared authenticator is started through the first authenticator process provided by the client of the second application, and the shared private key in the shared credential information associated with the target user under the at least two applications is obtained to perform login authentication. The shared credential information is generated by the client of the first application among the at least two applications.

[0045] The client of the second application also provides a second authenticator process with a built-in private authenticator, and the method further includes:

[0046] The shared authenticator and the private authenticator are provided as options to the target user;

[0047] When it is determined that the shared authenticator will be used to authenticate the target user's login, the shared authenticator is started through the first authenticator process.

[0048] A credential registration device for an application, applied to a client of a first application, the device comprising:

[0049] A validator process providing unit for providing a validator process with a built-in authenticator;

[0050] The credential information generation unit is used to receive the challenge value generated by the server of the first application in response to the registration request submitted by the target user, send the challenge value to the verifier process by calling the Web authentication interface, generate credential information associated with the target user under the first application by the verifier, store the private key in the credential information locally, and sign the challenge value using the private key.

[0051] The credential information sending unit is used to send the public key in the credential information and the challenge value obtained after signing to the server.

[0052] A login authentication device for an application, applied to a client of a first application, the device comprising:

[0053] A validator process providing unit for providing a validator process with a built-in authenticator;

[0054] The credential information acquisition unit is used to receive a challenge value generated by the server of the first application in response to a login request submitted by a target user, and send the challenge value to the verifier process by calling a Web authentication interface. The verifier process obtains the private key from the credential information associated with the target user under the first application and signs the challenge value using the private key. The credential information is generated by the client based on the registration request submitted by the target user, and the public key in the credential information is sent to the server for storage.

[0055] The challenge value sending unit is used to send the signed challenge value obtained by the authenticator to the server.

[0056] A service component providing apparatus, comprising:

[0057] A service component providing unit is configured to provide a service component for credential registration. The service component provides a validator process with a built-in authenticator. After being deployed on the client of the first application, the service component performs the following processing:

[0058] Upon receiving the challenge value generated by the server of the first application in response to the registration request submitted by the target user, the challenge value is sent to the verifier process by calling the Web authentication interface. The verifier generates the credential information associated with the target user under the first application, saves the private key in the credential information locally, and signs the challenge value using the private key.

[0059] The public key in the credential information and the challenge value obtained after signing are sent to the server.

[0060] A service component providing apparatus, comprising:

[0061] A service component providing unit is used to provide a service component for login authentication. The service component provides a validator process with a built-in authenticator. After the service component is deployed on the client of the first application, it performs the following processing:

[0062] Upon receiving a challenge value generated by the server of the first application in response to a login request submitted by a target user, the challenge value is sent to the verifier process by calling a Web authentication interface. The verifier obtains the private key from the credential information associated with the target user under the first application and signs the challenge value using the private key. The credential information is generated by a service component for credential registration deployed on the client based on the registration request submitted by the target user, and the public key in the credential information is sent to the server for storage.

[0063] The challenge value obtained by the authenticator after signing is sent to the server.

[0064] A web authentication interface implementation device, comprising:

[0065] The socket unit is used to socket the interface layer implementation of the Web authentication interface to the underlying implementation of the service component. When the service component listens for the interface layer accepting the call, it obtains the challenge value submitted to the Web authentication interface and starts the authenticator built into the service component to perform credential registration or login authentication.

[0066] A credential registration device for local area network (LAN) login, applied to a client of an application used to implement LAN login, the device comprising:

[0067] A validator process providing unit for providing a validator process with a built-in authenticator;

[0068] The credential registration unit is used to determine that when the terminal device associated with the application has registered the biometric information of the target user, it initiates the identity verification process through the verifier process to perform credential registration and obtain the credential information associated with the target user under the application.

[0069] A local area network (LAN) login device is used on a client of an application for implementing LAN login, the device comprising:

[0070] A validator process providing unit for providing a validator process with a built-in authenticator;

[0071] The biometric information comparison unit is used to collect the biometric information of the user requesting local area network login and compare it with the biometric information of the target user registered on the terminal device associated with the application.

[0072] The login authentication unit is used to determine that when the biometric information is verified, to start the identity authenticator through the verifier process to perform login authentication, and to access the local area network when the login authentication is successful.

[0073] A configuration device for credential sharing, comprising:

[0074] A binding relationship acquisition unit is used to acquire at least two applications with a binding relationship, wherein the at least two applications are installed on the terminal device associated with the target user;

[0075] An authenticator configuration unit is used to configure the same shared authenticator for service components deployed in the at least two applications. The shared authenticator is built into the authenticator process provided by the service component. When the authenticator process obtains a challenge value submitted to the Web authentication interface, it starts the shared authenticator to perform credential registration or login authentication.

[0076] A credential registration device, comprising:

[0077] An application determination unit is used to determine a first application from at least two applications that are associated with a target user and have a binding relationship, wherein the clients of the at least two applications respectively provide a first authenticator process with the same shared authenticator built in;

[0078] The credential registration unit is used to initiate the shared authenticator for credential registration through the first authenticator process provided by the client of the first application, and obtain the shared credential information associated with the target user under the at least two applications, wherein the shared credential information includes a shared public key and a shared private key.

[0079] A login authentication device, applied to a client of a second application, the device comprising:

[0080] A validator process providing unit is used to provide a first validator process with a built-in shared authenticator, wherein the second application belongs to at least two applications that are associated with the target user and have a binding relationship, and the first validator processes provided by the clients of the at least two applications respectively have the same shared authenticator built-in.

[0081] The login authentication unit is used to start the shared authenticator through the first authenticator process provided by the client of the second application, obtain the shared private key in the shared credential information associated with the target user under the at least two applications, and perform login authentication. The shared credential information is generated by the client of the first application among the at least two applications.

[0082] A computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of any of the preceding methods.

[0083] An electronic device, comprising:

[0084] One or more processors; and

[0085] A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of any of the preceding methods.

[0086] According to the specific embodiments provided in this application, the following technical effects are disclosed:

[0087] In this embodiment, a service component for implementing Web authentication can be provided. When this service component is installed and deployed on an application, Web authentication can be implemented on the application. In this way, the advantage of Web authentication—which allows login via biometrics without requiring users to enter an account and password—can be applied to application login authentication, thereby improving application authentication security while reducing the difficulty of authentication.

[0088] Specifically, the interface layer implementation of the Web authentication interface can be overlaid into the underlying implementation of the service component provided in this embodiment. In this way, the service component can monitor the calls to the Web authentication interface, and upon determining that the interface layer accepts the call, activate the service component's built-in authenticator, sending the challenge value transmitted through the Web authentication interface to the authenticator for credential registration or login authentication. Based on this interface modification scheme, a new and more user-friendly authentication method can be implemented in the application.

[0089] Of course, any product implementing this application does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description

[0090] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0091] Figure 1 This is a diagram illustrating web authentication via a browser;

[0092] Figure 2 This is a flowchart of the credential registration method for the application provided in this embodiment;

[0093] Figure 3 This is a flowchart of the login authentication method for the application provided in this application embodiment;

[0094] Figure 4 This is a flowchart of a credential registration method for local area network login provided in an embodiment of this application;

[0095] Figure 5 This is a flowchart of the local area network login method provided in the embodiments of this application;

[0096] Figure 6This is a flowchart of a configuration method for credential sharing provided in an embodiment of this application;

[0097] Figure 7 This is a flowchart of the credential registration method provided in the embodiments of this application;

[0098] Figure 8 This is a flowchart of the login authentication method provided in the embodiments of this application;

[0099] Figure 9 This is a schematic diagram of the credential registration device for the application provided in this embodiment of the application;

[0100] Figure 10 This is a schematic diagram of the login authentication device for the application provided in this application embodiment;

[0101] Figure 11 This is a schematic diagram of a credential registration device for local area network login provided in an embodiment of this application;

[0102] Figure 12 This is a schematic diagram of the local area network login device provided in the embodiments of this application;

[0103] Figure 13 This is a schematic diagram of a configuration device for credential sharing provided in an embodiment of this application;

[0104] Figure 14 This is a schematic diagram of the credential registration device provided in the embodiments of this application;

[0105] Figure 15 This is a schematic diagram of the login authentication device provided in the embodiments of this application;

[0106] Figure 16 This is a schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0107] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0108] As people's awareness of information security gradually increases, the requirements for login authentication are also rising. Users want both enhanced authentication security and reduced authentication difficulty. Given these user demands, how to solve the problems of cumbersome operations and long authentication chains in the existing application (APP) login authentication process, and provide a more user-friendly identity authentication method, has become a technical problem that needs to be solved by those skilled in the art.

[0109] During their research, the inventors discovered that Web Authentication (WebAuthn, a web standard released by the World Wide Web Consortium) can enable login authentication via biometrics without requiring users to enter usernames and passwords. However, WebAuthn is only applicable to web applications, used for credential registration and login authentication within those applications.

[0110] See Figure 1 The diagram shows that the terminal device has Browser 1 and Browser 2 installed. When a user accesses Website 1, which supports WebAuthn authentication, through Browser 1, they can register credentials on Website 1. Subsequently, they can log in and authenticate on Website 1 based on the registered credentials. The credential registration process can be represented as follows:

[0111] First, browser 1 can send the registration request submitted by the user to the server of website 1, and receive the challenge value randomly generated by the server in response to the registration request.

[0112] Secondly, browser 1 can call the WebAuthentication API to pass the challenge value and other parameters (such as website domain, user identity information, etc.) to the authenticator built into browser 1. The authenticator can be understood as an abstract functional model that can perform cryptographic operations; it can be physical or virtual.

[0113] Next, the authenticator generates a public and private key pair based on the parameters transmitted by browser 1, which serves as the credential information 1 obtained by the user through browser 1 when registering on website 1. In practical applications, the private key can be stored locally, for example, in the security module of the terminal device; alternatively, the private key can be used to sign the challenge value, and the public key and the signed challenge value can be sent to the server through browser 1.

[0114] Finally, the server verifies the validity of the signed challenge value using the public key, and stores the public key and user identity information in the database after successful verification.

[0115] To implement WebAuthn authentication on an app, this embodiment modifies the existing Web Authentication API interface by overlaying its interface layer implementation onto the underlying implementation of the service component provided in this embodiment—that is, overlaying it into the protocol that implements the service component's functionality. This underlying implementation can monitor the Web Authentication API call activity. Upon determining that the interface layer accepts the call, it obtains the challenge value submitted to the Web Authentication API and initiates the service component's built-in authenticator for credential registration or login authentication. In other words, when the Web Authentication API interface is called, only the API interface layer is invoked; the underlying implementation of the service component is actually invoked, thus enabling Web authentication on apps where this service component is deployed.

[0116] As an example, this application embodiment can provide a service component for credential registration. This service component can provide a validator process with a built-in authenticator. After deploying the service component on the client of a first application, the validator process can monitor the calls to the Web authentication interface and intercept parameters passed through the Web authentication interface (e.g., at least including a challenge value generated by the server of the first application in response to a registration request submitted by a target user). It then initiates the authenticator to generate credential information associated with the target user under the first application. The intercepted parameters can be determined according to the credential registration requirements, and this application embodiment does not limit this.

[0117] As another example, this application embodiment can provide a service component for login authentication. This service component can provide a validator process with a built-in authenticator. After the service component is deployed on the client of a first application, the validator process can monitor the calls to the Web authentication interface and intercept parameters passed through the Web authentication interface (e.g., at least including a challenge value generated by the server of the first application in response to the login request submitted by the target user). It then activates the authenticator to obtain the private key from the credential information associated with the target user under the first application and performs login authentication. The intercepted parameters can be determined according to the login authentication requirements, and this application embodiment does not limit this.

[0118] The first application can be an app installed on the terminal device associated with the target user.

[0119] It should be noted that the service component for credential registration and the service component for login authentication can exist separately and be deployed independently on the client of the first application, as long as they can access the same authenticator; or, they can be integrated together, that is, packaged into a single service component to implement the two functions of credential registration and login authentication.

[0120] In practical applications, service components can be manifested as SDKs (Software Development Kits) that can be loaded into applications.

[0121] See Figure 2 The flowchart shown illustrates the application credential registration method provided in this embodiment, which may include:

[0122] S201: The client of the first application provides an authenticator process with a built-in authenticator.

[0123] As an example, the service component for credential registration provided in this application embodiment can be loaded on the client of the first application, enabling the client to provide a validator process with a built-in authenticator to achieve credential registration.

[0124] S202: Upon receiving the challenge value generated by the server of the first application in response to the registration request submitted by the target user, the challenge value is sent to the verifier process by calling the Web authentication interface. The verifier generates the credential information associated with the target user under the first application, saves the private key in the credential information locally, and signs the challenge value using the private key.

[0125] As an example, after the target user launches the client of the first application on the terminal device, the client can provide the target user with a credential registration page. After obtaining the registration request submitted by the target user through the operation options provided on the credential registration page, it can be sent to the server of the first application.

[0126] In one implementation, the client can provide the credential registration page only after confirming that the target user is logged in. For example, when a target user logs into the first application client for the first time via a terminal device, identity verification can be performed through token authentication or CAPTCHA authentication, and the target user can be logged in and provided with the credential registration page after successful identity verification.

[0127] Understandably, after receiving the registration request submitted by the client, the server can generate a random challenge value and return it to the client. For example, this challenge value could be returned to a front-end page provided by the client, which could be the credential registration page currently being viewed by the user. Upon receiving the challenge value from the server, the client can pass it to the validator process by calling a web authentication interface.

[0128] As an example, the validator process can be manifested as a persistent process in the background of the primary application, capable of monitoring the calls to the web authentication interface in real time. A persistent process can be understood as a process that exists in memory indefinitely, remaining active and not being killed.

[0129] Specifically, when the verifier process detects a client calling the Web authentication interface, it can establish a connection with the Web authentication interface and obtain the challenge value passed by the client. In practical applications, in addition to passing the challenge value, other parameters can also be passed to the verifier process as needed, as detailed in relevant technologies; this application does not limit this aspect.

[0130] In this way, the validator process can start the built-in authenticator, passing the challenge value and other parameters submitted by the client to the authenticator. The authenticator then generates a public and private key pair, which serve as the credential information associated with the target user under the first application. The private key can be stored locally, while the public key can be returned to the server for storage. The specific implementation process can refer to relevant technologies, and this application embodiment does not limit it in this way.

[0131] As an example, to improve the security of private key storage, the authenticator can generate key pairs via a secure enclave approach. That is, the authenticator can invoke the security module of the terminal device to generate key pairs. Typically, the security module's chip is not connected to the terminal device's chip; therefore, the key pair generation process does not involve the terminal device's CPU or onboard memory. Even if the security module is maliciously compromised, it cannot extract the internally stored private key, ensuring the security of locally stored private keys.

[0132] Optionally, the authenticator can verify the target user's identity before generating credential information. For example, it can prompt the target user to enter biometric information for user identity verification, and only generate credential information after the identity verification is successful, i.e., when the target user is determined to be a legitimate user of the terminal device.

[0133] Optionally, embodiments of this application may also limit the number of users registering credentials for the first application deployed on the terminal device. Specifically, when it is determined that the number of users registering credentials for the first application on the terminal device associated with the first application does not exceed a preset number, the registration request submitted by the target user can be sent to the server, and the server generates a challenge value.

[0134] In other words, after receiving a registration request submitted by a target user through the client of the first application, the system can first obtain the number of users who have completed credential registration through the first application installed and deployed on the current terminal device. If this number exceeds a preset number, credential registration service will no longer be provided to the target user; otherwise, the registration request can be sent to the server to continue providing credential registration service to the target user.

[0135] If the preset limit is 1, meaning only one user is allowed to register using the first application installed on the terminal device, and a registered user is detected, a relevant prompt can be returned to the target user. For example, the target user can be notified that their device has already been registered by another user and cannot be registered again. This method of limiting the number of credential registrations helps ensure the security of login authentication, thereby improving the security of the first application. Specifically, for a legitimate user of the terminal device, if they are prompted that a registered user already exists during credential registration, it can be determined that the device has been registered by an unauthorized user, allowing for the investigation of unauthorized users. Furthermore, if a legitimate user has already completed credential registration before an unauthorized user, duplicate registration by the unauthorized user will not be allowed.

[0136] S203: Send the public key in the credential information and the challenge value obtained after signing to the server.

[0137] The authenticator can use its private key to sign the challenge value generated by the server, obtaining the signed challenge value. The authenticator process then sends the public key and the signed challenge value to the client's front-end page and forwards them to the server. The server uses the public key to verify the validity of the signed challenge value. Upon successful verification, the server associates the public key with the target user's identity information and stores it in the database for use during login authentication. The implementation process of server-side validity verification and public key storage can be found in relevant technologies; this application does not specifically limit this aspect.

[0138] See Figure 3 The flowchart shown illustrates that the login authentication method for the application provided in this embodiment may include:

[0139] S301: The client of the first application provides an authenticator process with a built-in authenticator.

[0140] As an example, the service component for login authentication provided in this application embodiment can be loaded on the client of the first application, enabling the client to provide a validator process with a built-in authenticator to achieve login authentication.

[0141] S302: Upon receiving the challenge value generated by the server of the first application in response to the login request submitted by the target user, the challenge value is sent to the verifier process by calling the Web authentication interface. The verifier obtains the private key from the credential information associated with the target user under the first application and signs the challenge value using the private key. The credential information is generated by the client based on the registration request submitted by the target user, and the public key in the credential information is sent to the server for storage.

[0142] As an example, after the target user launches the client of the first application on the terminal device, the client can provide the target user with a login page. After obtaining the login request submitted by the target user through the operation options provided on the login page, it can be sent to the server of the first application.

[0143] After receiving the login request from the client, the server can generate a random challenge value and return it to the client. For example, it can return a specific challenge value to the client's front-end page, which could be the login page currently being viewed by the user. Upon receiving the challenge value from the server, the client can pass it to the validator process by calling a web authentication API.

[0144] As an example, the validator process can be manifested as a resident process in the background of the first application, which can monitor the calls to the Web authentication interface in real time.

[0145] Specifically, when the verifier process detects a client calling the Web authentication interface, it can establish a connection with the Web authentication interface and obtain the challenge value passed by the client. In practical applications, in addition to passing the challenge value, other parameters can also be passed to the verifier process as needed, as detailed in relevant technologies; this application does not limit this aspect.

[0146] In this way, the authenticator process can start the built-in authenticator, pass the challenge value and other parameters submitted by the client to the authenticator, and the authenticator can use this to find the credential information associated with the target user under the first application, specifically the private key stored locally.

[0147] S303: Send the challenge value obtained by the authenticator after signing to the server.

[0148] The authenticator can use its private key to sign the challenge value generated by the server, obtaining the signed challenge value. The authenticator process then sends the signed challenge value to the client's front-end page and forwards it to the server. The server retrieves the public key associated with the target user under the first application from its database, uses the public key to verify the validity of the signed challenge value, and provides a login success page to the target user upon successful verification. The implementation process of the server-side public key lookup and validity verification can be found in related technologies; this application does not specifically limit it.

[0149] In summary, WebAuthn authentication can be implemented in apps, leveraging its advantage of allowing users to log in via biometrics without entering usernames or passwords. This approach improves application authentication security while reducing authentication difficulty, resulting in a more user-friendly identity authentication solution within the application.

[0150] The following examples illustrate the application scenarios of the embodiments of this application.

[0151] With the continuous development of mobile office technology, users can handle business-related matters anytime, anywhere. However, to ensure office security, it is usually necessary to authenticate the user's associated terminal devices before allowing them to access the local area network and access relevant data. Currently, authentication is mainly performed by generating a dynamic token through an application installed on the mobile phone and verifying the token's validity through an application installed on the computer. This requires switching between the mobile phone and computer terminals, with both terminals cooperating to complete the authentication process.

[0152] Correspondingly, the solution provided in the embodiments of this application can be used to implement the Web authentication function in the local area network login scenario, simplifying the operation link of local area network connection.

[0153] See Figure 4 The flowchart shown illustrates the credential registration method for local area network login provided in this application embodiment, which may include:

[0154] S401: Clients of applications used to implement local area network login provide an authenticator process with a built-in authenticator.

[0155] In this example, the first application is the application used to implement local area network (LAN) login. This application can be an application installed on a mobile device, implementing Web authentication on the mobile device using the solution of this application embodiment, and thereby performing LAN login; alternatively, this application can be an application installed on a computer, implementing Web authentication on the computer using the solution of this application embodiment, and thereby performing LAN login.

[0156] Specifically, the service component for credential registration provided in this application embodiment can be loaded on the client side of the application, enabling the client to provide a validator process with a built-in authenticator to achieve credential registration.

[0157] S402: When it is determined that the terminal device associated with the application has registered the biometric information of the target user, the authenticator is started through the authenticator process to register credentials and obtain the credential information associated with the target user under the application.

[0158] To enable LAN login via biometrics alone, the client can first determine whether the terminal device associated with the application, i.e., the terminal device where the application is installed, has registered the target user's biometric information. In this example, the target user can be a legitimate user of the terminal device.

[0159] If the terminal device has registered the target user's biometric information, it can continue to provide credential registration services to the target user; otherwise, it can prompt the target user to register biometric information, that is, to enter the target user's biometric information into the terminal device. For example, the target user can be prompted to enter their fingerprint through the fingerprint collection module of the terminal device, or the target user can be prompted to enter their facial features through the camera of the terminal device, etc. The embodiments of this application do not limit the target user's biometric information.

[0160] When it is determined that the terminal device has registered the target user's biometric information, the authenticator process can initiate credential registration to obtain the credential information associated with the target user under the application. Specifically, the client can provide a credential registration page, through which the operation options provided on the credential registration page can be used to obtain the registration request submitted by the target user and send it to the server of the application used to implement local area network login. The server then generates a random challenge value. Correspondingly, the client obtains the challenge value generated by the server, can call the Web authentication interface, and pass the challenge value and other parameters to the authenticator through the authenticator process. The authenticator then uses this to generate the credential information associated with the target user under the application. The specific implementation process of credential registration can be found in [reference needed]. Figure 2 The location has been described, so it will not be elaborated on here.

[0161] Correspondingly, this application embodiment can also provide a local area network login method, see [link to relevant documentation]. Figure 5 The flowchart shown may include:

[0162] S501: Clients of applications used to implement local area network login provide an authenticator process with a built-in authenticator.

[0163] In this example, the first application is the application used to implement local area network login. The service component for login authentication provided in this application embodiment can be loaded on the application's client, enabling the client to provide a authenticator process with a built-in authenticator to achieve login authentication.

[0164] S502: Collect the biometric information of the user requesting local area network login and compare it with the biometric information of the target user registered on the terminal device associated with the application.

[0165] When local area network (LAN) access is required, a login page can be provided to the user. If the user chooses to use an authenticator for login authentication, a biometric information collection page can be provided for identity verification. For example, the page can prompt the user to enter fingerprint information. After collecting the biometric information of the user requesting LAN login, it is compared with the biometric information of the target user registered on the terminal device with the installed application—that is, the legitimate biometric information. If the two match, the biometric information verification is successful, and the current user is a legitimate user of the terminal device, allowing the user to continue receiving login authentication services. If the two do not match, the user requesting LAN login does not have login privileges, i.e., they do not have the authority to obtain the private key and use it for login authentication.

[0166] S503: When the biometric information verification is successful, the identity verification device is started through the verifier process to perform login authentication, and the local area network is accessed when the login authentication is successful.

[0167] Once user identity verification is successful, the authenticator process can initiate login authentication, and the client can connect to the local area network (LAN) upon successful authentication. Specifically, the client can generate a login request and send it to the server of the application used for LAN login. The server then generates a random challenge value. Correspondingly, the client obtains the challenge value generated by the server, calls the Web authentication interface, and passes the challenge value and other parameters to the authenticator through the authenticator process. The authenticator uses this value to find the private key associated with the target user under the application, signs the challenge value using the private key, and sends the signed challenge value to the server. The server then verifies the validity of the signed challenge value based on the public key associated with the target user under the application, and establishes a LAN connection upon successful verification. The detailed implementation process of login authentication can be found in [reference needed]. Figure 3 The location has been described, so it will not be elaborated on here.

[0168] In this example, the biometric information of the user requesting LAN login can be collected first for identity verification. Once verification is successful, the client is triggered to perform login authentication based on the private key associated with the target user in the application. Upon successful authentication, the user can then access the LAN. From a user experience perspective, the target user only needs to enter biometric information as prompted to trigger the client to automatically perform login authentication in the background. This eliminates the need for the target user to perform excessive actions for login authentication or switch between multiple terminals, simplifying the LAN login process and reducing operational difficulty. Furthermore, verifying identity based on the target user's biometric information maximizes the security of identity verification, thereby improving the security of LAN login.

[0169] As an example, based on the service components provided in the embodiments of this application, credential sharing among multiple applications can also be realized, further simplifying the credential registration and login authentication process.

[0170] The application background of the credential sharing scheme will be explained below.

[0171] Currently, WebAuthn credentials in related technologies cannot be used across containers. For example, they cannot be used across browsers; that is, credentials registered by a user through browser 1 cannot be used for login authentication on browser 2. Similarly, they cannot be used across web applications; that is, credentials registered by a user through web application 1 cannot be used for login authentication on web application 2. It should be noted that browsers and web applications that cannot share credentials are all installed on a single terminal device.

[0172] In this context, a container can be understood as a memory space with isolated processes or threads, and this memory space can support HTML (Hyper Text Markup Language) and JS (JavaScript, a lightweight, interpreted or just-in-time compiled programming language with a function-first approach) runtime environment.

[0173] For example, it cannot be used across browsers. Figure 1In the example given, when a user accesses website 1 through browser 1, they can register and obtain credential information 1, and then authenticate their login to website 1 on browser 1 based on credential information 1. If the user wants to access website 1 and authenticate their login through browser 2, they need to call the WebAuthentication API through browser 2, which will then have the authenticator built into browser 2 re-register credential information 2 associated with website 1. This is because different browsers have different built-in authenticators, and credential registration and login authentication are both implemented by their respective built-in authenticators. Furthermore, different browsers correspond to different containers, and browsers operate within their respective containers. In other words, the underlying isolation between browsers is ensured by their respective independent containers, making it impossible to use credential information across containers. This results in users needing to repeatedly register credentials on different browsers and different web applications.

[0174] Correspondingly, when implementing Web authentication based on the embodiments of this application, when initiating a Web Authentication API call, only the API interface layer is invoked, but the underlying implementation of the service component is actually invoked. This underlying implementation can intercept the call to the browser's built-in authenticator and instead call the authenticator built into the authenticator process in the embodiments of this application. This can be used as the technical basis to realize cross-container credential sharing.

[0175] The credential sharing scheme of this application embodiment will be explained and illustrated below with specific examples.

[0176] As an example, embodiments of this application may provide a configuration method for credential sharing, see [link to relevant documentation]. Figure 6 The flowchart shown may include:

[0177] S601: Obtain at least two applications with a binding relationship, said at least two applications being installed on the terminal device associated with the target user.

[0178] In this example, the at least two applications with a binding relationship refer to applications that can share credentials, which can be determined according to usage requirements. The types of applications with a binding relationship can be varied, such as a conventional browser (an application used to retrieve, display, and transmit web information resources) and a web application (an application accessible via the web) that can perform web authentication, as well as an app that implements web authentication using the scheme of this application embodiment, etc. This application embodiment does not specifically limit the type of application, as long as it can load the service components provided by this application embodiment. For example, the service components can be loaded in the form of an SDK in an app or in the form of a plugin in a browser.

[0179] In practical applications, at least two applications can be selected from those installed on the target user's associated terminal device and bound together, based on usage requirements. The types of applications bound together can be the same or different; this embodiment does not limit this.

[0180] Optionally, when a browser is included in an application with a binding relationship, the granularity of credential sharing can be refined from an information security perspective. For example, the granularity of credential sharing can be refined to the websites accessed through the browser. That is, credential sharing for the same website can be achieved across different browsers. In the example above where browser 1 and browser 2 access website 1, when credential sharing is performed according to the scheme of this application embodiment, it can be determined that browser 1 and browser 2 have a binding relationship when accessing website 1. Thus, after a user registers credentials for website 1 through browser 1, when accessing website 1 through browser 2, they can use the registered credential information for login authentication without needing to register again.

[0181] Alternatively, credential sharing can be refined to websites belonging to the same domain. In other words, credential sharing can be achieved between multiple websites within the same domain and different browsers. For example, if company A's domain is associated with websites A1, A2, and A3, when sharing credentials according to the embodiment of this application, it can be determined that browser 1 and browser 2 have a binding relationship when accessing websites associated with company A's domain. Thus, after a user registers credentials for website A1 through browser 1, they can use this registration credential information to achieve login authentication for accessing websites A2 and A3 through browser 1, and also achieve login authentication for accessing websites A1, A2, and A3 through browser 2.

[0182] S602: For service components deployed in the at least two applications, configure the same shared authenticator. The shared authenticator is built into the authenticator process provided by the service component. When the authenticator process obtains a challenge value submitted to the Web authentication interface, it starts the shared authenticator to perform credential registration or login authentication.

[0183] As can be seen from the technical basis of cross-container credential sharing in the embodiments of this application, in order to achieve credential sharing between at least two applications with a binding relationship, the same shared authenticator can be configured for the service components deployed in at least two applications. That is, when implementing web authentication functionality, at least two applications can call the same underlying implementation and use the same shared authenticator for credential generation and login authentication, thereby achieving credential sharing.

[0184] Based on the above credential sharing configuration scheme, this application embodiment can provide a credential registration method that enables credential sharing. See [link to relevant documentation]. Figure 7 The flowchart shown may include:

[0185] S701: Determine a first application from at least two applications associated with the target user that have a binding relationship, wherein the clients of the at least two applications respectively provide a first authenticator process with the same shared authenticator built in.

[0186] As an example, a selection interface can be provided to the target user, which may include at least two applications with a binding relationship, allowing the target user to select a first application and then register credentials through the first application.

[0187] Alternatively, as another example, among at least two applications with a binding relationship, the application that the target user is currently launching and submitting the registration request through can be identified as the first application.

[0188] As in the example above, when accessing website 1, browser 1 and browser 2 are bound together. If the target user is currently accessing website 1 through browser 1 and submitting a registration request, then browser 1 can be identified as the first application.

[0189] S702: Through the first authenticator process provided by the client of the first application, the shared authenticator is started to register credentials and obtain the shared credential information associated with the target user under the at least two applications. The shared credential information includes a shared public key and a shared private key.

[0190] The credential registration process using the first authenticator process with a built-in shared authenticator can be described as follows: Browser 1 receives the challenge value returned by the server of website 1 and can call the Web Authentication API. When the first authenticator process detects the API call, it can start the shared authenticator, sending the challenge value and other parameters passed through the API interface to the shared authenticator to generate credentials and obtain a shared public key and a shared private key. The shared private key can be stored locally, while the shared public key can be returned to the server for storage. For a detailed implementation, please refer to the above description; further examples will not be provided here.

[0191] Correspondingly, embodiments of this application can also provide a method for login authentication based on shared credentials, see [link to relevant documentation]. Figure 8 The flowchart shown may include:

[0192] S801: The client of the second application provides a first authenticator process with a built-in shared authenticator. The second application belongs to at least two applications that are associated with the target user and have a binding relationship. The first authenticator processes provided by the clients of the at least two applications each have the same built-in shared authenticator.

[0193] S802: The shared authenticator is started through the first authenticator process provided by the client of the second application, the shared private key in the shared credential information associated with the target user under the at least two applications is obtained, and login authentication is performed. The shared credential information is generated by the client of the first application in the at least two applications.

[0194] Continuing with the example above, if a target user accesses website 1 through browser 2 and submits a login request, then browser 2 can be identified as the second application. The login authentication process using the first authenticator process with its built-in shared authenticator can be described as follows: Browser 2 receives the challenge value returned by the server of website 1 and can call the WebAuthentication API. When the first authenticator process detects the API call, it can start the shared authenticator, sending the challenge value and other parameters passed through the API interface to the shared authenticator. The shared authenticator then uses this information to find the credential information associated with website 1 in browser 2 locally. In this example, it can be determined that browser 1 and browser 2 have a binding relationship when accessing website 1, and that browser 1 obtains the shared credential information of website 1 through registration. Therefore, the shared private key can be used to sign the challenge value, and the signed challenge value can be sent to the server. The server can then verify the validity of the signed challenge value based on the corresponding shared public key, thus achieving login authentication. The specific implementation process can be found in the above description and will not be illustrated here.

[0195] Optionally, if the client of the second application also provides a second authenticator process with a built-in private authenticator, then during login authentication, the shared authenticator and the private authenticator can be provided as options to the target user; when it is determined that the shared authenticator is selected to authenticate the target user, the shared authenticator is started through the first authenticator process.

[0196] Taking Browser 2 as the second application as an example, the built-in authenticator of Browser 2 is the private authenticator. If the credential information 2 of website 1 is registered through Browser 2 and the shared credential information of website 1 is registered through Browser 1, then when accessing website 1 for login authentication through Browser 2, a selection interface can be provided to the target user. This interface can include operation options for login authentication through the shared authenticator and operation options for login authentication through the private authenticator, for the target user to choose from.

[0197] If the target user chooses to log in using a private authenticator, when Browser 2 receives the challenge value returned by the server, it can call the Web Authentication API and perform login authentication through the underlying implementation of the Web Authentication API. Specifically, the challenge value can be passed to the authenticator built into Browser 2, and login authentication can be performed using the private key in credential information 2.

[0198] If the target user chooses to log in via a shared authenticator, when Browser 2 receives the challenge value returned by the server, it can call the Web Authentication API and perform login authentication through the underlying implementation of the service component. Specifically, the first authenticator process can pass the challenge value to the shared authenticator and use the shared private key in the shared credential information to perform login authentication.

[0199] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.

[0200] Corresponding to the foregoing method embodiments, this application also provides an application credential registration device, applied to the client of a first application, see [link to relevant documentation]. Figure 9 The device may include:

[0201] The validator process providing unit 901 is used to provide a validator process with a built-in authenticator;

[0202] The credential information generation unit 902 is used to receive the challenge value generated by the server of the first application in response to the registration request submitted by the target user, send the challenge value to the verifier process by calling the Web authentication interface, generate credential information associated with the target user under the first application by the verifier, store the private key in the credential information locally, and sign the challenge value using the private key.

[0203] The credential information sending unit 903 is used to send the public key in the credential information and the challenge value obtained after signing to the server.

[0204] Specifically, the credential information generation unit can be used to: when the verifier process detects that the client is calling the Web authentication interface, establish a connection with the Web authentication interface and obtain the challenge value submitted by the client to the Web authentication interface.

[0205] The device further includes:

[0206] The registration quantity determination unit is used to determine that when the number of users registering for the first application with credentials on the terminal device associated with the first application does not exceed a preset number, the registration request submitted by the target user is sent to the server, and the server generates the challenge value.

[0207] Corresponding to the foregoing method embodiments, this application also provides an application credential registration device, applied to the client of a first application, see [link to relevant documentation]. Figure 10 The device may include:

[0208] The validator process providing unit 1001 is used to provide a validator process with a built-in authenticator;

[0209] The credential information acquisition unit 1002 is used to receive a challenge value generated by the server of the first application in response to a login request submitted by a target user, and send the challenge value to the verifier process by calling a Web authentication interface. The verifier process obtains the private key from the credential information associated with the target user under the first application and signs the challenge value using the private key. The credential information is generated by the client based on the registration request submitted by the target user, and the public key in the credential information is sent to the server for storage.

[0210] The challenge value sending unit 1003 is used to send the signed challenge value obtained by the authenticator to the server.

[0211] Corresponding to the foregoing method embodiments, this application also provides a service component providing apparatus, which may include:

[0212] A service component providing unit is configured to provide a service component for credential registration. The service component provides a validator process with a built-in authenticator. After being deployed on the client of the first application, the service component performs the following processing:

[0213] Upon receiving the challenge value generated by the server of the first application in response to the registration request submitted by the target user, the challenge value is sent to the verifier process by calling the Web authentication interface. The verifier generates the credential information associated with the target user under the first application, saves the private key in the credential information locally, and signs the challenge value using the private key.

[0214] The public key in the credential information and the challenge value obtained after signing are sent to the server.

[0215] Corresponding to the foregoing method embodiments, this application also provides a service component providing apparatus, which may include:

[0216] A service component providing unit is used to provide a service component for login authentication. The service component provides a validator process with a built-in authenticator. After the service component is deployed on the client of the first application, it performs the following processing:

[0217] Upon receiving a challenge value generated by the server of the first application in response to a login request submitted by a target user, the challenge value is sent to the verifier process by calling a Web authentication interface. The verifier obtains the private key from the credential information associated with the target user under the first application and signs the challenge value using the private key. The credential information is generated by a service component for credential registration deployed on the client based on the registration request submitted by the target user, and the public key in the credential information is sent to the server for storage.

[0218] The challenge value obtained by the authenticator after signing is sent to the server.

[0219] Corresponding to the foregoing method embodiments, this application also provides a Web authentication interface implementation apparatus, which may include:

[0220] The socket unit is used to socket the interface layer implementation of the Web authentication interface to the underlying implementation of the service component. When the service component listens for the interface layer accepting the call, it obtains the challenge value submitted to the Web authentication interface and starts the authenticator built into the service component to perform credential registration or login authentication.

[0221] Corresponding to the foregoing method embodiments, this application also provides a credential registration device for local area network (LAN) login, applied to the client of an application used to implement LAN login. See [link to relevant documentation]. Figure 11 The device may include:

[0222] The validator process providing unit 1101 is used to provide a validator process with a built-in authenticator;

[0223] The credential registration unit 1102 is used to determine that when the terminal device associated with the application has registered the biometric information of the target user, it starts the identity verification device through the verifier process to register the credential and obtain the credential information associated with the target user under the application.

[0224] Corresponding to the foregoing method embodiments, this application also provides a local area network (LAN) login device, applied to a client of an application used to implement LAN login. See [link to relevant documentation]. Figure 12 The device may include:

[0225] The validator process providing unit 1201 is used to provide a validator process with a built-in authenticator;

[0226] The biometric information comparison unit 1202 is used to collect the biometric information of the user requesting local area network login and compare it with the biometric information of the target user registered on the terminal device associated with the application.

[0227] The login authentication unit 1203 is used to start the identity authentication device through the verifier process to perform login authentication when the biometric information is verified successfully, and to access the local area network when the login authentication is successful.

[0228] Corresponding to the foregoing method embodiments, this application also provides a configuration device for credential sharing, see below. Figure 13 The device may include:

[0229] Binding relationship acquisition unit 1301 is used to acquire at least two applications with binding relationship, wherein the at least two applications are installed on the terminal device associated with the target user;

[0230] The authenticator configuration unit 1302 is used to configure the same shared authenticator for service components deployed in the at least two applications. The shared authenticator is built into the authenticator process provided by the service component. When the authenticator process obtains a challenge value submitted to the Web authentication interface, it starts the shared authenticator to perform credential registration or login authentication.

[0231] Corresponding to the foregoing method embodiments, this application also provides a credential registration device, see [link to relevant documentation]. Figure 14 The device may include:

[0232] Application determination unit 1401 is used to determine a first application from at least two applications that are associated with the target user and have a binding relationship, wherein the clients of the at least two applications respectively provide a first authenticator process with the same shared authenticator built in;

[0233] The credential registration unit 1402 is used to initiate the shared authenticator for credential registration through the first authenticator process provided by the client of the first application, and obtain the shared credential information associated with the target user under the at least two applications, wherein the shared credential information includes a shared public key and a shared private key.

[0234] Corresponding to the foregoing method embodiments, this application also provides a login authentication device applied to the client of a second application, see [link to relevant documentation]. Figure 15 The device may include:

[0235] The authenticator process providing unit 1501 is used to provide a first authenticator process with a built-in shared authenticator, wherein the second application belongs to at least two applications that are associated with the target user and have a binding relationship, and the first authenticator processes provided by the clients of the at least two applications respectively have the same shared authenticator built-in.

[0236] The login authentication unit 1502 is used to start the shared authenticator through the first authenticator process provided by the client of the second application, obtain the shared private key in the shared credential information associated with the target user under the at least two applications, and perform login authentication. The shared credential information is generated by the client of the first application in the at least two applications.

[0237] The client of the second application also provides a second authenticator process with a built-in private authenticator, and the device further includes:

[0238] An authenticator determination unit is configured to provide the shared authenticator and the private authenticator as options to the target user; when determining that the shared authenticator is to be used for login authentication of the target user, the shared authenticator is started through the first authenticator process.

[0239] In addition, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method described in any of the foregoing method embodiments.

[0240] And an electronic device, comprising:

[0241] One or more processors; and

[0242] A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method described in any of the foregoing method embodiments.

[0243] in, Figure 16 The architecture of an electronic device is illustrated by example. For instance, device 1600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, aircraft, etc.

[0244] Reference Figure 16 The device 1600 may include one or more of the following components: a processing component 1602, a memory 1604, a power supply component 1606, a multimedia component 1608, an audio component 1610, an input / output (I / O) interface 1612, a sensor component 1614, and a communication component 1616.

[0245] Processing component 1602 typically controls the overall operation of device 1600, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 1602 may include one or more processors 1620 to execute instructions to perform all or part of the steps of the methods provided in this disclosure. Furthermore, processing component 1602 may include one or more modules to facilitate interaction between processing component 1602 and other components. For example, processing component 1602 may include a multimedia module to facilitate interaction between multimedia component 1608 and processing component 1602.

[0246] Memory 1604 is configured to store various types of data to support the operation of device 1600. Examples of this data include instructions for any application or method operating on device 1600, contact data, phonebook data, messages, pictures, videos, etc. Memory 1604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0247] Power supply component 1606 provides power to various components of device 1600. Power supply component 1606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 1600.

[0248] Multimedia component 1608 includes a screen that provides an output interface between device 1600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1608 includes a front-facing camera and / or a rear-facing camera. When device 1600 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0249] Audio component 1610 is configured to output and / or input audio signals. For example, audio component 1610 includes a microphone (MIC) configured to receive external audio signals when device 1600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1604 or transmitted via communication component 1616. In some embodiments, audio component 1610 also includes a speaker for outputting audio signals.

[0250] Input / output (I / O) interface 1612 provides an interface between processing component 1602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0251] Sensor assembly 1614 includes one or more sensors for providing status assessments of various aspects of device 1600. For example, sensor assembly 1614 may detect the on / off state of device 1600, the relative positioning of components such as the display and keypad of device 1600, changes in the position of device 1600 or a component of device 1600, the presence or absence of user contact with device 1600, the orientation or acceleration / deceleration of device 1600, and temperature changes of device 1600. Sensor assembly 1614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1614 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0252] Communication component 1616 is configured to facilitate wired or wireless communication between device 1600 and other devices. Device 1600 can access wireless networks based on communication standards, such as WiFi, or mobile communication networks such as 2G, 3G, 4G / LTE, and 5G. In one exemplary embodiment, communication component 1616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1616 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0253] In an exemplary embodiment, device 1600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0254] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1604 including instructions, which can be executed by a processor 1620 of device 1600 to perform the method provided by the present disclosure. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0255] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0256] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0257] The foregoing has provided a detailed description of the Web authentication-related solutions offered in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of these embodiments are merely for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A configuration method for credential sharing, characterized in that, include: Obtain at least two applications that have a binding relationship, said at least two applications being installed on the terminal device associated with the target user; For service components deployed in the at least two applications, the same shared authenticator is configured. The shared authenticator is built into the authenticator process provided by the service component. When the authenticator process obtains a challenge value submitted to the Web authentication interface, it starts the shared authenticator to register credentials, thereby obtaining the shared credential information associated with the target user under the at least two applications. The shared private key in the shared credential information is stored locally, and the challenge value is signed using the shared private key. The shared public key in the shared credential information and the signed challenge value are then sent to the server.

2. A configuration method for credential sharing, characterized in that, include: Obtain at least two applications that have a binding relationship, said at least two applications being installed on the terminal device associated with the target user; For service components deployed in the at least two applications, the same shared authenticator is configured. The shared authenticator is built into the authenticator process provided by the service component. When the authenticator process obtains a challenge value submitted to the Web authentication interface, it starts the shared authenticator to perform login authentication, thereby obtaining the shared private key in the shared credential information associated with the target user under the at least two applications. The shared private key is used to sign the challenge value, and the signed challenge value is sent to the server. The server uses the shared public key in the shared credential information to verify the validity of the signed challenge value.

3. A method for credential registration, characterized in that, include: From at least two applications that are associated with the target user and have a binding relationship, determine a first application, wherein the clients of the at least two applications respectively provide a first authenticator process with the same shared authenticator built in; The client of the first application receives the challenge value generated by the server in response to the registration request submitted by the target user, and calls the Web authentication interface. When the first verifier process provided by the client of the first application listens for the interface call, it starts the shared authenticator to register credentials and obtains the shared credential information associated with the target user under the at least two applications. The shared credential information includes a shared public key and a shared private key. The shared private key is stored locally, and the challenge value is signed using the shared private key; The shared public key and the challenge value obtained after signing are sent to the server.

4. The method according to claim 3, characterized in that, When the first authenticator process provided by the client of the first application listens for an interface call, it starts the shared authenticator to register credentials and obtains the shared credential information associated with the target user under the at least two applications, including: When the first verifier process detects that the client calls the Web authentication interface, it establishes a connection with the Web authentication interface, obtains the challenge value submitted by the client to the Web authentication interface, and uses it to generate the shared credential information.

5. The method according to claim 3 or 4, characterized in that, Also includes: If it is determined that the number of users registering for the first application with credentials on the terminal device associated with the first application does not exceed a preset number, the registration request submitted by the target user is sent to the server, and the server generates the challenge value.

6. The method according to claim 3, characterized in that, The types of the at least two applications with a binding relationship include at least one of the following: a browser that implements web authentication, a web application, and an application (APP) that implements web authentication by deploying a service component; the service component provides a first authenticator process with the same shared authenticator built in.

7. The method according to claim 6, characterized in that, When at least two applications with a binding relationship include a browser, the granularity of credential sharing is the website accessed through the browser, so as to enable credential sharing for the same website across different browsers with a binding relationship.

8. The method according to claim 6, characterized in that, When at least two applications with a binding relationship include a browser, credential sharing is granular at the level of websites belonging to the same domain, enabling credential sharing between multiple websites within the domain and different browsers with a binding relationship.

9. A login authentication method, characterized in that, include: The client of the second application provides a first authenticator process with a built-in shared authenticator. The second application belongs to at least two applications that are associated with the target user and have a binding relationship. The first authenticator processes provided by the clients of the at least two applications each have the same built-in shared authenticator. The client of the second application receives the challenge value generated by the server in response to the login request submitted by the target user, and calls the Web authentication interface. When the first verifier process provided by the client of the second application listens for the interface call, it starts the shared authenticator, obtains the shared private key in the shared credential information associated with the target user under the at least two applications, and signs the challenge value using the shared private key. The shared credential information is generated by the client of the first application in the at least two applications, and the shared public key in the shared credential information is sent to the server for storage. The challenge value obtained by the shared authenticator is sent to the server, which then verifies the validity of the challenge value based on the shared public key.

10. The method according to claim 9, characterized in that, The client of the second application also provides a second authenticator process with a built-in private authenticator, and the method further includes: The shared authenticator and the private authenticator are provided as options to the target user; When it is determined that the shared authenticator will be used to authenticate the target user's login, the shared authenticator is started through the first authenticator process.

11. An electronic device, characterized in that, include: One or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Web safety access implementation method based on intelligent terminal local authentication

    CN104283886A

  • Blockchain-based FIDO authentication method, apparatus and system

    CN108064440A

  • Registration system and working method thereof

    CN108881310A