CN115567885B - Mobile phone short message authorized hosting service system - Google Patents

Mobile phone short message authorized hosting service system Download PDF

Info

Publication number
CN115567885B
CN115567885B CN202211178027.0A CN202211178027A CN115567885B CN 115567885 B CN115567885 B CN 115567885B CN 202211178027 A CN202211178027 A CN 202211178027A CN 115567885 B CN115567885 B CN 115567885B
Authority
CN
China
Prior art keywords
short message
mobile phone
cloud platform
module
authorization
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
CN202211178027.0A
Other languages
Chinese (zh)
Other versions
CN115567885A (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.)
Shandong Inspur Scientific Research Institute Co Ltd
Original Assignee
Shandong Inspur Scientific Research Institute 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 Shandong Inspur Scientific Research Institute Co Ltd filed Critical Shandong Inspur Scientific Research Institute Co Ltd
Priority to CN202211178027.0A priority Critical patent/CN115567885B/en
Publication of CN115567885A publication Critical patent/CN115567885A/en
Application granted granted Critical
Publication of CN115567885B publication Critical patent/CN115567885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a mobile phone short message authorization hosting service system, which establishes a communication link among a mobile phone application, a cloud platform and a third party service by using an MQTT, so that the step-by-step pushing of short messages meeting the conditions is realized. The APP in the system is responsible for monitoring short messages of the mobile phone and judging whether the short messages need to be pushed to the cloud platform or not; the cloud platform not only realizes the verification of information such as authority and the like, but also mainly realizes the distribution of short messages, and the short messages are respectively pushed to different third party services according to rules; and the third party service responds to the short message according to the respective service requirement. According to the invention, the personal mobile phone short message is connected with the third party service by means of the cloud platform, and the authorization of the third party is completed under the condition that the safety of the user short message is ensured.

Description

Mobile phone short message authorized hosting service system
Technical Field
The invention relates to a mobile phone short message authorization hosting service system, and belongs to the technical field of Internet of things.
Background
With the development of crawler/anticreeper technologies, when crawling website data, access rights of multiple accounts are often required due to various flow restrictions, so that data crawling with maximum efficiency can be realized. At present, the main functions of the mobile phone short message are changed, and the mobile phone short message is no longer a way for people to communicate. Most of the purposes are to collect login authorization codes of all platforms; a small portion of notification information; there is also part of the advertising information. The crawler writer has special requirements on the short message verification code, and particularly when capturing data of certain websites, the crawler writer often needs to log in to the certain websites through the short message verification code. When a user hosts the operation authority of some internet of things equipment to a third party service, the user often needs to provide the authority to the third party service in a short message verification mode, and needs to consider participation, so that the processing is inconvenient.
Disclosure of Invention
The invention aims to provide a mobile phone short message authorization hosting service system which is convenient for a user to host short message authorization to a third party service.
The invention aims to achieve the aim, and the aim is achieved by the following technical scheme:
a mobile phone short message authorization hosting service system comprises a mobile phone application end, a cloud platform and a third party service end; the mobile phone application comprises a login authorization module, a short message pushing rule module and a short message monitoring and pushing module;
the login authorization module is used for realizing authentication of a current user on the cloud platform and is realized by using a Shiro framework; the working procedure is as follows:
(1) Initializing an environment, loading information of a configuration file, and obtaining a security manager;
(2) Acquiring a current main body and a session, and storing information into the session;
(3) Acquiring stored content from the session, and comparing whether the stored content is consistent with the stored value;
(4) Judging whether the current user is authenticated, if so, packaging the account number and the password into a UsernamePasswordToken, and checking whether the appointed role authority exists;
the short message pushing rule module can set a short message pushing rule, the matching mode of the pushing rule and the short message is realized by using a regular expression, and the information conforming to the pushing rule is pushed to the cloud platform;
the short message monitoring and pushing module is responsible for monitoring the short message content received by the mobile phone under the condition that the user gives authorization, and pushing the short message content to be pushed to the cloud platform side in an MQTT (message passing through) mode after the pushing rule is matched;
the short message monitoring is realized by a short message database through an observer mode, and specifically comprises the following steps: when the mobile phone receives the information, a class is created to inherit from the ContentObserver class, an onChange method in the class is rewritten, when a short message database is changed, the method is called back to the onChange method, and whether the method needs to be pushed to a cloud platform or not is judged in the onChange method;
the cloud platform mainly comprises a login and registration module, a short message application service module and a short message distribution module;
the login registration module is matched with a mobile phone user and a third party to complete the registration and login functions;
the short message service application module is used for selecting a short message service opening function from the cloud platform of the service provider, and after the function is opened, corresponding short messages are forwarded to a third party service through the cloud platform;
and the short message distribution module determines a third party service provider needing the short message and pushes the short message to the third party service provider needing the short message by using the MQTT.
Preferably, the login authorization module may further use an OAuth framework to implement the following specific implementation manner:
the OAuth sets an authorization layer between the mobile phone application end and the third party service end, the mobile phone application end can only log in the authorization layer, when logging in, the mobile phone application end designates the authority range and the validity period of the token of the authorization layer, and after logging in the authorization layer, the third party service end opens the data stored by the user to the mobile phone application end according to the authority range and the validity period of the token.
The invention has the advantages that: according to the invention, the personal mobile phone short message is connected with the third party service by means of the cloud platform, and the authorization of the third party is completed under the condition that the safety of the user short message is ensured.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention.
FIG. 1 is a schematic flow chart of the present invention.
Fig. 2 is a schematic diagram of a flow chart of interaction between an application end of a mobile phone and a cloud platform.
Fig. 3 is a schematic diagram of an interaction flow between a third party server and a cloud platform.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, the system establishes a communication link among the mobile phone application end, the cloud platform and the third party server end by using the MQTT, so that the step-by-step pushing of the short messages meeting the conditions is realized. The APP in the system is responsible for monitoring short messages of the mobile phone and judging whether the short messages need to be pushed to the cloud platform or not; the cloud platform not only realizes the verification of information such as authority and the like, but also mainly realizes the distribution of short messages, and the short messages are respectively pushed to different third party services according to rules; and the third party service responds to the short message according to the respective service requirement.
The mobile phone application terminal mainly comprises the following modules:
1. login authorization module
The authentication method is used for realizing authentication of the current user on the cloud platform and is realized by using a Shiro or OAuth mode.
Among these, shiro is an open source security framework that provides authentication, authorization, cryptography, and session management. Information of users, rights, roles, etc. in different items may be stored in various forms. The main working flow is as follows:
1. initializing an environment, such as loading information of a shiro.ini configuration file; 2. acquiring a security manager; 3. acquiring a current subject (user); 4. acquiring a session of a current main body; 5. storing some content into the session; 6. again, the stored content is acquired from the session, and whether the stored content is consistent with the stored value is compared; 7. judging whether the current user is authenticated or not; 8. packaging the account number and the password into a UsernamePasswordToken; 9. it is checked whether there is a designated role authority.
The authorization logic for OAuth is as follows:
OAuth sets an authorization layer between the "client" and the "service provider". The "client" cannot directly log in to the "service provider" and only logs in to the authorization layer, thereby distinguishing the user from the client. The token used by the "client" login authorization layer is different from the user's password. The user may specify the scope of authority and expiration date of the authorization layer token at the time of login. After the client logs in the authorization layer, the service provider opens the data stored by the user to the client according to the authority range and the validity period of the token.
2. Module for setting short message pushing rule
The short message pushing rule is set by the owner of the mobile phone, and determines which short message information is to be pushed to the cloud platform, and the matching mode of the pushing rule and the short message is generally realized by using a regular expression.
For example, there are the following matching rules:
, +/- [ vegetable bird post ]) + -
The short messages with the text beginning of [ bird house ] are matched, and the short messages with other formats cannot be successfully matched. Examples of text that failed to match:
the [ xx post ] is an express delivery service point
b. Express delivery receiving service point [ vegetable bird post house ]
c. The bird house is an express delivery service point
3. Short message monitoring and pushing module
Under the condition that the user gives authorization, the module is responsible for monitoring the short message content received by the mobile phone, and pushing the short message content to be pushed to the cloud platform side in an MQTT mode after the pushing rule is matched.
The monitoring of the short message is generally realized by monitoring a short message database through an observer mode. When the mobile phone receives a short message, the short message database changes. Android provides a ContentObserver class, and as long as a class is created to inherit from the ContentObserver class, an onChange method in the class is rewritten, and when a short message database changes, the onChange method is called back. In the onChange method, whether the short message content needs to be pushed to the cloud platform is judged, and if the short message content needs to be pushed, the MQTT service can be used for pushing the short message content to the cloud platform.
The cloud platform mainly comprises the following modules:
1. login registration module
And the mobile phone user and a third party are matched to complete the authorization functions of registration, login and the like.
2. Short message service application module
After the third party finishes registration in the cloud platform, the third party can select a mobile phone number requiring short message service opening to apply for short message service opening function in the cloud platform, and after the function is opened, the corresponding short message can be forwarded to the third party service through the cloud platform.
3. Short message shunt module
The mobile phone application end pushes the short message to the cloud platform, a short message distribution module determines which third party service provider needs the short message, and the short message is pushed to the third party service provider needing the short message by using the MQTT.
As shown in fig. 2 and 3, the main operation flow of the system includes:
a mobile phone user:
1. mobile phone user installs APP matched with cloud platform
2. The mobile phone user logs in and sets the short message pushing rule
3. The mobile phone APP starts to push short messages conforming to the rules to the cloud platform
Third party service provider:
4. third party service provider completes registration login on cloud platform
5. The third party service provider applies for the short message service.
6. The cloud platform distributes the mobile phone number for the third party service provider and temporarily binds the mobile phone number and the third party service provider
7. And the cloud platform starts to push the information bound with the third party service provider and pushed by the mobile phone end to the third party service provider.
Finally, it should be noted that: the foregoing description is only a preferred embodiment of the present invention, and the present invention is not limited thereto, but it is to be understood that modifications and equivalents of some of the technical features described in the foregoing embodiments may be made by those skilled in the art, although the present invention has been described in detail with reference to the foregoing embodiments. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (2)

1. The mobile phone short message authorization hosting service system is characterized by comprising a mobile phone application end, a cloud platform and a third party service end; the mobile phone application comprises a login authorization module, a short message pushing rule module and a short message monitoring and pushing module;
the login authorization module is used for realizing authentication of a current user on the cloud platform and is realized by using a Shiro framework; the working procedure is as follows:
(1) Initializing an environment, loading information of a configuration file, and obtaining a security manager;
(2) Acquiring a current main body and a session, and storing information into the session, wherein the main body is a user;
(3) Acquiring stored content from the session, and comparing whether the stored content is consistent with the stored value;
(4) Judging whether the current user is authenticated, if so, packaging the account number and the password into a UsernamePasswordToken, and checking whether the appointed role authority exists;
the short message pushing rule module can set a short message pushing rule, the matching mode of the pushing rule and the short message is realized by using a regular expression, and the information conforming to the pushing rule is pushed to the cloud platform;
the short message monitoring and pushing module is responsible for monitoring the short message content received by the mobile phone under the condition that the user gives authorization, and pushing the short message content to be pushed to the cloud platform side in an MQTT (message passing through) mode after the pushing rule is matched;
the short message monitoring is realized by a short message database through an observer mode, and specifically comprises the following steps: when the mobile phone receives the information, a class is created to inherit from the ContentObserver class, an onChange method in the class is rewritten, when a short message database is changed, the method is called back to the onChange method, and whether the method needs to be pushed to a cloud platform or not is judged in the onChange method;
the cloud platform mainly comprises a login and registration module, a short message application service module and a short message distribution module;
the login registration module is matched with a mobile phone user and a third party to complete the registration and login functions;
the short message service application module is used for selecting a short message service opening function from the cloud platform of the service provider, and after the function is opened, corresponding short messages are forwarded to a third party service through the cloud platform;
and the short message distribution module determines a third party service provider needing the short message and pushes the short message to the third party service provider needing the short message by using the MQTT.
2. The mobile phone short message authorization hosting service system according to claim 1, wherein the login authorization module is further implemented by using an OAuth framework as follows:
the OAuth sets an authorization layer between the mobile phone application end and the third party service end, the mobile phone application end can only log in the authorization layer, when logging in, the mobile phone application end designates the authority range and the validity period of the token of the authorization layer, and after logging in the authorization layer, the third party service end opens the data stored by the user to the mobile phone application end according to the authority range and the validity period of the token.
CN202211178027.0A 2022-09-27 2022-09-27 Mobile phone short message authorized hosting service system Active CN115567885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211178027.0A CN115567885B (en) 2022-09-27 2022-09-27 Mobile phone short message authorized hosting service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211178027.0A CN115567885B (en) 2022-09-27 2022-09-27 Mobile phone short message authorized hosting service system

Publications (2)

Publication Number Publication Date
CN115567885A CN115567885A (en) 2023-01-03
CN115567885B true CN115567885B (en) 2023-09-05

Family

ID=84743762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211178027.0A Active CN115567885B (en) 2022-09-27 2022-09-27 Mobile phone short message authorized hosting service system

Country Status (1)

Country Link
CN (1) CN115567885B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104255007A (en) * 2011-09-29 2014-12-31 甲骨文国际公司 Oauth framework
CN106210238A (en) * 2016-07-14 2016-12-07 北京小米移动软件有限公司 short message storage method and device
CN106341234A (en) * 2015-07-17 2017-01-18 华为技术有限公司 Authorization method and device
CN110990850A (en) * 2019-11-25 2020-04-10 维沃移动通信有限公司 Authority management method and electronic equipment
CN111027031A (en) * 2019-12-20 2020-04-17 深圳前海环融联易信息科技服务有限公司 Shiro-based authority management method and device and computer equipment
CN111062236A (en) * 2019-05-05 2020-04-24 杭州魔蝎数据科技有限公司 Data authorization method and device based on artificial intelligence
CN111131301A (en) * 2019-12-31 2020-05-08 江苏徐工信息技术股份有限公司 Unified authentication and authorization scheme
CN114048458A (en) * 2021-11-15 2022-02-15 合众新能源汽车有限公司 Oauth2 authorization mode and open platform cooperation method
CN115002280A (en) * 2022-05-11 2022-09-02 北京互连众信科技有限公司 Supervision and collection system and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104255007A (en) * 2011-09-29 2014-12-31 甲骨文国际公司 Oauth framework
CN106341234A (en) * 2015-07-17 2017-01-18 华为技术有限公司 Authorization method and device
CN106210238A (en) * 2016-07-14 2016-12-07 北京小米移动软件有限公司 short message storage method and device
CN111062236A (en) * 2019-05-05 2020-04-24 杭州魔蝎数据科技有限公司 Data authorization method and device based on artificial intelligence
CN110990850A (en) * 2019-11-25 2020-04-10 维沃移动通信有限公司 Authority management method and electronic equipment
CN111027031A (en) * 2019-12-20 2020-04-17 深圳前海环融联易信息科技服务有限公司 Shiro-based authority management method and device and computer equipment
CN111131301A (en) * 2019-12-31 2020-05-08 江苏徐工信息技术股份有限公司 Unified authentication and authorization scheme
CN114048458A (en) * 2021-11-15 2022-02-15 合众新能源汽车有限公司 Oauth2 authorization mode and open platform cooperation method
CN115002280A (en) * 2022-05-11 2022-09-02 北京互连众信科技有限公司 Supervision and collection system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于IMS的企业托管式融合通信解决方案设计与实现》;张榆;《中国优秀硕士学位论文全文数据库(信息科技辑)》;全文 *

Also Published As

Publication number Publication date
CN115567885A (en) 2023-01-03

Similar Documents

Publication Publication Date Title
CN105592065B (en) A kind of Website logging method and its login system based on SMS
JP4384117B2 (en) Data processing system user authentication method and system
CN103139200B (en) A kind of method of Web service single-sign-on
CN103685384A (en) User authentication method and device for preventing malicious harassment
US20140222478A1 (en) Method and system for creating and managing schedule on basis of social network
CN102111275A (en) User authentication and authorization method and system for implementing user authentication and authorization method
CN103269270A (en) Real-name authentication safe login method and system based on cell phone number
CN101582762A (en) Method and system for identity authentication based on dynamic password
CN109995748B (en) Verification code processing method, device and system
WO2023050524A1 (en) Im-based user identity authentication method and apparatus, and server and storage medium
CN113742676B (en) Login management method, login management device, login management server, login management system and storage medium
CN109726531A (en) A kind of marketer terminal security control method based on block chain intelligence contract
US10044735B2 (en) System and method for authentication of electronic communications
US20120015630A1 (en) Method and system for providing real-time alert notification
CN102868702A (en) System login device and system login method
CN103401686B (en) A kind of user's OTP WEB Authentication System and application process thereof
CN103379093B (en) A kind of method and device for realizing account intercommunication
CN101184107B (en) Network transaction system and method for executing network transaction using the system
CN107566396A (en) A kind of method based on dynamic password enhancing server VPN protocol securitys
CN108696538A (en) A kind of safety communicating method of the IMS systems based on key file
CN105306577A (en) Data sharing system and method between handheld devices based on APP
CN115567885B (en) Mobile phone short message authorized hosting service system
CN111162996B (en) Mail registration optimization method and system
CN104301285B (en) Login method for web system
CN116015683A (en) Authentication method, device, equipment and storage medium based on random key

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