CN114915500B - Self-media account management method and device based on PC desktop client - Google Patents

Self-media account management method and device based on PC desktop client Download PDF

Info

Publication number
CN114915500B
CN114915500B CN202210828615.8A CN202210828615A CN114915500B CN 114915500 B CN114915500 B CN 114915500B CN 202210828615 A CN202210828615 A CN 202210828615A CN 114915500 B CN114915500 B CN 114915500B
Authority
CN
China
Prior art keywords
media
user
credential
legal
media user
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
CN202210828615.8A
Other languages
Chinese (zh)
Other versions
CN114915500A (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.)
Beijing Resource Huiying Network Technology Co ltd
Original Assignee
Beijing Resource Huiying Network Technology 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 Beijing Resource Huiying Network Technology Co ltd filed Critical Beijing Resource Huiying Network Technology Co ltd
Priority to CN202210828615.8A priority Critical patent/CN114915500B/en
Publication of CN114915500A publication Critical patent/CN114915500A/en
Application granted granted Critical
Publication of CN114915500B publication Critical patent/CN114915500B/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
    • 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/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The application discloses a self-media account management method and a self-media account management device based on a PC desktop client, and the method comprises the following steps: acquiring media user credential information; using the media user credential information; media user credential detection; media user credential management. According to the method and the system, the account numbers are stored in the system in advance in a manual input or system introduction mode, unified management is carried out on the media account numbers, complexity of frequently switching the account numbers in work is reduced, workload is reduced, the media account numbers and the media account number credentials are saved, a user can be helped to quickly switch the media account numbers, a plurality of media can be issued in batches in one operation, workload is reduced, and work efficiency is improved.

Description

Self-media account management method and device based on PC desktop client
Technical Field
The application relates to the technical field of self-media account management, in particular to a self-media account management method and device based on a PC desktop client.
Background
With the development of the self-media industry, self-media people usually create accounts in multiple media, such as tremble, headline, microblog, hundred family number, enterprise number, and the like. When content is released, an official background of a certain media is usually logged in for operations such as article editing and article releasing, and the operations are repeated in such a way that the user logs out to log in other media after the article is released. If the number of published articles increases, the workload increases, which is not only troublesome but also time-consuming.
Disclosure of Invention
Therefore, the application provides a self-media account management method and device based on a PC desktop client, so as to solve the problem that self-media people repeatedly log in different accounts when releasing content in the prior art.
In order to achieve the above purpose, the present application provides the following technical solutions:
in a first aspect, a self-media account management method based on a PC desktop client, where the PC desktop client is developed by Electron, includes:
acquiring an access request of a user, extracting required user information according to the access request, and sending the user information to a server; the server side judges whether the user information is legal or not according to the user number; if the user information is legal, returning the corresponding user subordinate media user information according to the user number;
receiving user subordinate media user information returned by the server according to the user number;
accessing a corresponding media official background website according to the media user type;
acquiring the accessed website and verifying the accessed website with the existing corresponding website in the resource library;
after the verification is passed, acquiring and storing the media user credentials on the website page;
acquiring a request of a media user for accessing the official background address of the media, and sending the information of the media user to the server;
receiving a media user credential returned by the server;
judging whether the media user credential is legal or not;
if the user is legal, the user logs in the media.
Further, media user credential detection is also included, specifically:
receiving media user information returned by the server;
acquiring a media user number of user information, and sending the media user number to the server; the server side judges whether the data format of the media user number is legal or not; if the data format of the media user number is legal, comparing the data format with the data in the resource library to judge whether the media user number exists, and if so, associating the media user number with the media user credential;
receiving the media user credential sent by the server, verifying the media user credential information, and if the media user credential is legal, acquiring a media official website according to the media user type;
and if the media official website is successfully acquired, the media official website is accessed by carrying the media user credential, and whether the media user credential is effective is judged according to the address jumped by accessing the official website.
Further, the method also comprises user credential management, wherein the user credential management comprises: local cache user credential management, user credential management in a resource repository, and media user credential management in cloud storage.
Further, the step of judging whether the user information is legal by the server according to the user number further comprises:
judging whether the user number exists in the resource library or not and whether the account number state is normal or not;
judging whether the IP address of the user Internet exists in the common IP of the resource library or not, wherein the IP is not forbidden;
judging whether the access time of the user is more than 1 minute compared with the last access time in the resource library, and judging whether the access frequency is legal;
if the verification is legal, the access is judged to be legal, otherwise, the access is illegal.
Further, the accessing the corresponding media official background website according to the media user type further includes:
receiving account and password information input by a user;
verifying whether the media user is a legal user;
if the verification fails, the media account needs to be registered again under the media;
and if the verification is successful, jumping to the corresponding website.
Further, the obtaining the media user credential comprises: reading the website page cache folder, screening the specific file, reading the specific file, analyzing the content of the file, and checking the data format of the read content.
Further, saving the media user credentials comprises: encryption of media user credentials, local storage of media user credentials, database storage of media user credentials, and cloud storage of media user credentials.
Further, the database of media user credentials may need to be verified during storage, where the verification includes: the verification of the data format, the verification of the media user number, the decryption verification of the encrypted data and the verification of the decrypted data content.
Further, the acquiring a request of the media user to access the official background address of the media includes: obtaining the media user type and the media user number.
In a second aspect, a self-media account management device based on a PC desktop client includes:
the extraction module is used for acquiring an access request of a user, extracting required user information according to the access request and sending the user information to the server; the server side judges whether the user information is legal or not according to the user number; if the user information is legal, returning the corresponding user subordinate media user information according to the user number;
the receiving module is used for receiving user subordinate media user information returned by the server according to the user number;
receiving the media user credential returned by the server;
the access module is used for accessing the corresponding media official background website according to the media user type;
the verification module is used for acquiring the accessed website and verifying the accessed website with the existing corresponding website in the resource library;
after the verification is passed, acquiring and storing the media user credentials on the website page;
the sending module is used for acquiring a request of a media user for accessing the official background address of the media, and sending the information of the media user to the server;
the judging module is used for judging whether the media user credential is legal or not; if the user is legal, the user logs in the media.
Compared with the prior art, the method has the following beneficial effects that:
the invention provides a self-media account management method based on a PC desktop client, wherein the PC desktop client is developed by adopting Electron and comprises the following steps: acquiring media user credential information; using the media user credential information; media user credential detection; media user credential management. According to the method and the system, the account numbers are stored in the system in advance in a manual input or system introduction mode, unified management is carried out on the media account numbers, complexity of frequently switching the account numbers in work is reduced, workload is reduced, the media account numbers and the media account number credentials are saved, a user can be helped to quickly switch the media account numbers, a plurality of media can be issued in batches in one operation, workload is reduced, and work efficiency is improved.
Drawings
To more intuitively illustrate the prior art and the present application, several exemplary drawings are given below. It should be understood that the specific shapes, configurations and illustrations in the drawings are not to be construed as limiting, in general, the practice of the present application; for example, it is within the ability of those skilled in the art to make routine adjustments or further optimizations based on the technical concepts disclosed in the present application and the exemplary drawings, for the increase/decrease/attribution of certain units (components), specific shapes, positional relationships, connection manners, dimensional ratios, and the like.
Fig. 1 is a flowchart of a self-media account management method based on a PC desktop client according to an embodiment of the present disclosure;
fig. 2 is a second flowchart of a self-media account management method based on a PC desktop client according to an embodiment of the present disclosure.
Detailed Description
The present application will be described in further detail below with reference to specific embodiments thereof, with reference to the accompanying drawings.
In the description of the present application: "plurality" means two or more unless otherwise specified. The terms "first", "second", "third", and the like in this application are intended to distinguish the referenced objects without particular meaning in the technical meaning (e.g., emphasis on degree or order of importance, etc.) being construed). The terms "comprising," "including," "having," and the like, are intended to be inclusive and mean "not limited to" (some elements, components, materials, steps, etc.).
In the present application, terms such as "upper", "lower", "left", "right", "middle", and the like are usually used for the purpose of visual understanding with reference to the drawings, and are not intended to be an absolute limitation of the positional relationship in an actual product. Changes in these relative positional relationships are also considered to be within the scope of the present disclosure without departing from the technical concepts disclosed in the present disclosure.
Example 1:
referring to fig. 1, the present embodiment provides a self-media account management method based on a PC desktop client, including an application (specifically, a client), a member user (specifically, a user registered in the application), a media user (specifically, a user subordinate to the user registered in the application and related to media classification), a resource library (specifically, a remote database), and a system resource (specifically, a remote server), where the client is developed by using an Electron, and the method specifically includes:
s1: acquiring credential information;
the application program (particularly a client) acquires a member user access request, and extracts required member user information from the access request, wherein the information comprises a member user number, access time, an internet IP address and the like.
And when the system resource judges that the member user information is legal according to the member user number, returning the corresponding member user subordinate media user information according to the member user number.
Before judging the validity of the member user information, the method further comprises the following steps: and judging whether the member user number exists in a resource library (particularly a database) or not, wherein the account state is normal. And judging whether the Internet IP address of the member user exists in the commonly used IP of the resource library or not, wherein the IP is not forbidden. And judging whether the access time of the member user is more than 1 minute compared with the latest access time in the resource library, and judging that the access frequency is legal. And if the verification is legal, judging that the access of the application program is legal. Otherwise it is illegal.
And after the system resource (particularly the server) receives the operation information, judging whether the operation information is legal, if so, associating the member user number in the operation information with the media user information of the resource library and returning to the application program, otherwise, returning error code information.
The legal information returned by the application program and received by the system resource comprises: media number, media user name, media user type, registration time, etc. The received error information comprises an error code, an error description and reminding information.
After receiving the legal media information, the application program accesses the corresponding media official background website according to the type of the media user, and acquires the credential of the media user under the appointed website in the process of accessing the media official background website.
In the process of accessing the media official background website, the method further comprises the following steps: and judging whether the media user is a legal user or not and judging whether the accessed website is an appointed website or not. The application program accesses the media official background address, if the application program jumps to a login page, the application program needs to manually input an account and a password of the media user and then submits the account and the password for verification, whether the media user is a legal user is verified, and if the verification fails, the media account needs to be re-registered under the affiliated media. And if the verification is successful, the application program jumps to the corresponding website. And the application program acquires the skipped website and verifies the skipped website with the existing corresponding website in the resource library, if the skipped website exists in the resource library, the verification is successful, otherwise, the verification fails. Authentication fails, requiring the media user to re-enter the username and password for login.
And after the verification of the jump website is passed, the application program acquires the media user credentials on the website page. The acquisition credential includes: reading the page cache folder, screening the specific file, reading the specific file, analyzing the file content and verifying the data format of the read content.
And after the application program is judged to wait for page loading, reading the cache folder and obtaining the specific file from the cache folder. And if the cache folder does not exist, the application program acquires a refreshing instruction, and reads the cache folder again and searches files containing specific file names in a traversing manner after the page is refreshed.
Reading the content of the specific file and analyzing the content of the specific file comprises: and judging whether the specific file exists or not, and reading the content according to the specific coding format. And if the specific file does not exist, the application program acquires a refreshing instruction, waits for the page refreshing to be finished, and searches the file again. If a particular file exists, the content is read in accordance with a particular encoding format.
The verifying the content of the certificate comprises the following steps: and converting the data into a JSON format, and brushing and selecting the data key value pair of the specific data key according to the JSON format data. Reading all data keys in the JSON data format, judging whether the data key names are legal or not, if not, discarding, if so, acquiring data values according to the data keys, and recombining all legal key value pairs into new JSON data, wherein the slave data is the media user credential.
After the user credentials of the media user are obtained, the user credentials of the media user need to be stored, wherein the user credentials of the media user need to be stored, and the user credentials of the media user comprise encryption of the media user credentials, local storage of the media user credentials, database storage of the media user credentials and cloud storage of the media user credentials.
The encryption of the media user credentials comprises: creation of a key, generation of encrypted content. The application program acquires the number of the media user, and the number can be used as an RSA encryption key after being encrypted by md 5. The application encrypts the media user credential JSON content with the generated key through an RSA encryption algorithm.
Local storage of media user credentials: after the application program obtains the legal media user credentials, the media user number is used as a file name, the credentials JSON data are used as file contents, and the file names and the document JSON data are stored in a computer cache directory and used as a local cache.
Database storage of media user credentials: the application program sends the generated encrypted media user credentials and the media user number to a system resource end, the media user resource end verifies the data after receiving the data sent by the client, and the data is stored in a database if the data is judged to be legal. Otherwise, the data is illegal and the application needs to resubmit the data.
The system resource end receives the data sent by the application program and checks the data, wherein the checking comprises the following steps: the verification of the data format, the verification of the media user number, the decryption verification of the encrypted data and the verification of the decrypted data content.
And (3) checking the data format: data sent by the application program to the system resource end is defaulted to be in a JSON format, data received by the system resource end is checked to be in the JSON format, and if the data is legal, the data is analyzed to obtain a media user number and encrypted certificate data of the media user. Otherwise, the format is illegal, and the corresponding error information is returned to the application program end.
The verification of the media user number includes: and judging whether the media user number exists in the resource library or not, wherein the number state is normal. If not, or if the state is not normal, the check fails. And returning the error information corresponding to the application program end.
And the decryption verification of the encrypted data comprises the steps of carrying out md5 encryption on the obtained media user number to be used as a key for RSA decryption, decrypting the obtained encrypted media user certificate, if the analysis is successful, indicating that the data is legal, and if the data is illegal, returning the data to an error message corresponding to the application program end.
And (3) verifying the decrypted data content: the method comprises the verification of the decrypted data format and the verification of the decrypted data content. And (4) the decrypted data tries to convert the JSON format, if the conversion fails, the data is represented as an illegal format, and the error information corresponding to the application program end is returned. Otherwise, the data is legal, the data is analyzed to obtain all key value pairs in the data, whether the keys accord with the media user attribute or not and whether the values accord with the media user attribute or not are judged, and if all the key value pairs are legal, the data is legal media user certificate data.
Cloud storage of user data: to ensure the security of the data, cloud storage is used as a media user credential backup storage. The detailed description refers to "database storage of user credentials".
S2: using the media user credentials;
the application program acquires a request of the media user for accessing the official background address of the media, and sends the media user information including the media user number to the system resource end. The system resource receives the request data sent by the application program and analyzes the data to obtain the media user number, the media user number is verified, if the verification is legal, the media user credential is obtained from the resource library and returned to the application program end, the application program end obtains the media user credential to check, and if the verification is legal, the media user credential is used to realize the automatic login of the media user.
The application program acquires a request of a media user for accessing the official background address of the media, and the request comprises the following steps: and acquiring the type of the media user and the number of the media user.
Before the media user type and the user number are acquired, whether the member user exists in the resource library or not is judged, and the account state is normal. And after receiving the starting instruction, the application program requires to input a member user name and a member user password to log in the application program, receives the input member user name and the member user password, and sends the data to the system resource end. The system resource end analyzes the transmitted data to obtain a member user name and a member user password, compares the member user name and the member user password with the data in the resource library, judges whether the member user name and the member user password exist in the resource library, and if the member user name and the member user password do not exist in the resource library, returns error information of the client end and prompts the member user name or the member password to be input again. If the member user name exists, the member user name is legal, the member user name is associated with the subordinate media user, and the media user information is returned, wherein the media user information comprises a media user number and a media user type.
After the media user type and the media user number are acquired, acquiring the media official website to which the media user belongs is included. The application program sends the media user type to the system resource end, and the system resource extracts the required media user type from the access request and carries out format verification on the media user type. The media user type is defaulted to be a positive integer numerical type, if the data is a non-positive integer type in the format verification process, the data is represented as illegal data, if the data type is a positive integer type, the media user type format is represented to be legal, the media user type data is compared with data in a resource library, and if the media user type data exists in the resource library, the media user type and a corresponding media official address are correlated and returned to an application program end. Otherwise, returning the error information to the application program terminal.
The application program acquires and accesses a legal media official website, and the acquisition of the media user credentials in the resource library, the acquisition of the media user credentials in the local cache and the acquisition of the media user credentials in the cloud storage are included at the moment.
Acquiring the media user credentials in the resource library: the application program sends the media user number to the system resource end, the system resource end receives the data sent by the application program and carries out data format verification, if the format is wrong, the data is represented as illegal data, error information is returned to the application program end, and a 'format is wrong' is prompted. If the format is legal, comparing the media user number with the data in the resource library, judging whether the media user number exists in the resource library or not, and if the media user number does not exist or the state is abnormal, returning error information to the application program end to prompt illegal data. If the media user number is legal, the media user number is associated with the media user credential, and the media user credential is returned to the application program terminal.
Obtaining the application credential in the local cache: if the application fails to request the media user credentials from the repository, the application may retrieve the media user credentials from the local cache. The method comprises the steps of judging whether a media user credential file exists in a local cache or not and verifying the format of the media user credential file in the local cache. The application program obtains the media user number, reads the file content from the appointed cache file according to the media user number, and if the file does not exist, the application program indicates that the media user credential does not exist in the local cache. If the file content can be acquired and the file content has data that is not null, it indicates that the media user credential file exists in the local cache. And verifying the read file content format, including judging whether the data format is a JSON type, if so, reading all key value pair data, and judging whether the median of the key value pairs is null. If the media user credential format is legal, the credential is returned to the application end.
Acquiring the media user credentials in the cloud storage: if the media user credential data does not exist in the local cache or the credential data is illegal, the application may retrieve the historical credential from the cloud storage. The method comprises the steps of judging whether a password is legal when the cloud storage service is requested, and judging whether a media user credential exists in the cloud storage. The application program acquires the media user number, and accesses the cloud storage WebApi address by combining the password provided by the cloud storage, if the cloud storage access password is invalid, the access is illegal, a new cloud storage access password needs to be applied again, if the access application passes, the media user credential is acquired according to the media user number, if the request returns to the null data, the media user credential does not exist, and otherwise, the request data is returned to the application program end.
If the application program end obtains the media user credential from any one of a local cache, a remote resource library or cloud storage, and if the media user credential is legal (including a data format is legal, data decryption is correct, and a data key value pair is complete), the media user credential is attached to an access request to access a media official background address, so that automatic login is realized. Which comprises the following steps: the verification of the media user credential format, the decryption of the media user credential without error and the verification of the validity period of the media user credential. The media user credential defaults to a key value pair in a JSON format, the application program converts the credential content into the JSON format after acquiring the credential content, and if the conversion fails, the data format is represented as an illegal format, and an illegal data error message is prompted. If the conversion is successful, the data is subjected to RSA decryption, and if the decryption fails, the data is represented as illegal data, and illegal data error information is prompted. If the decryption is successful, reading all key value pair data to judge whether the key value pair data are null data, and if the key value pair data all exist data, using the media user credential to access the official background address. If the access page jumps to the designated website, the media user credential is valid, otherwise, the media user credential is invalid and needs to be obtained again and stored.
When the media user credentials are used, the threshold value is set once every 10 seconds for the request of the media user credentials, and if the access frequency is less than the set threshold value, abnormal access is judged, and the request is blocked.
S3: media user credential detection
The application program detects the media user credential by means of "heartbeat detection" in order to avoid the user credential failing, wherein the detection period is 10 minutes, and the detection period includes: the method comprises the steps of obtaining media user information, obtaining media user credential information and using media user credentials.
Acquiring the media user information: after the application program is started, the current member user is obtained, the system resource end obtains the requested member user according to the request of the current member user for the system resource end, the format of the requested member user is verified, the requested member user is compared with data in a resource library, if member user information exists, the member user information is associated with subordinate media user information, and the media user information is returned to the application program end. The media user information includes a user number, a media user type, and the like.
Acquiring the media user credential information: the application program acquires the media user number, requests the system resource according to the media user number, the system resource end acquires the media user number, if the data format of the media user number is legal, the data is compared with the data in the resource library to judge whether the media user number exists, and if the data format of the media user number exists, the media user number is associated with the media user credential to return the credential to the application program end.
The application program end obtains the media user credential information, verifies the credential information, and if the credential is legal, obtains the media official website according to the media user type. If the official website of the media is successfully acquired, the application program carries the media user credential to access the official website of the media, and whether the media user credential is valid is judged according to the address jumped by accessing the official website.
S4: user credential management
User credential management includes: the method comprises the steps of local cache user credential management, user credential management in a resource library and media user credential management in cloud storage.
Local cache user credential management, comprising: and creating and updating the local cache credential file. After the media user credentials are successfully acquired for the first time, the media user credentials file is created in a local cache. If the media user uses the certificate without errors, the media user certificate data in the local cache can be automatically updated, and the timeliness of the media user certificate data is ensured.
Management of media user credentials in a repository, comprising: and creating, updating and deleting the media user credentials in the resource library. After the first successful acquisition of the medium user credential, the medium user credential is created in the resource library, and if the medium user credential is valid in the using process of the medium user, the medium user credential in the resource library is also updated. If a member user wants to delete a certain media user, the member user also deletes the corresponding media user credentials in the resource library at the same time.
Management of media user credentials in cloud storage, comprising: and creating, adding and deleting the media user credentials in the cloud storage. After the media user credential is successfully acquired for the first time, the credential is created in the resource library, and if the media user credential is valid in the using process of the media user, a new media user credential is added in the cloud storage. If a member user wants to delete a certain media user, the member user also deletes the historical credential information corresponding to the media user in the cloud storage.
The four modules of obtaining the medium user certification information, using the medium user certification information, detecting the medium user certification and managing the medium user certification form a complete user certification using process.
Example 2:
referring to fig. 2, the present embodiment provides a self-media account management method based on a PC desktop client from another perspective, including:
s1: acquiring self-media account information of a user;
specifically, the self-media account number is from a registered user and can be stored in the system in a manual entry or import mode. Including information such as user name, nickname, password, media type, etc. The method has the functions of account adding, account modifying, account forbidding, account importing, account exporting and the like.
In order to uniformly manage the self-media accounts, the accounts need to be stored in the system in advance in a manual entry or system import mode. The complexity of frequently switching accounts in work can be reduced by recording information in advance, and the workload is reduced.
S2: detecting whether the self-media account is in a login state;
and accessing the affiliated media official background webpage through the system from the media account, and detecting whether the terminal logs in or not according to the page prompt information. Whether the system is logged in or not can be detected through a heartbeat detection function of the system.
The user can access the media official background to which the account belongs by accessing the recorded self-media account list. The system can obtain user login credentials from a local or remote server in the login process, and if the login credentials exist, the user login credentials are attached to the user information to access the media background. If the credential does not exist, a prompt similar to 'needing to input a user name and a password' appears when the user logs in the background of the media, and the media account and the password need to be manually input at the moment. If the user credentials are invalid, the media account number and password also need to be manually entered.
The user credential of the media account is an important part for the user to quickly access the media, and is also a main basis for quickly switching the media account and switching the media platform.
The credentials of each media user consist of a user name, user data. The set of JSON data in which the user data is mainly attributed to "KEY" and "VALUE" includes basic information such as a user name and a timestamp, and is encrypted data stored in the local terminal by the server program and is information temporarily or permanently stored by the client computer.
The member users of the system add media users by means of manual entry or file import, and the media user information is stored in a PersonInfo database table and comprises information such as a serial number, a media account number, a media password, a user nickname, a member number, a media category, system time and the like. The method comprises the steps that a member user manages a media user and needs to access a media member user list, the page is used as a navigation page of the media user, a remote WebApi address is loaded through an ajax method of Javascript when the page is accessed, a member serial number is transmitted at the same time, and a GetPersonanlist method in the remote WebApi inquires media member information through a SelectPersonanlist storage process of a database from a PersionInfo table of the database according to the transmitted member number.
If data exists in the database, the page list displays the media member information, wherein the UserName attribute of the media member is displayed in the page, and the serial number ID is used as page hidden data and exists in the attribute of the html mark of the page.
When a media user accesses the official website of the media for the first time through the system, the user credentials are automatically recorded, and the specific process is as follows: because the user is the official website for accessing the media for the first time, the system does not have the credential information of the media user, so the official address for accessing prompts similar information of 'please input the user name and the password for logging in', and the user needs to manually input the user name and the user password of the media. After the media account passes the verification, the user jumps to a media background address, the address is configured in the system in advance, if the media user can access the address, the credential of the media account is generated, and the system extracts the credential of the media user by a method of' view. The evidence forms a group of Json format character string data through data format conversion, invokes InsertPersonTokenInfo storage process through a SavePersonTokenInfo method of WebApi, and stores the data into a TokenData field of a PersonTokenInfo data table to finish the storage of the media user evidence. Meanwhile, the data is stored in a disk of a client computer to be used as temporary data for backup data under the condition of non-ideal network conditions.
When a media user accesses the official website of the media for the first time through the system, the system can automatically add user credentials to avoid the user from repeatedly inputting a media user name and a media user password, and the specific process is as follows: firstly, when a member user double-clicks a media user name in an account list, a system judges an official background address of a media needing to be accessed according to a MediaType attribute field of the media user, if the address exists, the system creates a BrowserWindow of an Electron, the official background address of a media to which the account media belongs is accessed in a browser page mode, in the process, the system accesses a remote WebApi address by taking an ID attribute of a media member as a parameter to acquire user credential information, the WebApi address receives a transmitted media member ID parameter, the data is converted into a Json format from a data PersonTokenInfo table through a GetPersonTokenInfo method, data is inquired through a storage process SetPersonTokenInfo, if the TokenData exists, the data is analyzed into a Json format, corresponding data in the data is analyzed, the data assigned to the BrowserView of the Electron is read, the data can be loaded into a background page, and the page address can be loaded without error, and the website data can be automatically logged in the page, and the website data can be directly logged in the page without error.
When the member user uses the system, the timeliness of the media user credentials can be guaranteed, the system can automatically acquire the credentials of the user according to a specified time interval through a background thread in a heartbeat detection mode, the heartbeat detection mode is added to user information, and then the media background website is accessed. If the credential is invalid or the credential does not exist during the access acquisition, the user is reminded that manual login needs to be resumed. If the credential is valid, the system will retrieve the new credential update to the local save and the remote server save.
Specifically, the media user credentials are automatically detected every 10 minutes. The method can not only discover the login state of the media user in time and avoid the interruption of other services caused by the failure of the user credential, but also postpone the user credential under the condition that the user logs in and prolong the failure time of the user credential. The specific method comprises the following steps: the system will start a timer with a period of 10 minutes. The system can obtain the current member ID every 10 minutes, access the GetPersonanlist method of the remote WebApi by taking the ID as a parameter, query all account lists by calling a SelectPersonanlist storage process of a database, obtain the ID attribute of each media account if data exists, access the GetPersonantokenInfo method of the WebApi by taking the attribute as the parameter, obtain the TokenData attribute of a media user by calling the SelectPersonantokenInfo storage process, the attribute is a media user credential, access the media official website by a hidden call of browse View, the content, the session, the cookie, the set method and the like, and can judge whether the credential background is valid according to the address of media skip. If the media user credentials are invalid, the user is required to refer to the operation of the media user when the media user accesses the official website of the media for the first time through the system, and the credentials are acquired again.
In order to ensure the security of the media user credentials, the user credentials are stored in a local disk to be used as a cache, stored in a server side to be called as other modules, and also stored in a cloud storage. Cloud storage is a mode of online storage on the internet, i.e., data is stored on a plurality of virtual servers, which are usually hosted by third parties, rather than on dedicated servers. The data storage requirement is met by purchasing data storage services of a large data center such as Ali cloud and the like. The member user can store the user credentials into the cloud storage through the configuration module of the system, and the specific flow is as follows: when a media user logs in a media official background for the first time, the system can acquire the credential of the media user, and json format data of the credential is stored in cloud storage through a WebApi interface provided by cloud storage through a net. In the heartbeat detection and non-first login processes, data are updated to the cloud storage in the mode, and the security of the media user credentials is guaranteed. When the user credential is called from the cloud storage, the WebApi provided by the cloud storage can be called through a net.request method of an Electron to obtain the user credential, and the credential is used through a view.webcontext.session.cookies.set method to realize automatic login.
Table 1: media account information table (PersonInfo)
Figure DEST_PATH_IMAGE001
Table 2: media account voucher table (PersonTokenInfo)
Figure 124325DEST_PATH_IMAGE002
S3: acquiring and storing a user login credential;
if the user is not in the login state, the user is required to access an official background webpage through the system and input an account name and an account password for login. And in the login process, the system acquires login credentials and stores the login credentials to a local or remote server.
In order to ensure the security of data, the credential is stored after being encrypted by RSA, and the user name and password information of the media account are not stored.
S4: managing the self-media according to the user credential;
the self-media management includes functions of article editing, article deletion, article publishing, and the like.
In the traditional self-media management, a user needs to manually log in different media backgrounds, quit the media backgrounds after the operation is finished, and repeat the operation in sequence. The system can help the user to quickly switch the media account by storing the media account and the media account credential, and can release a plurality of media in batch by one operation, thereby reducing the workload and improving the working efficiency.
Example 3:
the embodiment provides a self-media account management device based on a PC desktop client, including:
the extraction module is used for acquiring an access request of a user, extracting required user information according to the access request and sending the user information to the server; the server side judges whether the user information is legal or not according to the user number; if the user information is legal, returning the corresponding user subordinate media user information according to the user number;
the receiving module is used for receiving the user subordinate media user information returned by the server according to the user number;
receiving the media user credential returned by the server;
the access module is used for accessing the corresponding media official background website according to the media user type;
the verification module is used for acquiring the accessed website and verifying the accessed website with the existing corresponding website in the resource library;
after the verification is passed, acquiring and storing the media user credentials on the website page;
the sending module is used for acquiring a request of a media user for accessing the official background address of the media, and sending the information of the media user to the server;
the judging module is used for judging whether the media user credential is legal or not; if the user is legal, the user logs in the media
For specific limitations of the self-media account management apparatus based on the PC desktop client, reference may be made to the above limitations on the self-media account management method based on the PC desktop client, and details are not repeated here.
All the technical features of the above embodiments can be arbitrarily combined (as long as there is no contradiction between the combinations of the technical features), and for the sake of brevity, all the possible combinations of the technical features in the above embodiments are not described; these examples, which are not explicitly described, should be considered to be within the scope of the present description.
The present application has been described in considerable detail with reference to certain embodiments and examples thereof. It should be understood that several general adaptations or further innovations of these specific embodiments can also be made based on the technical idea of the present application; however, such conventional modifications and further innovations can also fall into the scope of the claims of the present application as long as they do not depart from the technical idea of the present application.

Claims (10)

1. A self-media account management method based on a PC desktop client is characterized in that the PC desktop client is developed by adopting Electron and comprises the following steps:
acquiring an access request of a user, extracting required user information according to the access request, and sending the user information to a server; the server side judges whether the user information is legal or not according to the user number; if the user information is legal, returning the corresponding user subordinate media user information according to the user number;
receiving user subordinate media user information returned by the server according to the user number;
accessing a corresponding media official background website according to the media user type;
acquiring the accessed website and verifying the accessed website with the existing corresponding website in the resource library;
if the accessed website is not in the resource library, the authentication fails, and the media user inputs the user name and the password again for logging in;
if the accessed website exists in the resource library, the verification is passed;
after the verification is passed, acquiring and storing the media user credentials on the website page;
judging whether the media user credential is legal or not;
if the user is legal, the user logs in the media.
2. The PC desktop client-based self-media account management method according to claim 1, further comprising media user credential detection, specifically:
receiving media user information returned by the server;
acquiring a media user number of user information, and sending the media user number to the server; the server side judges whether the data format of the media user number is legal or not; if the data format of the media user number is legal, comparing the data format with the data in the resource library to judge whether the media user number exists, and if so, associating the media user number with the media user credential;
receiving the media user credential sent by the server, verifying the media user credential information, and if the media user credential is legal, acquiring a media official website according to the type of the media user;
and if the media official website is successfully acquired, the media official website is accessed by carrying the media user credential, and whether the media user credential is effective is judged according to the address jumped by accessing the official website.
3. The PC desktop client based self-media account management method of claim 1, further comprising user credential management, the user credential management comprising: local cache user credential management, user credential management in a resource repository, and media user credential management in cloud storage.
4. The PC desktop client-based self-media account management method of claim 1, wherein the server, according to the user number, determining whether the user information is legal further comprises:
judging whether the user number exists in the resource library or not and whether the account number state is normal or not;
judging whether the internet IP address of the user exists in the common IP of the resource library or not, wherein the IP is not forbidden;
judging whether the access time of the user is more than 1 minute compared with the last access time in the resource library, and judging that the access frequency is legal;
if the verification is legal, the access is judged to be legal, otherwise, the access is illegal.
5. The PC desktop client-based self-media account management method according to claim 1, wherein the accessing of the corresponding media official background website according to the media user type further comprises:
receiving account and password information input by a user;
verifying whether the media user is a legal user;
if the verification fails, the media account needs to be registered again under the media;
and if the verification is successful, jumping to the corresponding website.
6. The PC desktop client-based self-media account management method of claim 1, wherein the obtaining media user credentials comprises: reading a website page cache folder, screening a specific file, reading the specific file, analyzing the content of the file, and checking the data format of the read content; the specific file is a file with a specific file name.
7. The PC desktop client based self-media account management method of claim 1, wherein saving the media user credentials comprises: encryption of media user credentials, local storage of media user credentials, database storage of media user credentials, and cloud storage of media user credentials.
8. The PC desktop client based self-media account management method of claim 7, wherein the database of media user credentials is stored in a database that requires verification, the verification comprising: the verification of the data format, the verification of the media user number, the decryption verification of the encrypted data and the verification of the decrypted data content.
9. The PC desktop client-based self-media account management method according to claim 1, wherein the acquiring a request of a media user to access the official background address of the media authority comprises: and acquiring the type of the media user and the number of the media user.
10. A self-media account management device based on a PC desktop client is characterized by comprising:
the extraction module is used for acquiring an access request of a user, extracting required user information according to the access request and sending the user information to the server; the server judges whether the user information is legal or not according to the user number; if the user information is legal, returning the corresponding user subordinate media user information according to the user number;
the receiving module is used for receiving user subordinate media user information returned by the server according to the user number;
the access module is used for accessing the corresponding media official background website according to the media user type;
the verification module is used for acquiring the accessed websites and verifying the accessed websites with the existing corresponding websites in the resource library;
if the accessed website is not in the resource library, the authentication fails, and the media user inputs the user name and the password again to log in;
if the accessed website exists in the resource library, the verification is passed;
after the verification is passed, acquiring and storing the media user credentials on the website page;
the judging module is used for judging whether the media user credential is legal or not; if the user is legal, the user logs in the media.
CN202210828615.8A 2022-07-15 2022-07-15 Self-media account management method and device based on PC desktop client Active CN114915500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210828615.8A CN114915500B (en) 2022-07-15 2022-07-15 Self-media account management method and device based on PC desktop client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210828615.8A CN114915500B (en) 2022-07-15 2022-07-15 Self-media account management method and device based on PC desktop client

Publications (2)

Publication Number Publication Date
CN114915500A CN114915500A (en) 2022-08-16
CN114915500B true CN114915500B (en) 2022-10-14

Family

ID=82771994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210828615.8A Active CN114915500B (en) 2022-07-15 2022-07-15 Self-media account management method and device based on PC desktop client

Country Status (1)

Country Link
CN (1) CN114915500B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116226575A (en) * 2023-02-23 2023-06-06 北京麦克斯泰科技有限公司 Media account management method and system based on automation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101124577A (en) * 2004-11-01 2008-02-13 史蒂文·斯沃姆科夫斯基 System and method for providing and access-controlling electronic content complementary to a printed book
CN104364792A (en) * 2012-02-01 2015-02-18 亚马逊科技公司 Account management for multiple network sites
CN107864208A (en) * 2017-11-17 2018-03-30 南京厚建软件有限责任公司 A kind of method of new media information fusion
CN114726621A (en) * 2015-10-22 2022-07-08 甲骨文国际公司 Method and system for end-user initiated access server plausibility check

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9374369B2 (en) * 2012-12-28 2016-06-21 Lookout, Inc. Multi-factor authentication and comprehensive login system for client-server networks
CN104702575B (en) * 2013-12-06 2018-09-07 中国移动通信集团山东有限公司 A kind of account management method, management platform and system
US10757107B2 (en) * 2015-02-27 2020-08-25 Dropbox, Inc. Application-assisted login for a web browser
CN110581824A (en) * 2018-06-07 2019-12-17 苏州梦嘉信息技术有限公司 Quick login management system based on multiple WeChat public numbers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101124577A (en) * 2004-11-01 2008-02-13 史蒂文·斯沃姆科夫斯基 System and method for providing and access-controlling electronic content complementary to a printed book
CN104364792A (en) * 2012-02-01 2015-02-18 亚马逊科技公司 Account management for multiple network sites
CN114726621A (en) * 2015-10-22 2022-07-08 甲骨文国际公司 Method and system for end-user initiated access server plausibility check
CN107864208A (en) * 2017-11-17 2018-03-30 南京厚建软件有限责任公司 A kind of method of new media information fusion

Also Published As

Publication number Publication date
CN114915500A (en) 2022-08-16

Similar Documents

Publication Publication Date Title
JP7222036B2 (en) Model training system and method and storage medium
US9473568B2 (en) Detecting code injections through cryptographic methods
EP3164795B1 (en) Prompting login account
US20170289134A1 (en) Methods and apparatus for assessing authentication risk and implementing single sign on (sso) using a distributed consensus database
CN107277049B (en) Access method and device of application system
US9413750B2 (en) Facilitating single sign-on (SSO) across multiple browser instance
US9276929B2 (en) Method and apparatus for multi-domain authentication
US8898765B2 (en) Signing off from multiple domains accessible using single sign-on
US9432358B2 (en) System and method of authenticating user account login request messages
EP3629210A2 (en) Systems and methods for securing customer data in a multi-tenant environment
US20110302277A1 (en) Methods and apparatus for web-based migration of data in a multi-tenant database system
US10476733B2 (en) Single sign-on system and single sign-on method
US20110078437A1 (en) Simplifying addition of web servers when authentication server requires registration
CN108632241B (en) Unified login method and device for multiple application systems
CN106487744A (en) A kind of Shiro verification method based on Redis storage
US9059987B1 (en) Methods and systems of using single sign-on for identification for a web server not integrated with an enterprise network
CN108259502A (en) For obtaining the identification method of interface access rights, server-side and storage medium
US20210342438A1 (en) Platform for generation of passwords and/or email addresses
US20150317463A1 (en) Active directory for user authentication in a historization system
CN114915500B (en) Self-media account management method and device based on PC desktop client
CN112434054A (en) Audit log updating method and device
CN112733103A (en) Interface access control method and device
JP2008015733A (en) Log management computer
US11425132B2 (en) Cross-domain authentication in a multi-entity database system
CN108683651B (en) Single sign-on method, server and system

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