CN104426843A - Micro blog account automatic authorization method and device - Google Patents
Micro blog account automatic authorization method and device Download PDFInfo
- Publication number
- CN104426843A CN104426843A CN201310367199.7A CN201310367199A CN104426843A CN 104426843 A CN104426843 A CN 104426843A CN 201310367199 A CN201310367199 A CN 201310367199A CN 104426843 A CN104426843 A CN 104426843A
- Authority
- CN
- China
- Prior art keywords
- authorization code
- client
- account
- micro blog
- blog server
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0892—Network architectures or network communication protocols for network security for authentication of entities by using authentication-authorization-accounting [AAA] servers or protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0815—Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a micro blog account automatic authorization method and device. The method comprises the following steps: a client, according to a preset period, periodically detecting a locally stored authorization code corresponding to an account that the client uses expires; if it is detected that the authentication code expires, sending the account to a micro blog server to enable the micro blog server to redistribute an authentication code to the account and return to the redistributed authentication code; and receiving the redistributed authentication code sent by the micro blog server, and updating the locally stored authentication code by use of the redistributed authentication code. The technical scheme provided by the invention can solve the problem that service that the client uses fails and stops due to expiration of the authentication code.
Description
Technical field
The present invention relates to the network communications technology, particularly relate to a kind of microblog account automatic authorization method and apparatus.
Background technology
Now, microblogging has become a kind of main communication means, also becomes the one way of life custom of people just gradually.No matter " developer " client when operating microblogging, such as, is the personal letter, concern etc. that capture microblogging or obtain user, all needs the support of client identity.
At present, micro blog server mainly uses this mode of OAuth to client identity authentication, its essence is exactly generate authorization code by the microblog account of client, client carries this authorization code in the operating process of microblogging, and micro blog server carries out authentication based on entrained authorization code to client identity.But in actual applications, authorization code may exceed the time limit, this just causes the service of the current use of client occur mistake and be stopped.
Summary of the invention
The invention provides a kind of microblog account automatic authorization method and apparatus, occur mistake and the problem that is stopped in order to solve the service exceeding the time limit to cause client to use because of authorization code.
First aspect provides a kind of microblog account automatic authorization method, comprising:
Whether client, according to the cycle of presetting, periodically detects the local authorization code corresponding with the account that described client uses stored and exceeds the time limit;
If detect that described authorization code exceeds the time limit, described account is sent to micro blog server by described client, to make described micro blog server again for described account distribution authorization code and to return the authorization code redistributed;
Described client receive described micro blog server send described in the authorization code redistributed, and with described in the authorization code redistributed upgrade the authorization code of local storage.
Second aspect provides a kind of microblog account automatic authorization method, comprising:
Micro blog server receives the account of the described client use that client periodically sends and the authorization code corresponding with described account, and wherein, it is local that described account and described authorization code are stored in described client;
Described micro blog server obtains the up duration of described authorization code, and the up duration of described authorization code is sent to described client, judges whether described authorization code exceeds the time limit for described client;
Described micro blog server receives described client in the described account judging to send after described authorization code exceeds the time limit, and is that described account distributes authorization code again;
The described authorization code redistributed is sent to described client by described micro blog server, upgrades the local authorization code stored to make the authorization code redistributed described in described client use.
The third aspect provides a kind of client, comprising:
Whether detection module, for according to the cycle of presetting, periodically detect the local authorization code corresponding with the account that described client uses stored and exceed the time limit;
Sending module, for when described detection module detects that described authorization code exceeds the time limit, sends to micro blog server by described account, to make described micro blog server again for described account distribution authorization code and to return the authorization code redistributed;
Receiver module, for receiving the authorization code redistributed described in the transmission of described micro blog server;
Update module, the authorization code for redistributing described in receiving with described receiver module upgrades the local authorization code stored.
Fourth aspect provides a kind of micro blog server, comprising:
Receiver module, the account that the described client periodically sent for receiving client uses and the authorization code corresponding with described account, wherein, it is local that described account and described authorization code are stored in described client;
Acquisition module, for obtaining the up duration of described authorization code;
Sending module, the up duration for the described authorization code obtained by described acquisition module sends to described client, judges whether described authorization code exceeds the time limit for described client;
Described receiver module also for, receive described client in the described account judging to send after described authorization code exceeds the time limit;
Distribution module, for receiving described client at described receiver module after judging the described account sent after described authorization code exceeds the time limit, is that described account distributes authorization code again;
Described sending module also for, the described authorization code redistributed is sent to described client, with make described client with described in the authorization code redistributed upgrade the local authorization code stored.
Microblog account automatic authorization method and apparatus provided by the invention, whether client periodically detects the local authorization code corresponding with the account that client uses stored and exceeds the time limit, and after detecting that this authorization code exceeds the time limit, the account of correspondence is sent to micro blog server, to make micro blog server again for this account distribution authorization code and to return the authorization code redistributed, after client receives the authorization code redistributed, the local authorization code stored is upgraded with the authorization code redistributed, realize the automatic authorization of authorization code, like this when client uses the situation can avoiding during service occurring that authorization code exceeds the time limit based on the authorization code that this locality stores, solve the service exceeding the time limit to cause client to use because of authorization code and occur mistake and the problem be stopped.
Accompanying drawing explanation
The flow chart of a kind of microblog account automatic authorization method that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the another kind of microblog account automatic authorization method that Fig. 2 provides for the embodiment of the present invention;
The flow chart of another microblog account automatic authorization method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of client that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of micro blog server that Fig. 5 provides for the embodiment of the present invention.
Embodiment
The flow chart of a kind of microblog account automatic authorization method that Fig. 1 provides for the embodiment of the present invention.As shown in Figure 1, described method comprises:
Whether 101, client is according to the cycle of presetting, periodically detect the local authorization code corresponding with the account that described client uses stored and exceed the time limit.
If 102 detect that described authorization code exceeds the time limit, described account is sent to micro blog server by described client, to make described micro blog server again for described account distribution authorization code and to return the authorization code redistributed.
103, described client receive described micro blog server send described in the authorization code redistributed, and with described in the authorization code redistributed upgrade the authorization code of local storage.
The present embodiment is applicable to various microblogging application scenarios, such as Sina's microblogging etc., be mainly used in carrying out timing renewal to what use in microblogging for authorization code client being carried out to identification authentication, thus the problem that the service that solution causes client to use because authorization code exceeds the time limit is stopped.Illustrate at this, the method that the present embodiment provides is not limited to carry out timing to the authorization code used in microblogging scene and upgrades, and is applicable to any scene needing to carry out authorization code timing renewal.
In the present embodiment, microblog users can browse interested information on microblogging, or on microblogging content distributed confession others browse.And " developer " client (hereinafter referred to as client) is done be capture microblogging and the concern of specifying " microblog users " once to send out microblogging in order to gather preservation etc.Each client has a microblog account (hereinafter referred to as account), the account of namely client use.In order to whether the operation of checking client is reasonable or effective, the account that micro blog server can use according to client generates corresponding authorization code, and whether the operation then based on this authorization code checking client is reasonable or effective.Wherein, authorization code has certain life period, will lose efficacy after authorization code exceeds the time limit.If after authorization code lost efficacy, client still used this authorization code, so micro blog server was based on the result mistake of this authorization code, and the service that such client uses will be stopped.
In the present embodiment, the account of use and the authorization code corresponding with this account are stored in client this locality by client, such as authorization code corresponding with this account for the account of client use can be configured in local extend markup language (Extensible Markup Language, referred to as XML) in file, but be not limited thereto.Further alternative, in order to ensure the fail safe of authorization code, can be encrypted authorization code.The configuration information that account client used to use XML and authorization code corresponding to this account are configured in XML file can be expressed as:
The authorization code that the account that the corresponding client of " weiboAccount " and " accessToken " difference in above-mentioned configuration information uses is corresponding with this account.
Whether in order to upgrade authorization code in time, client this locality presets a cycle, the cycle that client is preset according to this, periodically detect the local authorization code corresponding with the account that client uses stored and exceed the time limit; If detect that authorization code exceeds the time limit, then this account is sent to micro blog server, to make micro blog server again for this account distribution authorization code and to return the authorization code redistributed, after such client receives the authorization code redistributed that micro blog server returns, the authorization code using this to redistribute upgrades the local authorization code stored, namely replace the local authorization code stored with the authorization code redistributed, thus the self-timing reaching authorization code upgrades.Wherein, after micro blog server receives the account of client transmission, can know that authorization code corresponding to this account exceeds the time limit, so can again for this account distributes new authorization code, realize the mandate to this account, and the authorization code redistributed is returned to client, make client the authorization code exceeded the time limit that this locality stores can be updated to the authorization code redistributed.Like this, can ensure that the authorization code that client uses all does not exceed the time limit, would not occur causing because authorization code exceeds the time limit serving situation about being stopped when so micro blog server carries out reasonable or validation verification based on the authorization code that client uses to the operation of client, make client can use current service smoothly.
Illustrate at this, the service that client uses can be capture to specify the microblogging of " microblog users " microblogging of once sending out and concern in order to gather preservation etc., but is not limited thereto.
Illustrate at this, the present embodiment is not specifically limited the cycle of presetting, such as, can be 10 minutes, 2 minutes or 5 minutes etc.
In specific implementation, client can adopt an open source projects ApacheCamel under Apache foundation to define one-period, and whether the authorization code corresponding with the account that described client uses that property performance period detects local storage exceeds the time limit, specific implementation code is as follows:
An above-mentioned code definition timer, whether every 10 minutes (600000ms) triggers once, and task is exactly perform the syncToken method in SyncService service, namely detect the local authorization code stored and exceed the time limit.
In an Alternate embodiments, the execution mode of step 101 comprises: client can obtain the life span of each authorization code from micro blog server in advance and be stored in this locality, like this can by judging whether the life span of authorization code terminates to judge whether authorization code exceeds the time limit.
In another Alternate embodiments, the execution mode of step 101 comprises: client is according to the cycle of presetting, the authorization code that the account that the periodic client obtaining local storage uses is corresponding with this account, and send the account and authorization code that obtain to micro blog server, to make the up duration of micro blog server return authorization code; Client receives the up duration of the authorization code that micro blog server sends, if the up duration of described authorization code is greater than 0, then client determines that described authorization code does not exceed the time limit; If the up duration of described authorization code is less than or equal to 0, then client determines that described authorization code exceeds the time limit.
In specific implementation, the mode of the up duration JSON character string of authorization code can be sent to client by micro blog server, client resolves JSON character string, judge whether the up duration of authorization code also has, if had, so represent that the account that client uses is still effective, do not perform any operation; If no, then represent that the account that client uses is expired, so needs the renewal carrying out authorization code.The renewal process of authorization code is as step 102 and 103, such as HTML (Hypertext Markup Language) (HypertextTransfer Protocol can be passed through, referred to as HTTP) account that client uses is issued micro blog server, it is the authorization code that this account is distributed again that micro blog server returns, and the authorization code redistributed is updated in local XML file by client.
In the present embodiment, whether client periodically detects the local authorization code corresponding with the account that client uses stored and exceeds the time limit, and after detecting that this authorization code exceeds the time limit, the account of correspondence is sent to micro blog server, to make micro blog server again for this account distribution authorization code and to return the authorization code redistributed, after client receives the authorization code redistributed, the local authorization code stored is upgraded with the authorization code redistributed, realize the automatic authorization of authorization code, the authorization code stored based on this locality when client like this uses service, such as, can avoid the situation occurring that authorization code exceeds the time limit when sending out personal letter or comment etc., solve the service exceeding the time limit to cause client to use because of authorization code and occur mistake and the problem be stopped.
The flow chart of the another kind of microblog account automatic authorization method that Fig. 2 provides for the embodiment of the present invention.As shown in Figure 2, described method comprises:
201, micro blog server receives the account of the described client use that client periodically sends and the authorization code corresponding with described account, and wherein, it is local that described account and described authorization code are stored in described client.
202, described micro blog server obtains the up duration of described authorization code, and the up duration of described authorization code is sent to described client, judges whether described authorization code exceeds the time limit for described client.
203, described micro blog server receives described client in the described account judging to send after described authorization code exceeds the time limit, and is that described account distributes authorization code again.
204, the described authorization code redistributed is sent to described client by described micro blog server, upgrades the local authorization code stored to make the authorization code redistributed described in described client use.
The present embodiment is applicable to various microblogging application scenarios, such as Sina's microblogging etc., be mainly used in carrying out timing renewal to what use in microblogging for authorization code client being carried out to identification authentication, thus the problem that the service that solution causes client to use because authorization code exceeds the time limit is stopped.Illustrate at this, the method that the present embodiment provides is not limited to carry out timing to the authorization code used in microblogging scene and upgrades, and is applicable to any scene needing to carry out authorization code timing renewal.
The method that the present embodiment provides and the method provided embodiment illustrated in fig. 1 adapt, and are the descriptions carried out from the angle of micro blog server, and detailed process can the description of embodiment shown in Figure 1.
Optionally, the mode of the up duration JSON character string of authorization code can be sent to client by micro blog server, and client resolves JSON character string, judge whether the up duration of authorization code also has, if had, so represent that the account that client uses is still effective, do not perform any operation; If no, then represent that the account that client uses is expired, so needs the renewal carrying out authorization code.The concrete renewal process of authorization code can the description of embodiment shown in Figure 1.
In the present embodiment, the authorization code that the account that the client that micro blog server receives client transmission uses is corresponding with this account, then the up duration of this authorization code is supplied to client, client is judged, and whether this authorization code exceeds the time limit, and receive client in the account judging to send after this authorization code exceeds the time limit, then again distribute authorization code for this account and return the authorization code redistributed, the client authorization code redistributed is made to upgrade the local authorization code stored, realize the automatic authorization of authorization code, the authorization code stored based on this locality when client like this uses service, such as, can avoid the situation occurring that authorization code exceeds the time limit when the microblogging capturing microblogging that appointment " microblog users " once sent out and concern to be preserved etc. in order to gather, solve the service exceeding the time limit to cause client to use because of authorization code and occur mistake and the problem be stopped.
The flow chart of another microblog account automatic authorization method that Fig. 3 provides for the embodiment of the present invention.As shown in Figure 3, described method comprises:
301, client is according to the cycle of presetting, and periodically reads the authorization code that the account of the client use stored in local XML file is corresponding with this account.
302, the account of acquisition and authorization code are sent to micro blog server by client, with the up duration of this authorization code of acquisition request.
303, micro blog server obtains the up duration of above-mentioned authorization code and returns to client.
304, client judges whether the up duration of authorization code is greater than 0; If judged result is no, perform step 305; If judged result is yes, perform step 308.
305, above-mentioned account is sent to micro blog server by client, and request micro blog server is again for this account distributes authorization code.
306, the account that micro blog server sends for client again distributes authorization code, and the authorization code redistributed is returned to client.
307, above-mentioned account and the above-mentioned authorization code redistributed are updated in local XML file by client, and perform step 308.
308, end operation.
In the present embodiment, whether client periodically detects the local authorization code corresponding with the account that client uses stored and exceeds the time limit, and after detecting that this authorization code exceeds the time limit, the account of correspondence is sent to micro blog server, to make micro blog server again for this account distribution authorization code and to return the authorization code redistributed, after client receives the authorization code redistributed, the local authorization code stored is upgraded with the authorization code redistributed, realize the automatic authorization of authorization code, the authorization code stored based on this locality when client like this uses service, such as, can avoid the situation occurring that authorization code exceeds the time limit when the microblogging capturing microblogging that appointment " microblog users " once sent out and concern to be preserved etc. in order to gather, solve the service exceeding the time limit to cause client to use because of authorization code and occur mistake and the problem be stopped.
The structural representation of a kind of client that Fig. 4 provides for the embodiment of the present invention.As shown in Figure 4, described client comprises: detection module 41, sending module 42, receiver module 43 and update module 44.
Whether detection module 41, for according to the cycle of presetting, periodically detect the local authorization code corresponding with the account that described client uses stored and exceed the time limit.
Sending module 42, be connected with detection module 41, for when detection module 41 detects that described authorization code exceeds the time limit, described account is sent to micro blog server, to make described micro blog server again for described account distribution authorization code and to return the authorization code redistributed.
Receiver module 43, for receiving the authorization code redistributed described in the transmission of described micro blog server.Optionally, receiver module 43 is connected with sending module 42, for send at sending module 42 account to micro blog server after, receive described micro blog server send described in the authorization code redistributed.
Update module 44, is connected with receiver module 43, for upgrading the local authorization code stored with the authorization code redistributed described in receiver module 43 reception.
In an Alternate embodiments, detection module 41 specifically can be used for the cycle according to presetting, the described account of the local storage of periodic acquisition and described authorization code, and send described account and described authorization code to described micro blog server, with the up duration making described micro blog server return described authorization code; Receive the up duration of the described authorization code that described micro blog server sends; If the up duration of described authorization code is greater than 0, determine that described authorization code does not exceed the time limit; If the up duration of described authorization code is less than or equal to 0, determine that described authorization code exceeds the time limit.
Each functional module of the client that the present embodiment provides can be used for the flow process performing embodiment of the method shown in Fig. 1 or Fig. 3, and its specific works principle repeats no more, and refers to the description of embodiment of the method.
The client that the present embodiment provides, whether the periodic authorization code corresponding with the account that client uses detecting local storage exceeds the time limit, and after detecting that this authorization code exceeds the time limit, the account of correspondence is sent to micro blog server, to make micro blog server again for this account distribution authorization code and to return the authorization code redistributed, and after receiving the authorization code redistributed, the local authorization code stored is upgraded with the authorization code redistributed, realize the automatic authorization of authorization code, the authorization code stored based on this locality when client like this uses service, such as, can avoid the situation occurring that authorization code exceeds the time limit when the microblogging capturing microblogging that appointment " microblog users " once sent out and concern to be preserved etc. in order to gather, solve the service exceeding the time limit to cause client to use because of authorization code and occur mistake and the problem be stopped.
The structural representation of a kind of micro blog server that Fig. 5 provides for the embodiment of the present invention.As shown in Figure 5, described micro blog server comprises: receiver module 51, acquisition module 52, sending module 53 and distribution module 54.
Receiver module 51, the account that the described client periodically sent for receiving client uses and the authorization code corresponding with described account, wherein, it is local that described account and described authorization code are stored in described client.
Acquisition module 52, is connected with receiver module 51, for obtaining the up duration of the described authorization code that receiver module 51 receives.
Sending module 53, is connected with acquisition module 52, and the up duration for the described authorization code obtained by acquisition module 52 sends to described client, judges whether described authorization code exceeds the time limit for described client.
Receiver module 51 also for, receive described client in the described account judging to send after described authorization code exceeds the time limit.
Distribution module 54, is connected with receiver module 51, for receiving described client at receiver module 51 after judging the described account sent after described authorization code exceeds the time limit, is that described account distributes authorization code again.
Sending module 53 is also connected with distribution module 54, also for the described authorization code redistributed is sent to described client, upgrades the local authorization code stored to make the authorization code redistributed described in described client use.
Each functional module of the micro blog server that the present embodiment provides can be used for the flow process performing embodiment of the method shown in Fig. 2 or Fig. 3, and its specific works principle repeats no more, and refers to the description of embodiment of the method.
The micro blog server that the present embodiment provides, receive the authorization code that the account of the client use that client sends is corresponding with this account, then the up duration of this authorization code is supplied to client, client is judged, and whether this authorization code exceeds the time limit, and receive client in the account judging to send after this authorization code exceeds the time limit, then again distribute authorization code for this account and return the authorization code redistributed, the client authorization code redistributed is made to upgrade the local authorization code stored, realize the automatic authorization of authorization code, the authorization code stored based on this locality when client like this uses service, such as, can avoid the situation occurring that authorization code exceeds the time limit when the microblogging capturing microblogging that appointment " microblog users " once sent out and concern to be preserved etc. in order to gather, solve the service exceeding the time limit to cause client to use because of authorization code and occur mistake and the problem be stopped.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.
Claims (6)
1. a microblog account automatic authorization method, is characterized in that, comprising:
Whether client, according to the cycle of presetting, periodically detects the local authorization code corresponding with the account that described client uses stored and exceeds the time limit;
If detect that described authorization code exceeds the time limit, described account is sent to micro blog server by described client, to make described micro blog server again for described account distribution authorization code and to return the authorization code redistributed;
Described client receive described micro blog server send described in the authorization code redistributed, and with described in the authorization code redistributed upgrade the authorization code of local storage.
2. method according to claim 1, is characterized in that, whether described client, according to the cycle of presetting, periodically detects the local authorization code corresponding with the account that described client uses stored and exceed the time limit, comprising:
Described client, according to the cycle of presetting, periodically obtains the described account of local storage and described authorization code, and sends described account and described authorization code to described micro blog server, with the up duration making described micro blog server return described authorization code;
Described client receives the up duration of the described authorization code that described micro blog server sends;
If the up duration of described authorization code is greater than 0, described client determines that described authorization code does not exceed the time limit; If the up duration of described authorization code is less than or equal to 0, described client determines that described authorization code exceeds the time limit.
3. a microblog account automatic authorization method, is characterized in that, comprising:
Micro blog server receives the account of the described client use that client periodically sends and the authorization code corresponding with described account, and wherein, it is local that described account and described authorization code are stored in described client;
Described micro blog server obtains the up duration of described authorization code, and the up duration of described authorization code is sent to described client, judges whether described authorization code exceeds the time limit for described client;
Described micro blog server receives described client in the described account judging to send after described authorization code exceeds the time limit, and is that described account distributes authorization code again;
The described authorization code redistributed is sent to described client by described micro blog server, upgrades the local authorization code stored to make the authorization code redistributed described in described client use.
4. a client, is characterized in that, comprising:
Whether detection module, for according to the cycle of presetting, periodically detect the local authorization code corresponding with the account that described client uses stored and exceed the time limit;
Sending module, for when described detection module detects that described authorization code exceeds the time limit, sends to micro blog server by described account, to make described micro blog server again for described account distribution authorization code and to return the authorization code redistributed;
Receiver module, for receiving the authorization code redistributed described in the transmission of described micro blog server;
Update module, the authorization code for redistributing described in receiving with described receiver module upgrades the local authorization code stored.
5. client according to claim 4, it is characterized in that, described detection module specifically for according to preset cycle, the described account of the local storage of periodic acquisition and described authorization code, and send described account and described authorization code to described micro blog server, with the up duration making described micro blog server return described authorization code; Receive the up duration of the described authorization code that described micro blog server sends; If the up duration of described authorization code is greater than 0, determine that described authorization code does not exceed the time limit; If the up duration of described authorization code is less than or equal to 0, determine that described authorization code exceeds the time limit.
6. a micro blog server, is characterized in that, comprising:
Receiver module, the account that the described client periodically sent for receiving client uses and the authorization code corresponding with described account, wherein, it is local that described account and described authorization code are stored in described client;
Acquisition module, for obtaining the up duration of described authorization code;
Sending module, the up duration for the described authorization code obtained by described acquisition module sends to described client, judges whether described authorization code exceeds the time limit for described client;
Described receiver module also for, receive described client in the described account judging to send after described authorization code exceeds the time limit;
Distribution module, for receiving described client at described receiver module after judging the described account sent after described authorization code exceeds the time limit, is that described account distributes authorization code again;
Described sending module also for, the described authorization code redistributed is sent to described client, with make described client with described in the authorization code redistributed upgrade the local authorization code stored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310367199.7A CN104426843B (en) | 2013-08-21 | 2013-08-21 | Microblog account automatic authorization method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310367199.7A CN104426843B (en) | 2013-08-21 | 2013-08-21 | Microblog account automatic authorization method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104426843A true CN104426843A (en) | 2015-03-18 |
CN104426843B CN104426843B (en) | 2017-09-22 |
Family
ID=52974803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310367199.7A Expired - Fee Related CN104426843B (en) | 2013-08-21 | 2013-08-21 | Microblog account automatic authorization method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104426843B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106096347A (en) * | 2016-06-03 | 2016-11-09 | 上海携程商务有限公司 | Hierarchical authorisation method based on logging status and system |
CN106657140A (en) * | 2017-01-18 | 2017-05-10 | 北京小米移动软件有限公司 | Application authorization method and apparatus |
CN109583180A (en) * | 2018-11-29 | 2019-04-05 | 北京小米移动软件有限公司 | Management method, device, equipment and the storage medium of intelligent sound box |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030182241A1 (en) * | 2002-03-25 | 2003-09-25 | Everhart Glenn Cobourn | Time variable financial authentication apparatus |
CN101072386A (en) * | 2007-06-22 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Business server, system message server and message broadcasting method |
CN102984046A (en) * | 2011-09-07 | 2013-03-20 | 阿里巴巴集团控股有限公司 | Processing method of instant messaging business and corresponding network equipment |
CN103220344A (en) * | 2013-03-29 | 2013-07-24 | 新浪技术(中国)有限公司 | Method and system for using microblog authorization |
-
2013
- 2013-08-21 CN CN201310367199.7A patent/CN104426843B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030182241A1 (en) * | 2002-03-25 | 2003-09-25 | Everhart Glenn Cobourn | Time variable financial authentication apparatus |
CN101072386A (en) * | 2007-06-22 | 2007-11-14 | 腾讯科技(深圳)有限公司 | Business server, system message server and message broadcasting method |
CN102984046A (en) * | 2011-09-07 | 2013-03-20 | 阿里巴巴集团控股有限公司 | Processing method of instant messaging business and corresponding network equipment |
CN103220344A (en) * | 2013-03-29 | 2013-07-24 | 新浪技术(中国)有限公司 | Method and system for using microblog authorization |
Non-Patent Citations (1)
Title |
---|
朱扬谷: "OAuth协议及其在社会化网络中的应用与研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106096347A (en) * | 2016-06-03 | 2016-11-09 | 上海携程商务有限公司 | Hierarchical authorisation method based on logging status and system |
CN106096347B (en) * | 2016-06-03 | 2018-10-09 | 上海携程商务有限公司 | Hierarchical authorisation method based on login status and system |
CN106657140A (en) * | 2017-01-18 | 2017-05-10 | 北京小米移动软件有限公司 | Application authorization method and apparatus |
CN106657140B (en) * | 2017-01-18 | 2020-02-28 | 北京小米移动软件有限公司 | Application authorization method and device |
CN109583180A (en) * | 2018-11-29 | 2019-04-05 | 北京小米移动软件有限公司 | Management method, device, equipment and the storage medium of intelligent sound box |
Also Published As
Publication number | Publication date |
---|---|
CN104426843B (en) | 2017-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200218526A1 (en) | Adaptive deployment of applications for mobile devices | |
US20140351807A1 (en) | Method and communication device for updating web application | |
CN103946804A (en) | System comprising a publish/subscribe broker for a remote management of end-user devices, and respective end-user device | |
CN101194233A (en) | System and method of testing wireless component applications | |
US20140149348A1 (en) | Application program management method and apparatus using context information | |
CN102262552A (en) | Method and system for synchronizing application program of different equipment | |
CN105100032A (en) | Method and apparatus for preventing resource steal | |
CN103577187A (en) | Method and related equipment for realizing webpage screenshot | |
US10447796B2 (en) | Pushlet instant messaging framework and pushlet instant messaging method | |
CN107341025B (en) | Application updating method and device | |
CN109391673A (en) | A kind of method, system and the terminal device of management update file | |
CN102801713A (en) | Website logging-in method and system as well as accessing management platform | |
CN104123380A (en) | Webpage access method and device | |
CN105554735A (en) | Method and system for binding intelligent device | |
CN104426843A (en) | Micro blog account automatic authorization method and device | |
CN104133704A (en) | Software upgrading and upgrade package issuing method, device and equipment | |
CN116088901A (en) | Firmware upgrading method and device, electronic equipment and computer storage medium | |
CN104468248B (en) | Service performance monitoring method, reverse proxy server, statistical analysis server and system | |
US9300918B2 (en) | Service access control system and method using embedded browser agent | |
CN110045969A (en) | Application program installation method, server, system, equipment and storage medium | |
KR20140090279A (en) | Service security authentication method and web application server therof | |
CN109032646B (en) | Method, device and system for updating application | |
CN104079540A (en) | Method, device and system of updating application as well as user equipment | |
CN102135872A (en) | Method and device for image configuration in login area | |
CN108810163B (en) | Self-signed SSL certificate processing system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170922 Termination date: 20190821 |