CN112448956B - Authority processing method and device of short message verification code and computer equipment - Google Patents

Authority processing method and device of short message verification code and computer equipment Download PDF

Info

Publication number
CN112448956B
CN112448956B CN202011344442.XA CN202011344442A CN112448956B CN 112448956 B CN112448956 B CN 112448956B CN 202011344442 A CN202011344442 A CN 202011344442A CN 112448956 B CN112448956 B CN 112448956B
Authority
CN
China
Prior art keywords
verification
content
verified
mode
short message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011344442.XA
Other languages
Chinese (zh)
Other versions
CN112448956A (en
Inventor
李汝涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011344442.XA priority Critical patent/CN112448956B/en
Publication of CN112448956A publication Critical patent/CN112448956A/en
Application granted granted Critical
Publication of CN112448956B publication Critical patent/CN112448956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • H04L63/0838Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Abstract

The invention discloses a method and a device for processing the authority of a short message verification code, computer equipment and a storage medium. The method comprises the following steps: acquiring a verification mode matched with the type information according to the type information of the content to be verified carried in the first request; according to the verification mode, verifying the content to be verified through a filter to obtain a corresponding verification result; and judging whether the terminal has the authority for acquiring the short message verification code according to the verification result so as to judge whether the short message verification code is sent to the terminal according to the authority. Therefore, by adopting the embodiment of the application, the filter is introduced, the filter can check various types of contents to be checked, different checking processes do not need to be configured for each type of contents to be checked, and checking devices corresponding to different checking processes do not need to be configured, so that the invention simplifies the existing checking processes, and the effective authority management of different contents to be checked can be realized only through one set of checking processes.

Description

Authority processing method and device of short message verification code and computer equipment
Technical Field
The invention relates to the technical field of Internet, in particular to a method and a device for processing the authority of a short message verification code and computer equipment.
Background
With the development of network technology, in more and more application scenarios, whether a user has the authority to log in a certain account needs to be verified through a short message verification code. As an identity certificate, the short message verification code is widely applied to application scenarios such as user registration, password recovery, login protection, identity authentication, random password and transaction confirmation.
In practical application, due to the use of the short message verification code, the safety of the user account is effectively improved, and therefore, the short message verification code is widely used.
At present, aiming at the verification mechanism of the short message verification code, different platforms have own verification mechanisms, so that the mechanisms are different, and the verification safety effect is also different; therefore, the verification mechanisms of the short message verification codes of different platforms are too messy.
Aiming at the too disordered short message verification code verification mechanisms of different platforms, how to simplify the short message verification code verification mechanism is a technical problem to be solved.
Disclosure of Invention
Therefore, it is necessary to provide a method, an apparatus, a computer device and a storage medium for processing the permission of the short message verification code in order to solve the problem that the verification process of the existing short message verification code is too complicated.
In a first aspect, an embodiment of the present application provides a method for processing an authority of a short message verification code, where the method includes:
a receiving terminal sends a first request for acquiring a short message verification code, wherein the first request carries type information of content to be verified;
acquiring a verification mode matched with the type information according to the type information of the content to be verified carried in the first request;
according to the verification mode, verifying the content to be verified through a filter to obtain a corresponding verification result;
and judging whether the terminal has the authority to acquire the short message verification code according to the verification result so as to judge whether the short message verification code is sent to the terminal according to the authority.
In an embodiment, the determining, according to the check result, whether the terminal has the authority to acquire the short message verification code, so as to determine whether to send the short message verification code to the terminal according to the authority includes:
when the verification result is that the verification is passed, judging that the terminal has the authority to acquire the short message verification code, and sending a second request to a short message service platform, wherein the second request is a request for inquiring the short message verification code corresponding to the content to be verified;
receiving the short message verification code sent by the short message service platform;
and sending the short message verification code to the terminal.
In an embodiment, the determining, according to the check result, whether the terminal has the authority to acquire the short message verification code, so as to determine whether to send the short message verification code to the terminal according to the authority further includes:
and if the verification result is verification failure, intercepting the first request through a filter.
In an embodiment, the obtaining, according to the type information of the content to be verified carried in the first request, a verification method matching the type information includes:
when the type information is that the type of the content to be checked is interface check, the obtained check mode is a first check mode, and the first check mode is used for checking the interface type of the content to be checked according to a plurality of standard interface types configured in advance; alternatively, the first and second electrodes may be,
when the type information is that the type of the content to be checked is the graphic verification code check, the obtained verification mode is a second verification mode, and the second verification mode is used for verifying the graphic verification mode of the content to be checked according to a plurality of standard graphic verification modes which are configured in advance; alternatively, the first and second electrodes may be,
when the type information is that the type of the content to be checked is service scene check, the obtained check mode is a third check mode, and the third check mode is used for checking the service scene corresponding to the content to be checked according to a plurality of pre-configured standard check service scenes; alternatively, the first and second electrodes may be,
under the condition that the type information is that the type of the content to be verified is IP verification, the obtained verification mode is a fourth verification mode, and the fourth verification mode is used for verifying the IP format of the terminal corresponding to the content to be verified according to a plurality of standard IP formats configured in advance;
alternatively, the first and second liquid crystal display panels may be,
and under the condition that the type information is that the type of the content to be verified is frequency verification, the obtained verification mode is a fifth verification mode, and the fifth verification mode is used for verifying the sending frequency of the first request according to a pre-configured sending request frequency threshold.
In an embodiment, the verifying the content to be verified by the filter according to the verification method, and obtaining a corresponding verification result includes:
under the condition that the obtained verification mode is the first verification mode, judging whether the interface type of the content to be verified is a standard interface type or not through the filter; and under the condition that the interface type of the result to be verified belongs to at least one standard interface type, judging that the verification result is pass verification, otherwise, judging that the verification result is verification failure.
In an embodiment, the verifying the content to be verified through a filter according to the verification method to obtain a corresponding verification result further includes:
under the condition that the obtained verification mode is combined verification of the second verification mode and the third verification mode, judging whether a mode of performing graph verification on the content to be verified belongs to at least one standard graph verification mode and whether a service scene corresponding to the content to be verified belongs to at least one standard verification service scene through the filter; and under the condition that the pattern verification mode of the content to be verified belongs to at least one standard pattern verification mode and the service scene corresponding to the content to be verified belongs to at least one standard verification service scene, judging that the verification result is pass verification, otherwise, judging that the verification result is verification failure.
In an embodiment, the verifying the content to be verified through a filter according to the verification method to obtain a corresponding verification result further includes:
under the condition that the obtained verification mode is combined verification of the fourth verification mode and the fifth verification mode, judging whether the IP format of the terminal corresponding to the content to be verified belongs to at least one standard IP format and whether the sending frequency of the first request is smaller than or equal to the sending request frequency threshold value through the filter; judging that the verification result is passed under the condition that the IP format of the terminal corresponding to the content to be verified belongs to at least one standard IP format and the sending frequency of the first request is less than or equal to the sending request frequency threshold; otherwise, judging that the verification result is verification failure.
In a second aspect, an embodiment of the present application provides an apparatus for processing a permission of a short message verification code, where the apparatus includes:
the receiving unit is used for receiving a first request for acquiring a short message verification code sent by a terminal, wherein the first request carries the type information of the content to be verified;
an obtaining unit, configured to obtain, according to type information of content to be verified carried in the first request received by the receiving unit, a verification manner matched with the type information;
the verification unit is used for verifying the content to be verified through a filter according to the verification mode obtained by the obtaining unit to obtain a corresponding verification result;
and the judging unit is used for judging whether the terminal has the authority for acquiring the short message verification code according to the verification result of the verifying unit so as to judge whether the short message verification code is sent to the terminal according to the authority.
In a third aspect, embodiments of the present application provide a computer device, which includes a memory and a processor, where the memory stores computer-readable instructions, and the computer-readable instructions, when executed by the processor, cause the processor to perform the above-mentioned method steps.
In a fourth aspect, embodiments of the present application provide a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the above-mentioned method steps.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the embodiment of the application, a verification mode matched with the type information is obtained according to the type information of the content to be verified carried in the first request; according to the verification mode, verifying the content to be verified through a filter to obtain a corresponding verification result; and judging whether the terminal has the authority for acquiring the short message verification code according to the verification result so as to judge whether the short message verification code is sent to the terminal according to the authority. Therefore, by adopting the embodiment of the application, the filter is introduced, and the filter can check various types of contents to be checked, so that different checking processes and checking devices corresponding to different checking processes are not required to be configured for each type of contents to be checked, the conventional checking process is simplified, and effective authority management on different contents to be checked can be realized only through one set of checking process. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is an implementation environment diagram of a method for authority processing of a short message verification code provided in an embodiment;
FIG. 2 is a block diagram showing an internal configuration of a computer device according to an embodiment;
fig. 3 is a schematic flowchart of a method for processing a short message verification code according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an authority processing device for short message verification codes according to an embodiment of the present disclosure.
Detailed Description
The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Alternative embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Fig. 1 is a diagram of an implementation environment of a method for processing a right of a short message verification code according to an embodiment, as shown in fig. 1, in the implementation environment, a computer device 110 and a terminal 120 are included.
It should be noted that the terminal 120 and the computer device 110 may be, but are not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like. The computer device 110 and the terminal 120 may be connected through bluetooth, USB (Universal Serial Bus), or other communication connection methods, which is not limited herein.
FIG. 2 is a diagram showing an internal configuration of a computer device according to an embodiment. As shown in fig. 2, the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected through a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable the processor to realize the authority processing method of the short message verification code when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device can store computer readable instructions, and when the computer readable instructions are executed by the processor, the processor can execute a method for processing the authority of the short message verification code. The network interface of the computer device is used for connecting and communicating with the terminal. It will be appreciated by those skilled in the art that the configuration shown in fig. 2 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The existing permission processing method is characterized in that different verification modes are configured for the contents to be verified carried in each request, and a verification flow matched with the verification modes is set, and different verification flows are incompatible, so that different verification flows are required to be configured for each different type of contents to be verified, and the verification flow is too complex.
The authority processing method provided by the embodiment of the application introduces the filter, and various contents to be verified are uniformly verified through the filter.
By introducing a filter between the service request and the request response, the filter can uniformly check the contents to be checked with different attributes, for example, if the attribute of the contents to be checked is interface verification, the contents to be checked are verified in a pre-configured interface verification mode; or if the attribute of the content to be verified is the content related to the graph, the corresponding verification mode is to verify through the graph verification code; or, if the attribute of the content to be verified is related to the service scene, the corresponding verification mode is a verification mode matched with the service scene; or, if the attribute of the content to be verified is IP, the corresponding verification mode is IP verification; or, if the attribute of the content to be verified is frequency, the corresponding verification mode is frequency verification.
Compared with the existing verification process, the verification method provided by the application uniformly performs verification processing through the filter no matter which type the attribute of the content to be verified is, so that the verification processing process is simplified, and different verification processing processes are unified in the same processing process.
In addition, the filter not only has a unified verification processing process, but also can process invalid data in advance, and an invalid verification process is avoided.
As shown in fig. 3, an embodiment of the present disclosure provides a method for processing a permission of a short message verification code, where the method for processing the permission is applied to a server side, and specifically includes the following steps:
s302: a receiving terminal sends a first request for acquiring a short message verification code, wherein the first request carries type information of content to be verified;
s304: acquiring a verification mode matched with the type information according to the type information of the content to be verified carried in the first request;
in the embodiment of the present application, the obtaining of the verification method matched with the type information according to the type information of the content to be verified carried in the first request includes the following steps:
when the type information is the type of the content to be checked is interface check, the acquired check mode is a first check mode, and the first check mode is used for checking the interface type of the content to be checked according to a plurality of standard interface types which are configured in advance;
in this embodiment of the present application, the obtaining, according to the type information of the content to be verified carried in the first request, a verification method matching the type information further includes the following steps:
under the condition that the type information is that the type of the content to be checked is the graphic verification code check, the obtained check mode is a second check mode, and the second check mode is used for checking the graphic check mode of the content to be checked according to a plurality of standard graphic check modes which are configured in advance;
in this embodiment of the present application, the obtaining, according to the type information of the content to be verified carried in the first request, a verification method matching the type information further includes the following steps:
when the type information is the type of the content to be verified and the type is the service scene verification, the obtained verification mode is a third verification mode, and the third verification mode is used for verifying the service scene corresponding to the content to be verified according to a plurality of pre-configured standard verification service scenes;
in the embodiment of the present application, the obtaining of the verification manner matched with the type information according to the type information of the content to be verified carried in the first request further includes the following steps:
under the condition that the type information is the type of the content to be verified and is IP verification, the obtained verification mode is a fourth verification mode, and the fourth verification mode is used for verifying the IP format of the terminal corresponding to the content to be verified according to a plurality of standard IP formats configured in advance;
in this embodiment of the present application, the obtaining, according to the type information of the content to be verified carried in the first request, a verification method matching the type information further includes the following steps:
and under the condition that the type information is the type of the content to be verified and is frequency verification, the obtained verification mode is a fifth verification mode, and the fifth verification mode is used for verifying the sending frequency of the first request according to a pre-configured sending request frequency threshold.
The common verification method for verifying different contents to be verified is provided, and the verification method corresponding to the other contents to be verified in different application scenarios can be configured, which is not described herein again; the filter can check various types of contents to be checked, and different checking processes and checking devices corresponding to different checking processes do not need to be configured for each type of contents to be checked, so that the conventional checking process is simplified, and effective authority management on different contents to be checked can be realized only through one set of checking process.
S306: according to the verification mode, verifying the content to be verified through a filter to obtain a corresponding verification result;
for the description of the verification manner, refer to the related description in S304, which is not described herein again.
In the embodiment of the application, according to the verification mode, verifying the content to be verified through the filter to obtain a corresponding verification result comprises the following steps:
under the condition that the obtained verification mode is the first verification mode, judging whether the interface type of the content to be verified is a standard interface type or not through a filter; and under the condition that the interface type of the result to be verified belongs to at least one standard interface type, judging that the verification result is pass verification, otherwise, judging that the verification result is verification failure.
In a possible implementation manner, according to the verification manner, verifying the content to be verified through the filter to obtain a corresponding verification result further includes the following steps:
under the condition that the obtained verification mode is the combined verification of the second verification mode and the third verification mode, judging whether the mode of carrying out the graph verification on the content to be verified belongs to at least one standard graph verification mode and whether a service scene corresponding to the content to be verified belongs to at least one standard verification service scene through a filter; under the condition that the mode of carrying out graphic verification on the content to be verified belongs to at least one standard graphic verification mode and the service scene corresponding to the content to be verified belongs to at least one standard verification service scene, judging that the verification result is pass verification, otherwise, judging that the verification result is verification failure; therefore, a combined checking mode of graphic checking and service scene checking is provided, the priority of the combined checking mode is configured to be a second priority, and the first priority is higher than the second priority.
In a possible implementation manner, according to the verification manner, verifying the content to be verified through the filter to obtain a corresponding verification result further includes the following steps:
under the condition that the obtained verification mode is combined verification of the fourth verification mode and the fifth verification mode, whether the IP format of the terminal corresponding to the content to be verified belongs to at least one standard IP format and whether the sending frequency of the first request is smaller than or equal to a sending request frequency threshold value or not is judged through a filter; under the condition that the IP format of the terminal corresponding to the content to be verified belongs to at least one standard IP format and the sending frequency of the first request is less than or equal to the sending request frequency threshold, judging that the verification result is passed; otherwise, judging that the verification result is verification failure; therefore, a combined checking mode of IP checking and frequency checking is provided, the priority of the combined checking mode is configured to be a third priority, and the second priority is higher than the second priority.
S308: and judging whether the terminal has the authority for acquiring the short message verification code according to the verification result so as to judge whether the short message verification code is sent to the terminal according to the authority.
In the embodiment of the application, judging whether the terminal has the authority to acquire the short message verification code according to the verification result, and judging whether to send the short message verification code to the terminal according to the authority comprises the following steps:
when the verification result is that the verification is passed, judging that the terminal has the right to acquire the short message verification code, and sending a second request to the short message service platform, wherein the second request is a request for inquiring the short message verification code corresponding to the content to be verified;
receiving a short message verification code sent by a short message service platform;
sending the short message verification code to a terminal; therefore, the second request can be allowed to be sent to the short message service platform only under the condition that the terminal has the authority of acquiring the short message verification code, so that the phenomenon of short message bombing of the terminal without the authority to the platform is avoided, and the load of the short message platform is prevented from being increased.
In a possible implementation manner, judging whether the terminal has the authority to acquire the short message verification code according to the verification result, and judging whether to send the short message verification code to the terminal according to the authority further includes the following steps:
intercepting the first request through a filter under the condition that the verification result is verification failure; therefore, when the verification result is that the verification fails, the first request is intercepted through the filter, and the data processing efficiency of the server side is improved.
In the embodiment of the disclosure, a verification mode matched with the type information is obtained according to the type information of the content to be verified carried in the first request; according to the verification mode, verifying the content to be verified through a filter to obtain a corresponding verification result; and judging whether the terminal has the authority for acquiring the short message verification code according to the verification result so as to judge whether the short message verification code is sent to the terminal according to the authority. Therefore, by adopting the embodiment of the application, the filter is introduced, the filter can check various types of contents to be checked, different checking processes do not need to be configured for each type of contents to be checked, and checking devices corresponding to different checking processes do not need to be configured, so that the invention simplifies the existing checking processes, and the effective authority management of different contents to be checked can be realized only through one set of checking processes.
The following is an embodiment of an authority processing device for a short message verification code according to the present invention, which can be used to execute an embodiment of an authority processing method for a short message verification code according to the present invention. For details that are not disclosed in the embodiments of the device for processing the authority of the short message verification code of the present invention, please refer to the embodiments of the method for processing the authority of the short message verification code of the present invention.
Fig. 4 is a schematic structural diagram of a device for processing a right of a short message verification code according to an exemplary embodiment of the present invention. The authority processing device of the short message verification code can be realized into all or part of the terminal through software, hardware or the combination of the software and the hardware. The device for processing the authority of the short message verification code comprises a receiving unit 402, an obtaining unit 404, a checking unit 406 and a judging unit 408.
Specifically, the receiving unit 402 is configured to receive a first request for acquiring a short message verification code, where the first request carries type information of a content to be verified;
an obtaining unit 404, configured to obtain, according to the type information of the content to be verified carried in the first request received by the receiving unit 402, a verification manner matched with the type information;
the verifying unit 406 is configured to verify the content to be verified through the filter according to the verifying mode obtained by the obtaining unit 404, so as to obtain a corresponding verifying result;
the determining unit 408 is configured to determine whether the terminal has the authority to acquire the short message verification code according to the verification result of the verifying unit 406, so as to determine whether to send the short message verification code to the terminal according to the authority.
Optionally, the determining unit 408 is specifically configured to:
if the verification result is that the verification is passed, judging that the terminal has the right to acquire the short message verification code, and sending a second request to the short message service platform, wherein the second request is a request for inquiring the short message verification code corresponding to the content to be verified;
receiving a short message verification code sent by a short message service platform;
and sending the short message verification code to the terminal.
Optionally, the determining unit 408 is further specifically configured to:
and if the verification result is that the verification fails, intercepting the first request through a filter.
Optionally, the obtaining unit 404 is specifically configured to:
when the type information is the type of the content to be checked is interface check, the acquired check mode is a first check mode, and the first check mode is used for checking the interface type of the content to be checked according to a plurality of standard interface types which are configured in advance; alternatively, the first and second liquid crystal display panels may be,
under the condition that the type information is that the type of the content to be checked is the graphic verification code check, the obtained check mode is a second check mode, and the second check mode is used for checking the graphic check mode of the content to be checked according to a plurality of standard graphic check modes which are configured in advance; alternatively, the first and second electrodes may be,
when the type information is the type of the content to be checked and is service scene check, the obtained check mode is a third check mode, and the third check mode is used for checking the service scene corresponding to the content to be checked according to a plurality of preset standard check service scenes; alternatively, the first and second electrodes may be,
under the condition that the type information is the type of the content to be verified and is IP verification, the obtained verification mode is a fourth verification mode, and the fourth verification mode is used for verifying the IP format of the terminal corresponding to the content to be verified according to a plurality of standard IP formats configured in advance;
alternatively, the first and second electrodes may be,
and under the condition that the type information is the type of the content to be verified and is frequency verification, the obtained verification mode is a fifth verification mode, and the fifth verification mode is used for verifying the sending frequency of the first request according to a pre-configured sending request frequency threshold.
Optionally, the checking unit 406 is configured to:
under the condition that the obtained verification mode is the first verification mode, judging whether the interface type of the content to be verified is a standard interface type or not through a filter; and under the condition that the interface type of the result to be verified belongs to at least one standard interface type, judging that the verification result is pass verification, otherwise, judging that the verification result is verification failure.
Optionally, the checking unit 406 is further configured to:
under the condition that the obtained verification mode is the combined verification of the second verification mode and the third verification mode, judging whether the mode of carrying out the graph verification on the content to be verified belongs to at least one standard graph verification mode and whether a service scene corresponding to the content to be verified belongs to at least one standard verification service scene through a filter; and under the condition that the mode of carrying out the graph verification on the content to be verified belongs to at least one standard graph verification mode and the service scene corresponding to the content to be verified belongs to at least one standard verification service scene, judging that the verification result is pass verification, otherwise, judging that the verification result is verification failure.
Optionally, the checking unit 406 is further configured to:
under the condition that the obtained verification mode is combined verification of the fourth verification mode and the fifth verification mode, whether the IP format of the terminal corresponding to the content to be verified belongs to at least one standard IP format and whether the sending frequency of the first request is smaller than or equal to a sending request frequency threshold value or not is judged through a filter; judging that the verification result is passed under the condition that the IP format of the terminal corresponding to the content to be verified belongs to at least one standard IP format and the sending frequency of the first request is less than or equal to the sending request frequency threshold; otherwise, judging that the verification result is verification failure.
It should be noted that, when the apparatus for processing the authority of the short message verification code provided in the foregoing embodiment executes the method for processing the authority of the short message verification code, only the division of the function modules is illustrated, and in practical applications, the function distribution may be completed by different function modules according to needs, that is, the internal structure of the device may be divided into different function modules, so as to complete all or part of the functions described above. In addition, the permission processing device of the short message verification code and the permission processing method of the short message verification code provided by the above embodiments belong to the same concept, and the details of the implementation process are shown in the permission processing method of the short message verification code, which are not described herein again.
In the embodiment of the disclosure, the obtaining unit obtains a verification mode matched with the type information according to the type information of the content to be verified carried in the first request received by the receiving unit; the checking unit checks the content to be checked through the filter according to the checking mode obtained by the obtaining unit to obtain a corresponding checking result; and the judging unit judges whether the terminal has the authority to acquire the short message verification code according to the verification result obtained by the verifying unit so as to judge whether to send the short message verification code to the terminal according to the authority. Therefore, by adopting the embodiment of the application, the filter is introduced, the filter can check various types of contents to be checked, different checking processes do not need to be configured for each type of contents to be checked, and checking devices corresponding to different checking processes do not need to be configured, so that the invention simplifies the existing checking processes, and the effective authority management of different contents to be checked can be realized only through one set of checking processes.
In one embodiment, a computer device is proposed, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: a receiving terminal sends a first request for acquiring a short message verification code, wherein the first request carries type information of content to be verified; acquiring a verification mode matched with the type information according to the type information of the content to be verified carried in the first request; according to the verification mode, verifying the content to be verified through a filter to obtain a corresponding verification result; and judging whether the terminal has the authority for acquiring the short message verification code according to the verification result so as to judge whether the short message verification code is sent to the terminal according to the authority.
In one embodiment, a storage medium is presented having computer-readable instructions stored thereon which, when executed by one or more processors, cause the one or more processors to perform the steps of: a receiving terminal sends a first request for acquiring a short message verification code, wherein the first request carries type information of content to be verified; acquiring a verification mode matched with the type information according to the type information of the content to be verified carried in the first request; according to the verification mode, verifying the content to be verified through a filter to obtain a corresponding verification result; and judging whether the terminal has the authority for acquiring the short message verification code according to the verification result so as to judge whether the short message verification code is sent to the terminal according to the authority.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
All possible combinations of the technical features of the above embodiments may not be described for the sake of brevity, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that various changes and modifications can be made by those skilled in the art without departing from the spirit of the invention, and these changes and modifications are all within the scope of the invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for processing the authority of a short message verification code is characterized by comprising the following steps:
a receiving terminal sends a first request for acquiring a short message verification code, wherein the first request carries type information of content to be verified;
acquiring a verification mode matched with the type information according to the type information of the content to be verified carried in the first request;
according to the verification mode, verifying the content to be verified through a filter to obtain a corresponding verification result;
judging whether the terminal has the authority to acquire the short message verification code according to the verification result, and judging whether to send the short message verification code to the terminal according to the authority;
the obtaining of the verification mode matched with the type information according to the type information of the content to be verified carried in the first request comprises:
introducing a filter between the service request and the request response, wherein the filter performs unified verification on the contents to be verified with different attributes;
if the attribute of the content to be verified is interface verification, verifying the content to be verified in a pre-configured interface verification mode; alternatively, the first and second liquid crystal display panels may be,
if the attribute of the content to be verified is the content related to the graph, the corresponding verification mode is to verify through the graph verification code; in the still further alternative,
if the attribute of the content to be verified is related to the service scene, the corresponding verification mode is a verification mode matched with the service scene; in the alternative to this, either,
if the attribute of the content to be verified is IP, the corresponding verification mode is to perform IP verification; in the alternative to this, either,
if the attribute of the content to be checked is frequency, the corresponding checking mode is to perform frequency checking.
2. The method of claim 1, wherein the determining whether the terminal has the authority to obtain the short message authentication code according to the check result to determine whether to send the short message authentication code to the terminal according to the authority comprises:
if the verification result is that the verification is passed, judging that the terminal has the authority to acquire the short message verification code, and sending a second request to a short message service platform, wherein the second request is a request for inquiring the short message verification code corresponding to the content to be verified;
receiving the short message verification code sent by the short message service platform;
and sending the short message verification code to the terminal.
3. The method of claim 1, wherein the determining whether the terminal has the authority to obtain the short message authentication code according to the check result to determine whether to send the short message authentication code to the terminal according to the authority further comprises:
and if the verification result is verification failure, intercepting the first request through a filter.
4. The method according to claim 1, wherein the obtaining of the verification manner matched with the type information according to the type information of the content to be verified carried in the first request comprises:
when the type information is that the type of the content to be checked is interface check, the obtained check mode is a first check mode, and the first check mode is used for checking the interface type of the content to be checked according to a plurality of standard interface types configured in advance; alternatively, the first and second electrodes may be,
when the type information is that the type of the content to be checked is the graphic verification code check, the obtained verification mode is a second verification mode, and the second verification mode is used for verifying the graphic verification mode of the content to be checked according to a plurality of standard graphic verification modes which are configured in advance; alternatively, the first and second electrodes may be,
when the type information is that the type of the content to be checked is service scene check, the obtained check mode is a third check mode, and the third check mode is used for checking the service scene corresponding to the content to be checked according to a plurality of pre-configured standard check service scenes; alternatively, the first and second electrodes may be,
when the type information is that the type of the content to be checked is IP check, the obtained check mode is a fourth check mode, and the fourth check mode is used for checking the IP format of the terminal corresponding to the content to be checked according to a plurality of pre-configured standard IP formats; alternatively, the first and second liquid crystal display panels may be,
and under the condition that the type information is that the type of the content to be verified is frequency verification, the obtained verification mode is a fifth verification mode, and the fifth verification mode is used for verifying the sending frequency of the first request according to a pre-configured sending request frequency threshold.
5. The method according to claim 4, wherein the verifying the content to be verified through the filter according to the verification manner to obtain a corresponding verification result comprises:
under the condition that the obtained verification mode is the first verification mode, judging whether the interface type of the content to be verified is a standard interface type or not through the filter; and under the condition that the interface type of the content to be verified belongs to at least one standard interface type, judging that the verification result is pass verification, otherwise, judging that the verification result is verification failure.
6. The method according to claim 4, wherein the verifying the content to be verified through the filter according to the verification manner to obtain a corresponding verification result further comprises:
under the condition that the obtained verification mode is combined verification of the second verification mode and the third verification mode, judging whether a mode of performing graph verification on the content to be verified belongs to at least one standard graph verification mode and whether a service scene corresponding to the content to be verified belongs to at least one standard verification service scene through the filter; and under the condition that the pattern verification mode of the content to be verified belongs to at least one standard pattern verification mode and the service scene corresponding to the content to be verified belongs to at least one standard verification service scene, judging that the verification result is pass verification, otherwise, judging that the verification result is verification failure.
7. The method according to claim 4, wherein the verifying the content to be verified through the filter according to the verification manner to obtain a corresponding verification result further comprises:
under the condition that the obtained verification mode is combined verification of the fourth verification mode and the fifth verification mode, whether the IP format of the terminal corresponding to the content to be verified belongs to at least one standard IP format and whether the sending frequency of the first request is smaller than or equal to the sending request frequency threshold value or not is judged through the filter; under the condition that the IP format of the terminal corresponding to the content to be verified belongs to at least one standard IP format and the sending frequency of the first request is less than or equal to the sending request frequency threshold, judging that the verification result is passed; otherwise, judging that the verification result is verification failure.
8. An authority processing device for short message verification codes is characterized in that the device comprises:
the receiving unit is used for receiving a first request for acquiring a short message verification code sent by a terminal, wherein the first request carries the type information of the content to be verified;
an obtaining unit, configured to obtain, according to type information of content to be verified carried in the first request received by the receiving unit, a verification manner matched with the type information;
the verification unit is used for verifying the content to be verified through a filter according to the verification mode obtained by the obtaining unit to obtain a corresponding verification result;
the judging unit is used for judging whether the terminal has the authority for acquiring the short message verification code according to the verification result of the verifying unit so as to judge whether the short message verification code is sent to the terminal according to the authority;
the obtaining of the verification mode matched with the type information according to the type information of the content to be verified carried in the first request comprises:
introducing a filter between the service request and the request response, wherein the filter is used for uniformly verifying contents to be verified with different attributes;
if the attribute of the content to be verified is interface verification, verifying the content to be verified in a pre-configured interface verification mode; alternatively, the first and second electrodes may be,
if the attribute of the content to be verified is the content related to the graph, the corresponding verification mode is to verify through the graph verification code; in the alternative to this, either,
if the attribute of the content to be verified is related to the service scene, the corresponding verification mode is a verification mode matched with the service scene; in the still further alternative,
if the attribute of the content to be verified is IP, the corresponding verification mode is to perform IP verification; in the alternative to this, either,
and if the attribute of the content to be verified is frequency, performing frequency verification in a corresponding verification mode.
9. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the privilege processing method as claimed in any one of claims 1 to 7.
10. A storage medium having stored thereon computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the privilege processing method as claimed in any one of claims 1 to 7.
CN202011344442.XA 2020-11-25 2020-11-25 Authority processing method and device of short message verification code and computer equipment Active CN112448956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011344442.XA CN112448956B (en) 2020-11-25 2020-11-25 Authority processing method and device of short message verification code and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011344442.XA CN112448956B (en) 2020-11-25 2020-11-25 Authority processing method and device of short message verification code and computer equipment

Publications (2)

Publication Number Publication Date
CN112448956A CN112448956A (en) 2021-03-05
CN112448956B true CN112448956B (en) 2022-10-04

Family

ID=74737435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011344442.XA Active CN112448956B (en) 2020-11-25 2020-11-25 Authority processing method and device of short message verification code and computer equipment

Country Status (1)

Country Link
CN (1) CN112448956B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672894A (en) * 2021-07-30 2021-11-19 北京达佳互联信息技术有限公司 Data processing method, device and equipment for identifying code request and storage medium
CN113992373A (en) * 2021-10-20 2022-01-28 平安普惠企业管理有限公司 Verification method and device based on verification code, computer equipment and storage medium
CN115767537B (en) * 2022-11-15 2023-10-17 南京鼎山信息科技有限公司 Permission processing method and device for short message verification code and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073560A (en) * 2017-11-01 2018-05-25 深圳市金立通信设备有限公司 SMS processing method, server and computer-readable medium
CN108989263A (en) * 2017-05-31 2018-12-11 中国移动通信集团公司 Short message verification code attack guarding method, server and computer readable storage medium
CN110532171A (en) * 2019-07-22 2019-12-03 深圳壹账通智能科技有限公司 Application testing method, device, equipment and computer readable storage medium
CN111598575A (en) * 2020-05-19 2020-08-28 中国工商银行股份有限公司 Business process control method and device, electronic equipment and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110217997A1 (en) * 2010-03-03 2011-09-08 Paloma Networks Sas Security mechanisms to protect sms exchange in telecommunication networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989263A (en) * 2017-05-31 2018-12-11 中国移动通信集团公司 Short message verification code attack guarding method, server and computer readable storage medium
CN108073560A (en) * 2017-11-01 2018-05-25 深圳市金立通信设备有限公司 SMS processing method, server and computer-readable medium
CN110532171A (en) * 2019-07-22 2019-12-03 深圳壹账通智能科技有限公司 Application testing method, device, equipment and computer readable storage medium
CN111598575A (en) * 2020-05-19 2020-08-28 中国工商银行股份有限公司 Business process control method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN112448956A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN112448956B (en) Authority processing method and device of short message verification code and computer equipment
CN105827600B (en) Method and device for logging in client
CN110365483B (en) Cloud platform authentication method, client, middleware and system
CN110691085B (en) Login method, login device, password management system and computer readable medium
CN109462601B (en) Multi-platform access method and device based on eSIM
CN111355723B (en) Single sign-on method, device, equipment and readable storage medium
CN110232265B (en) Dual identity authentication method, device and system
CN113132402B (en) Single sign-on method and system
CN111614548A (en) Message pushing method and device, computer equipment and storage medium
CN111552942B (en) Identity authentication method, system, device and computer storage medium
CN103975567A (en) Dual-factor authentication method and virtual machine device
CN110224971B (en) Method, authorization server, system, device and storage medium for authorizing login
CN112422516A (en) Connection method and device of power system, computer equipment and storage medium
CN109699030B (en) Unmanned aerial vehicle authentication method, device, equipment and computer readable storage medium
CN115694979A (en) Method, device, equipment, medium and program for accessing MQTT (Multi-query Log) by vehicle-mounted terminal
CN114172714A (en) Account access authority control method and device and electronic equipment
CN111581616A (en) Multi-terminal login control method and device
CN115396277B (en) Login state management method, device, equipment and storage medium
CN114006762B (en) Method, system and storage medium for security verification among multiple servers
CN115248912B (en) System login method and device based on cloud terminal and computer readable storage medium
CN115190483B (en) Method and device for accessing network
CN114614998B (en) Account identity verification method, device, computer device and storage medium
CN117014226B (en) Service request authentication method, device, equipment, system and storage medium
CN112600843B (en) Authentication method, storage medium and gateway
CN115270087A (en) Vehicle-mounted terminal application program running method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant