Application login method, device, computer equipment and storage medium

Through the operator authentication server, the last service token and BSSID is used to realize the one-click login of the application of the terminal device in wireless LAN mode, solving the problem of turning on cellular traffic in the existing technology to log in, and realizing one-click login for numbers without cellular traffic.

CN118900414BActive Publication Date: 2025-03-04CHINA UNICOM ONLINE INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411399594.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-03-04
Estimated Expiration
2044-10-09

AI Technical Summary

Technical Problem

In the prior art, when the terminal device only turns on the wireless LAN mode, it is impossible to realize number authentication login, and cellular traffic is required to enable one-click login.

Method used

The operator authentication server responds to the request message for prefetching the mobile phone number initiated by the terminal device's application, obtains the BSSID in the last service token and request access parameters. If the verification is passed, obtains the mobile phone number based on the last service token, and determines whether there is a target authentication record corresponding to the mobile phone number and BSSID. If it exists, a new service token is generated, so that the terminal device can realize one-click login to the application based on the mobile phone number.

Benefits of technology

It realizes one-click login of the application through the last service token and BSSID when the terminal device only turns on wireless LAN mode, avoids the need to turn on cellular traffic, and realizes one-click login for numbers without cellular traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900414B_ABST
    Figure CN118900414B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, computer equipment and storage medium for logging into an application, and to the field of communication technology. The method mainly comprises: in response to a request message for pre-fetching a mobile phone number initiated by an application of a terminal device, obtaining the last service token and the requested access parameters in the request message; the requested access parameters include a basic service set identifier BSSID for wireless local area network access; the terminal device only turns on the wireless local area network mode; if the requested access parameters are verified, the mobile phone number is obtained according to the last service token, and it is determined whether there is a target authentication record corresponding to the mobile phone number and the BSSID; if there is a target authentication record corresponding to the mobile phone number, a new service token is generated, so that the terminal device can realize one-key login to the application based on the mobile phone number according to the new service token. The present invention can realize one-key login of a number without cellular traffic.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent data processing technology, and in particular to an application program login method, device, computer equipment and storage medium. Background Art

[0002] For quick registration and login scenarios of mobile Internet applications, communication network operators provide various Internet application apps with quick authentication and login technology services based on mobile phone numbers, generally known as "one-click login with number". This technology, based on the operator's gateway authentication, provides the application layer with the user's real-time Internet access mobile phone number. Due to the universality of mobile phone numbers and the authenticity of user identities, it is widely welcomed by various application services. This technical service is widely welcomed by users and application companies.

[0003] This technology relies on mobile terminals to access mobile applications through cellular traffic. When the user's mobile phone turns on cellular traffic and wireless LAN at the same time, number authentication can be completed if the network traffic request permission is obtained. However, when the user only turns on the wireless LAN, the number authentication process cannot be completed. Summary of the invention

[0004] The present invention is intended to provide a method, device, computer equipment and storage medium for logging into an application program to solve the deficiencies in the prior art. The technical problem to be solved by the present invention is achieved through the following technical solutions.

[0005] An embodiment of the present invention provides a method for logging in to an application program, the method being applied to an operator authentication server, the method comprising:

[0006] In response to a request message for pre-fetching a mobile phone number initiated by an application of a terminal device, obtaining a last service token and a requested access parameter in the request message; the requested access parameter includes a basic service set identifier BSSID for wireless local area network access; the terminal device only turns on a wireless local area network mode;

[0007] If the requested access parameter is verified, the mobile phone number is obtained according to the last service token, and it is determined whether there is a target authentication record corresponding to the mobile phone number and the BSSID;

[0008] If there is a target authentication record corresponding to the mobile phone number, a new service token is generated so that the terminal device can implement one-click login to the application based on the mobile phone number according to the new service token.

[0009] In an optional embodiment, obtaining a mobile phone number according to the last service token and determining whether there is a target authentication record corresponding to the mobile phone number and the BSSID includes:

[0010] Obtaining the mobile phone number corresponding to the last service token through an authentication record server, wherein the authentication record server stores authentication records, each authentication record including at least the mobile phone number and its corresponding most recent successful service token, and access parameter data;

[0011] The authentication record corresponding to the BSSID in the authentication record corresponding to the mobile phone number is determined as the target authentication record.

[0012] In an optional embodiment, before generating a new service token, the method further includes:

[0013] Determining whether the data in the target authentication record meets a preset condition;

[0014] If the preset conditions are met, a new service token is generated and stored.

[0015] In an optional embodiment, the pre-set condition includes one or more of the following:

[0016] The base station number in the target authentication record is the same as the base station number to which the current mobile phone is connected found in the network signaling server;

[0017] The time difference between the latest network access time in the target authentication record and the latest network access time found in the network signaling server is within a preset error range;

[0018] The International Mobile Equipment Identity code IMEI in the target authentication record is the same as the IMEI found through the network signaling server.

[0019] In an optional embodiment, after generating a new service token, the method further includes:

[0020] Update the mapping relationship between the mobile phone number and the new service token in the authentication record server, as well as the corresponding access parameter data.

[0021] In an optional embodiment, the method further includes:

[0022] If the last service token cannot be obtained from the request message, a prompt message for turning on the cellular network is sent to the terminal device to prompt the user of the terminal device to turn on the cellular network mode;

[0023] In response to a request message for pre-fetching a mobile phone number re-initiated by the application program based on the terminal device turning on both the cellular network mode and the wireless local area network mode, obtaining the cellular network IP address in the request message;

[0024] The mobile phone number is obtained according to the cellular network IP address, and a corresponding service token is generated.

[0025] In an optional embodiment, the method further includes:

[0026] The mobile phone number, the corresponding service token and the access parameter data are stored together as an authentication record in the authentication record server.

[0027] An embodiment of the present invention provides a device for logging into an application program, which is disposed on an operator authentication server side, and includes:

[0028] An acquisition module is used to respond to a request message for pre-fetching a mobile phone number initiated by an application of a terminal device, and acquire the last service token and the requested access parameters in the request message; the requested access parameters include a basic service set identifier BSSID for wireless local area network access; the terminal device only turns on the wireless local area network mode;

[0029] A determination module, configured to obtain a mobile phone number according to the last service token if the requested access parameter verification is passed, and determine whether there is a target authentication record corresponding to the mobile phone number and the BSSID;

[0030] A generation module is used to generate a new service token if there is a target authentication record corresponding to the mobile phone number, so that the terminal device can implement one-click login to the application based on the mobile phone number according to the new service token.

[0031] The embodiments of the present invention include the following advantages:

[0032] The embodiment of the present invention provides a method, device, computer equipment and storage medium for logging into an application. The operator authentication server responds to a request message for pre-fetching a mobile phone number initiated by an application of a terminal device, obtains the last service token and the requested access parameter in the request message, and the requested access parameter includes a basic service set identifier BSSID for wireless local area network access; if the requested access parameter is verified, the mobile phone number is obtained according to the last service token, and it is determined whether there is a target authentication record corresponding to the mobile phone number and the BSSID; if there is a target authentication record corresponding to the mobile phone number, a new service token is generated, so that the terminal device can realize one-click login to the application based on the mobile phone number according to the new service token. Compared with the prior art, which requires the terminal device to turn on cellular traffic to perform one-click login to the application, the terminal device of the present invention can realize one-click login to the application through the last service token and BSSID in the request message when only the wireless local area network mode is turned on, so that the one-click login of the number without cellular traffic can be realized through the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1is a flowchart of steps of an embodiment of a method for logging into an application program of the present invention;

[0034] Figure 2 is a flowchart of another embodiment of a method for logging into an application program of the present invention;

[0035] Figure 3 It is a structural diagram of an embodiment of a login device for an application of the present invention. DETAILED DESCRIPTION

[0036] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Example

[0037] See also Figure 1 , is a method for logging into an application provided by an embodiment of the present invention, the method is applied to an operator authentication server, and the method specifically includes S101-S103:

[0038] S101, in response to a request message for pre-fetching a mobile phone number initiated by an application of a terminal device, obtaining a last service token and a requested access parameter in the request message.

[0039] In this embodiment, the user clicks and starts the application on the terminal device used, and then the application calls the SDK for initialization and sets the application access identifier AppID. After that, the mobile terminal initiates a request message for pre-fetching the mobile phone number to the operator authentication server through the SDK.

[0040] Since the terminal device in this embodiment only turns on the wireless LAN mode, it is impossible to achieve one-click login to the application through traditional methods. Therefore, the request message in this embodiment needs to include the last service token and the requested access parameters, so as to achieve one-click login to the application according to the last service token in the subsequent steps. Among them, the requested access parameters at least include the basic service set identifier BSSID (Basic Service Set Identifier) ​​for wireless LAN access, and may also include the application access identifier AppID, application package information, wireless LAN IP, wireless LAN BSSID identifier, and integrity check values ​​of all parameters, etc. This embodiment does not specifically limit this.

[0041] S102: If the requested access parameter verification is successful, the mobile phone number is obtained according to the last service token, and it is determined whether there is a target authentication record corresponding to the mobile phone number and BSSID.

[0042] After the operator authentication server verifies the legitimacy and integrity of the access parameters, it queries the authentication record server for the mobile phone number corresponding to the last service token according to the last service token in the request message, and queries the authentication record server for the corresponding target authentication record according to the mobile phone number and BSSID. Optionally, the operator authentication server queries the operator's network information signaling server for the most recent network access time, connection base station number, and IMEI of the mobile phone number.

[0043] In an optional embodiment provided by the present application, a mobile phone number is obtained based on the last service token, and it is determined whether there is a target authentication record corresponding to the mobile phone number and BSSID, including: obtaining the mobile phone number corresponding to the last service token through an authentication record server, the authentication record server storing authentication records, each authentication record including at least the mobile phone number and its corresponding most recent successful service token, and access parameter data; determining the authentication record corresponding to the BSSID in the authentication record corresponding to the mobile phone number as the target authentication record.

[0044] S103: If there is a target authentication record corresponding to the mobile phone number, a new service token is generated, so that the terminal device can implement one-click login to the application based on the mobile phone number according to the new service token.

[0045] In an optional embodiment provided by the present application, before generating a new service token, this embodiment also needs to determine whether the data in the target authentication record meets the preset conditions. Among them, the preset conditions include one or more of the following: the base station number in the target authentication record is the same as the base station number to which the current mobile phone is connected found in the network signaling server; the time difference between the latest network access time in the target authentication record and the latest network access time found in the network signaling server is within the preset error range; the international mobile equipment identity code IMEI in the target authentication record is the same as the IMEI found through the network signaling server. The preset error can be set according to actual needs, such as 3 days, 5 days, etc., and this embodiment does not make specific limitations on this.

[0046] In this embodiment, the base station number, access network time and international mobile equipment identity code are used to further verify whether the mobile terminal is consistent with the historical one-key login authentication information, thereby further ensuring the security of the one-key login of the application number performed by the current mobile terminal.

[0047] Furthermore, the user's application login habits can be counted, and more verification conditions can be set to verify the current request message for pre-fetching the mobile phone number, such as by counting the user's application login time range, login geographical area range, etc., which is not specifically limited in this embodiment.

[0048] Specifically, the operator authentication server generates a one-time service token based on the mobile phone number, and puts the mobile phone number and the new service token into the valid service token pool. It also requests to update the mapping relationship between the mobile phone number and the new service token in the authentication record server, as well as the corresponding access parameter data, which includes the new service token in the wireless LAN BSSID record, the network type (only wireless LAN), the current BSSID authentication record times, etc. Among them, the service token can be generated by a random algorithm or by related calculations based on the mobile phone number, which is not specifically limited in this embodiment.

[0049] In this embodiment, after the operator authentication server generates a new service token, it returns the new service token and the user's mobile phone number fragment to the SDK of the terminal device application. After receiving the mobile phone number fragment and the new service token, the SDK displays the user authorization page and caches the new service token. After the user consults the authentication service agreement and the privacy agreement on the authorization page, he clicks to confirm the authorization. The application obtains the user's mobile phone number fragment and the new service token from the SDK, and passes the new service token to the application server. The application server assembles the request parameters and initiates a request to the operator authentication service system. The request parameters include the authentication parameters and the new service token for application access, as well as the integrity check value of the request parameters. After the operator authentication server verifies that the request parameters are legal, it searches for the mobile phone number in the valid authentication service token cache according to the new service token, and returns the mobile phone number to the application server. The application server forwards the response message of the mobile phone number acquisition to the application; the application displays that the mobile phone number login is successful.

[0050] It should be noted that the one-click login of the application number implemented by this embodiment requires that the application has previously logged in with the mobile phone number through cellular traffic and wireless LAN, that is, the premise of number authentication during wireless LAN connection in this embodiment is based on the successful cellular network authentication when the cellular network and wireless LAN are turned on at the same time, and the successful authentication records the mapping relationship between the cellular traffic of the user's mobile phone number at a specific base station and the BSSID of the wireless LAN. Based on this authentication record, the number authentication process during wireless LAN connection can be implemented, that is, when the mobile phone number and BSSID match the corresponding authentication record, it means that it is used for identity confirmation. At this time, one-click login of the application can be performed based on the generated new service token, so that one-click login of the number without cellular traffic can be implemented through the present invention.

[0051] An embodiment of the present invention provides a method for logging into an application program. An operator authentication server responds to a request message for pre-fetching a mobile phone number initiated by an application program of a terminal device, obtains the last service token and the requested access parameter in the request message, and the requested access parameter includes a basic service set identifier BSSID for wireless local area network access; if the requested access parameter is verified, the mobile phone number is obtained according to the last service token, and it is determined whether there is a target authentication record corresponding to the mobile phone number and the BSSID; if there is a target authentication record corresponding to the mobile phone number, a new service token is generated, so that the terminal device can implement one-click login to the application program based on the mobile phone number according to the new service token. Compared with the prior art, which requires the terminal device to turn on cellular traffic to perform one-click login to the application program, the terminal device of the present invention can implement one-click login to the application program through the last service token and BSSID in the request message when only the wireless local area network mode is turned on, so that the present invention can implement one-click login to the number without cellular traffic. Example

[0052] See also Figure 2 , is a flow chart of another application login method provided in an embodiment of the present invention, the method is applied to an operator authentication server, and the method specifically includes S201-S205:

[0053] S201, in response to a request message for pre-fetching a mobile phone number initiated by an application of a terminal device, determining whether a previous service token and requested access parameters can be obtained from the request information.

[0054] The access request parameters include the wireless LAN access basic service set identifier BSSID, the application access identifier AppID, application package information, and the integrity check value of all parameters, the IP address of the wireless LAN, the BSSID identifier of the wireless LAN, etc.

[0055] S202: If the last service token cannot be obtained from the request message, a prompt message for turning on the cellular network is sent to the terminal device to prompt the user of the terminal device to turn on the cellular network mode.

[0056] In this embodiment, if the last service token cannot be obtained from the request message, it means that the application of the terminal device has not successfully performed cellular network authentication when the cellular network and the wireless local area network are turned on at the same time. Therefore, this embodiment needs to send a prompt message to the terminal device to turn on the cellular network to prompt the user of the terminal device to turn on the cellular network mode; if the last service token can be obtained from the request message, the corresponding subsequent steps in Example 1 are executed.

[0057] S203, in response to the request message for pre-fetching the mobile phone number re-initiated by the application program based on the terminal device turning on the cellular network mode and the wireless local area network mode at the same time, obtaining the cellular network IP address in the request message.

[0058] S204, obtaining the mobile phone number according to the cellular network IP address, and generating a corresponding service token.

[0059] Before generating the corresponding service token, after verifying the legitimacy of the access request and the integrity of the parameters, the operator's authentication server will request the operator's network signaling data server to retrieve the mobile phone number, access base station number, the most recent access time of the mobile phone number and other information of the cellular network IP based on the cellular network IP address, and then obtain the mobile phone number based on the cellular network IP address and generate the corresponding service token.

[0060] S205: The mobile phone number, the corresponding service token and the access parameter data are stored as an authentication record in the authentication record server.

[0061] In this embodiment, the operator authentication server generates a one-time service token based on the mobile phone number, and adds the mobile phone number and service token to the valid service token pool, and records the mobile phone number and service token as an authentication record and updates it to the authentication record server. The authentication record only saves the most recent successful service token of the mobile phone number, that is, the mobile phone number, access base station number, IMEI, most recent network access time and wireless LAN BSSID identifier in the authentication request parameters (when there is a wireless LAN), application identifier AppID, network access type, and the number of authentication services of the current BSSID generate an authentication record and add it to the authentication record server. The record can save multiple authentication records for a mobile phone number.

[0062] Afterwards, the operator authentication server returns the new service token and the user's mobile phone number fragment to the SDK of the terminal device application. After receiving the mobile phone number fragment and the new service token, the SDK displays the user authorization page and caches the new service token. After the user consults the authentication service agreement and privacy agreement on the authorization page, he clicks to confirm the authorization. The application obtains the user's mobile phone number fragment and the new service token from the SDK, and passes the new service token to the application server. The application server assembles the request parameters and initiates a request to the operator authentication service system. The request parameters include the authentication parameters and the new service token for application access, as well as the integrity check value of the request parameters. After verifying that the request parameters are legal, the operator authentication server searches for the mobile phone number in the valid authentication service token cache based on the new service token, and returns the mobile phone number to the application server. The application server forwards the response message of the mobile phone number acquisition to the application; the application displays that the mobile phone number login is successful.

[0063] This embodiment provides another application login method. If the application of the terminal device has not successfully performed cellular network authentication when the cellular network and the wireless local area network are turned on at the same time, the terminal device needs to turn on the cellular network and the wireless local area network at the same time, and then obtain the mobile phone number according to the cellular network IP address, and generate a corresponding service token. After that, the mobile phone number, the corresponding service token and the access parameter data are stored as an authentication record in the authentication record server, so that when the application of the terminal device sends a request message for pre-fetching the mobile phone number again, one-click login authentication of the application is performed based on the mobile phone number and the corresponding service token in the authentication record server, thereby realizing one-click login of the number without cellular traffic.

[0064] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention. Example

[0065] In one embodiment, a login device for an application is provided, and the login device for the application corresponds one-to-one with the login method for the application in the above embodiment. Figure 3 As shown, the functional modules of the login acquisition device of the application are described in detail as follows:

[0066] The acquisition module 31 is used to respond to the request message for pre-fetching a mobile phone number initiated by the application of the terminal device, and obtain the last service token and the requested access parameters in the request message; the requested access parameters include the basic service set identifier BSSID of wireless local area network access; the terminal device only turns on the wireless local area network mode;

[0067] A determination module 32, configured to obtain a mobile phone number according to the last service token if the requested access parameter verification is passed, and determine whether there is a target authentication record corresponding to the mobile phone number and the BSSID;

[0068] The generation module 33 is used to generate a new service token if there is a target authentication record corresponding to the mobile phone number, so that the terminal device can implement one-click login to the application based on the mobile phone number according to the new service token.

[0069] In an optional embodiment, the determination module 32 is specifically configured to:

[0070] Obtaining the mobile phone number corresponding to the last service token through an authentication record server, wherein the authentication record server stores authentication records, each authentication record including at least the mobile phone number and its corresponding most recent successful service token, and access parameter data;

[0071] The authentication record corresponding to the BSSID in the authentication record corresponding to the mobile phone number is determined as the target authentication record.

[0072] In an optional embodiment, the determination module 32 is further used to determine whether the data in the target authentication record meets a preset condition;

[0073] The generation module 33 is specifically used to generate and store a new service token if the preset conditions are met.

[0074] In an optional embodiment, the pre-conditions include one or more of the following:

[0075] The base station number in the target authentication record is the same as the base station number to which the current mobile phone is connected found in the network signaling server;

[0076] The time difference between the latest network access time in the target authentication record and the latest network access time found in the network signaling server is within a preset error range;

[0077] The International Mobile Equipment Identity code IMEI in the target authentication record is the same as the IMEI found through the network signaling server.

[0078] In an optional embodiment, the application login device further includes an update module 34:

[0079] The updating module 34 is used to update the mapping relationship between the mobile phone number and the new service token in the authentication record server, as well as the corresponding access parameter data.

[0080] In an optional embodiment, the application login device further includes a sending module 35:

[0081] The sending module 35 is used to send a prompt message for turning on the cellular network to the terminal device if the last service token cannot be obtained from the request message, so as to prompt the user of the terminal device to turn on the cellular network mode;

[0082] The acquisition module 31 is further used to respond to the request message for pre-fetching the mobile phone number re-initiated by the application program on the basis of the terminal device turning on the cellular network mode and the wireless local area network mode at the same time, and obtain the cellular network IP address in the request message;

[0083] The generation module 33 is specifically used to obtain the mobile phone number according to the cellular network IP address and generate a corresponding service token.

[0084] In an optional embodiment, the application login device further includes a storage module 36;

[0085] The storage module 36 is used to store the mobile phone number, the corresponding service token and the access parameter data as an authentication record in the authentication record server.

[0086] It should be noted that the above detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present application belongs.

[0087] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should also be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0088] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0089] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or inherent to these processes, methods, products, or apparatuses.

[0090] For ease of description, spatially relative terms, such as "above", "above", "on the upper surface of", "above", etc., may be used herein to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" may include both "above" and "below". The device may also be positioned in other different ways, such as rotated 90 degrees or in other orientations, and the spatially relative descriptions used herein are interpreted accordingly.

[0091] In the above detailed description, reference is made to the accompanying drawings, which form a part of this document. In the accompanying drawings, similar symbols typically identify similar components unless the context indicates otherwise. The illustrated embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be used, and other changes may be made, without departing from the spirit or scope of the subject matter presented herein.

[0092] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for logging into an application, characterized in that: The method is applied to an operator authentication server, and the method comprises: In response to a request message for pre-fetching a mobile phone number initiated by an application of a terminal device, obtaining a last service token and a requested access parameter in the request message; the requested access parameter includes a basic service set identifier BSSID for wireless local area network access; the terminal device only turns on a wireless local area network mode; If the requested access parameter verification is passed, the mobile phone number is obtained according to the last service token, and it is determined whether there is a target authentication record corresponding to the mobile phone number and the BSSID; the mobile phone number is obtained according to the last service token, and it is determined whether there is a target authentication record corresponding to the mobile phone number and the BSSID, including: Obtaining the mobile phone number corresponding to the last service token through an authentication record server, wherein the authentication record server stores authentication records, each authentication record including at least the mobile phone number and its corresponding most recent successful service token, and access parameter data; Determine the authentication record corresponding to the BSSID in the authentication record corresponding to the mobile phone number as the target authentication record; If there is a target authentication record corresponding to the mobile phone number, a new service token is generated, so that the terminal device can implement one-click login to the application based on the mobile phone number according to the new service token; before generating the new service token, the method also includes: Determining whether the data in the target authentication record meets a preset condition; If the preset conditions are met, a new service token is generated and stored; The pre-conditions include one or more of the following: The base station number in the target authentication record is the same as the base station number to which the current mobile phone is connected found in the network signaling server; The time difference between the latest network access time in the target authentication record and the latest network access time found in the network signaling server is within a preset error range; The International Mobile Equipment Identity (IMEI) in the target authentication record is the same as the IMEI found through the network signaling server; After generating a new service token, the method further includes: Update the mapping relationship between the mobile phone number and the new service token in the authentication record server, as well as the corresponding access parameter data.

2. The method according to claim 1, characterized in that The method further comprises: If the last service token cannot be obtained from the request message, a prompt message for turning on the cellular network is sent to the terminal device to prompt the user of the terminal device to turn on the cellular network mode; In response to a request message for pre-fetching a mobile phone number re-initiated by the application program based on the terminal device turning on both the cellular network mode and the wireless local area network mode, obtaining the cellular network IP address in the request message; The mobile phone number is obtained according to the cellular network IP address, and a corresponding service token is generated.

3. The method according to claim 2, characterized in that After obtaining the mobile phone number according to the cellular network IP address and generating a corresponding service token, the method further includes: The mobile phone number, the corresponding service token and the access parameter data are stored together as an authentication record in the authentication record server.

4. A login device for an application using the method according to any one of claims 1 to 3, characterized in that: The device is arranged at the operator authentication server end, and the device comprises: An acquisition module is used to respond to a request message for pre-fetching a mobile phone number initiated by an application of a terminal device, and acquire the last service token and the requested access parameters in the request message; the requested access parameters include a basic service set identifier BSSID for wireless local area network access; the terminal device only turns on the wireless local area network mode; A determination module, for obtaining a mobile phone number according to the last service token and determining whether there is a target authentication record corresponding to the mobile phone number and the BSSID if the requested access parameter verification is passed; the obtaining of a mobile phone number according to the last service token and determining whether there is a target authentication record corresponding to the mobile phone number and the BSSID includes: Obtaining the mobile phone number corresponding to the last service token through an authentication record server, wherein the authentication record server stores authentication records, each authentication record including at least the mobile phone number and its corresponding most recent successful service token, and access parameter data; Determine the authentication record corresponding to the BSSID in the authentication record corresponding to the mobile phone number as the target authentication record; A generation module is used to generate a new service token if there is a target authentication record corresponding to the mobile phone number, so that the terminal device can realize one-click login to the application based on the mobile phone number according to the new service token; before generating the new service token, it also includes: Determining whether the data in the target authentication record meets a preset condition; If the preset conditions are met, a new service token is generated and stored; The pre-conditions include one or more of the following: The base station number in the target authentication record is the same as the base station number to which the current mobile phone is connected found in the network signaling server; The time difference between the latest network access time in the target authentication record and the latest network access time found in the network signaling server is within a preset error range; The International Mobile Equipment Identity (IMEI) in the target authentication record is the same as the IMEI found through the network signaling server; After generating a new service token, the following steps are also included: Update the mapping relationship between the mobile phone number and the new service token in the authentication record server, as well as the corresponding access parameter data.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for logging into the application program according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for logging into the application program according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Authentication method and device integrating multiple operators, computer equipment and storage medium

    CN112565239A

  • Method, device and system for one-key login of terminal application program

    CN113765906A