CN104426843B - Microblog account automatic authorization method and apparatus - Google Patents

Microblog account automatic authorization method and apparatus Download PDF

Info

Publication number
CN104426843B
CN104426843B CN201310367199.7A CN201310367199A CN104426843B CN 104426843 B CN104426843 B CN 104426843B CN 201310367199 A CN201310367199 A CN 201310367199A CN 104426843 B CN104426843 B CN 104426843B
Authority
CN
China
Prior art keywords
authorization code
client
account
time limit
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.)
Expired - Fee Related
Application number
CN201310367199.7A
Other languages
Chinese (zh)
Other versions
CN104426843A (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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201310367199.7A priority Critical patent/CN104426843B/en
Publication of CN104426843A publication Critical patent/CN104426843A/en
Application granted granted Critical
Publication of CN104426843B publication Critical patent/CN104426843B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0892Network architectures or network communication protocols for network security for authentication of entities by using authentication-authorization-accounting [AAA] servers or protocols
    • 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/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • 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

Abstract

The present invention provides a kind of microblog account automatic authorization method and apparatus.Method includes:Client periodically detects whether the authorization code corresponding with the account that the client is used being locally stored exceeds the time limit according to the default cycle;If detecting the authorization code to exceed the time limit, the account is sent to micro blog server, so that the micro blog server distributes authorization code for the account again and returns to the authorization code redistributed;The authorization code redistributed that the micro blog server is sent is received, and the authorization code redistributed described in updates the authorization code being locally stored.The problem of technical solution of the present invention can solve to be stopped because mistake occurs in the service that authorization code exceeds the time limit to cause client to use.

Description

Microblog account automatic authorization method and apparatus
Technical field
The present invention relates to the network communications technology, more particularly to a kind of microblog account automatic authorization method and apparatus.
Background technology
Now, microblogging has become a kind of main communication meanses, is also increasingly becoming a kind of habits and customs of people. " developer " client to microblogging when operating, such as either crawl microblogging still obtains the personal letter of user, concern, It is required for the support of client identity.
At present, micro blog server mainly uses client identity authentication this modes of OAuth, and its essence is exactly by visitor The microblog account generation authorization code at family end, client carries the authorization code, micro blog server base in the operating process to microblogging Client identity is authenticated in entrained authorization code.But, in actual applications, authorization code may exceed the time limit, and this is just The currently used service of client is caused mistake occur and be stopped.
The content of the invention
The present invention provides a kind of microblog account automatic authorization method and apparatus, to solve because authorization code exceeds the time limit to cause client Hold the problem of service used mistake occurs and is stopped.
First aspect provides a kind of microblog account automatic authorization method, including:
Client is according to the default cycle, and it is corresponding with the account that the client is used that periodic detection is locally stored Authorization code whether exceed the time limit;
If detecting the authorization code to exceed the time limit, the account is sent to micro blog server by the client, so that institute State micro blog server and distribute authorization code for the account again and return to the authorization code redistributed;
The client receives the authorization code redistributed that the micro blog server is sent, and is divided again with described The authorization code matched somebody with somebody updates the authorization code being locally stored.
Second aspect provides a kind of microblog account automatic authorization method, including:
Micro blog server receives the account that uses of the client that client periodically sends and corresponding with the account Authorization code, wherein, it is local that the account and the authorization code are stored in the client;
The micro blog server obtains the pot life of the authorization code, and the pot life of the authorization code is sent to The client, so that the client judges whether the authorization code exceeds the time limit;
The micro blog server receives the account that the client is sent after judging that the authorization code exceeds the time limit, and Again authorization code is distributed for the account;
The authorization code redistributed is sent to the client by the micro blog server, so that the client is used The authorization code redistributed updates the authorization code being locally stored.
The third aspect provides a kind of client, including:
Detection module, for according to the default cycle, what what periodically detection was locally stored used with the client Whether the corresponding authorization code of account exceeds the time limit;
Sending module, for when the detection module detects the authorization code and exceeded the time limit, the account being sent to micro- Rich server, so that the micro blog server distributes authorization code for the account again and returns to the authorization code redistributed;
Receiving module, for receiving the authorization code redistributed described in the micro blog server transmission;
Update module, what is be locally stored for being updated with the authorization code redistributed described in receiving module reception awards Weighted code.
Fourth aspect provides a kind of micro blog server, including:
Receiving module, for receive the account that uses of the client that client periodically sends and with the account pair The authorization code answered, wherein, it is local that the account and the authorization code are stored in the client;
Acquisition module, the pot life for obtaining the authorization code;
Sending module, the pot life of the authorization code for the acquisition module to be obtained is sent to the client End, so that the client judges whether the authorization code exceeds the time limit;
The receiving module is additionally operable to, and receives the account that the client is sent after judging that the authorization code exceeds the time limit Number;
Distribute module, sends out for receiving the client in the receiving module after judging that the authorization code exceeds the time limit After the account sent, authorization code is distributed again for the account;
The sending module is additionally operable to, and the authorization code redistributed is sent into the client, so that the visitor The authorization code redistributed described in the end of family updates the authorization code being locally stored.
The microblog account automatic authorization method and apparatus that the present invention is provided, client periodically detection be locally stored with Whether the corresponding authorization code of account that client is used exceeds the time limit, and after detecting that the authorization code exceeds the time limit, corresponding account is sent out Micro blog server is given, so that micro blog server distributes authorization code for the account again and returns to the authorization code redistributed, visitor Family termination is received after the authorization code redistributed, and the authorization code being locally stored is updated with the authorization code redistributed, and is realized and is authorized The automatic authorization of code, so when client based on the authorization code being locally stored using service when can avoid the occurrence of authorization code and exceed the time limit Situation, solve the problem of being stopped because mistake occurs in the service that authorization code exceeds the time limit to cause client to use.
Brief description of the drawings
Fig. 1 is a kind of flow chart of microblog account automatic authorization method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another microblog account automatic authorization method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another microblog account automatic authorization method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of client provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of micro blog server provided in an embodiment of the present invention.
Embodiment
Fig. 1 is a kind of flow chart of microblog account automatic authorization method provided in an embodiment of the present invention.As shown in figure 1, institute The method of stating includes:
101st, client periodically detects the account used with the client being locally stored according to the default cycle Whether corresponding authorization code exceeds the time limit.
If the 102, detecting the authorization code to exceed the time limit, the account is sent to micro blog server by the client, with Make the micro blog server and distribute authorization code for the account again and return to the authorization code redistributed.
103rd, the client receives the authorization code redistributed that the micro blog server is sent, and with described heavy Newly assigned authorization code updates the authorization code being locally stored.
The present embodiment is applied to various microblogging application scenarios, such as Sina weibo, is mainly used in being used in microblogging Authorization code for carrying out identification authentication to client is timed renewal, so as to solve because authorization code exceeds the time limit and causes client Hold the problem of service used is stopped.Illustrate herein, the method that the present embodiment is provided is not limited to being used in microblogging scene Authorization code be timed renewal, it is adaptable to any need is timed the scene of renewal to authorization code.
In the present embodiment, microblog users can browse information interested on microblogging, or issue interior on microblogging Appearance is browsed for others.And " developer " client(Hereinafter referred to as client)What is done is that crawl specified " microblog users " once The microblogging and the microblogging of concern sent out are to collect preservation etc..Each client has a microblog account(Hereinafter referred to as account Number)That is, the account that client is used.In order to verify whether the operation of client is rationally or effective, and micro blog server can root The account used according to client generates corresponding authorization code, be then based on authorization code checking client operation whether rationally or Effectively.Wherein, authorization code has certain existence time, will be failed after authorization code exceeds the time limit.If after authorization code failure, client End still uses the authorization code, then the result mistake of the micro blog server based on the authorization code, such client The service used will be stopped.
In the present embodiment, the account used and authorization code corresponding with the account are stored in client sheet by client Ground, the account authorization code corresponding with the account that can for example use client is configured in local extensible markup language (Extensible Markup Language, referred to as XML)In file, but not limited to this.It is further alternative, in order to ensure The security of authorization code, authorization code can be encrypted.It is corresponding with the account with the account for being used client using XML The configuration information that authorization code is configured in XML file can be expressed as:
" weiboAccount " and " accessToken " in above-mentioned configuration information corresponds to the account that client is used respectively Authorization code corresponding with the account.
In order to be updated in time to authorization code, client locally presets a cycle, and client is pre- according to this If cycle, periodically detect whether the authorization code corresponding with the account that client is used being locally stored exceeds the time limit;If inspection Measure authorization code to exceed the time limit, then the account is sent to micro blog server, authorized so that micro blog server is distributed for the account again Code simultaneously returns to the authorization code redistributed, and such client is received after the authorization code redistributed of micro blog server return, The authorization code redistributed using this updates the authorization code being locally stored, i.e., replace what is be locally stored with the authorization code redistributed Authorization code, so as to reach that the self-timing of authorization code updates.Wherein, micro blog server is received after the account of client transmission, It can know that the corresponding authorization code of the account has exceeded the time limit, can then distribute new authorization code for the account again, realize to this The mandate of account, and the authorization code redistributed is returned into client so that client can be by having surpassed for being locally stored The authorization code of phase is updated to the authorization code redistributed.In this manner it is ensured that the authorization code that client is used all does not exceed the time limit, Operation of the authorization code that so micro blog server is used based on client to client is carried out rationally or during validation verification just not Occur causes to service situation about being stopped because authorization code exceeds the time limit so that client can smoothly use current service.
Illustrate herein, the service that client is used can be the microblogging and concern that crawl specified " microblog users " was once sent out Microblogging preserved to collect etc., but not limited to this.
Illustrate herein, the present embodiment is not specifically limited to the default cycle, for example, can be 10 minutes, 2 minutes or 5 Minute etc..
On implementing, client can using under Apache foundations an open source projects Apache Camel come Define a cycle, and the authorization code corresponding with the account that the client is used that is locally stored of property performance period detection whether Exceed the time limit, implement code as follows:
Above-mentioned code definition one timer, every 10 minutes(600000ms)Once, task is exactly to perform for triggering SyncToken methods in SyncService services, that is, detect whether the authorization code being locally stored exceeds the time limit.
In an optional embodiment, the embodiment of step 101 includes:Client can be obtained from micro blog server in advance Take the life span of each authorization code and be stored in it is local, so can by judge the life span of authorization code whether terminate come Judge whether authorization code exceeds the time limit.
In another optional embodiment, the embodiment of step 101 includes:Client is according to default cycle, cycle Property the account authorization code corresponding with the account that uses of the client that is locally stored of acquisition, and send and obtained to micro blog server The account and authorization code taken, so that micro blog server returns to the pot life of authorization code;Client receives micro blog server and sent Authorization code pot life, if the pot life of the authorization code be more than 0, client determines that the authorization code does not surpass Phase;If the pot life of the authorization code is less than or equal to 0, client determines that the authorization code exceeds the time limit.
On implementing, the pot life of authorization code can be sent to by micro blog server with the mode of JSON character strings Client, client parsing JSON character strings, judges whether the pot life of authorization code also has, if so, so representing client Hold the account used still effective, any operation is not performed;If it is not, represent that the account that client is used is expired, So need the renewal of progress authorization code.The renewal process of authorization code such as step 102 and 103, for example, can be passed by hypertext Defeated agreement(Hypertext Transfer Protocol, referred to as HTTP)The account that client is used issues microblogging service Device, micro blog server returns to the authorization code distributed again for the account, and client updates the authorization code redistributed to local XML file in.
In the present embodiment, the mandate corresponding with the account that client is used that client periodically detection is locally stored Whether code exceeds the time limit, and after detecting that the authorization code exceeds the time limit, corresponding account is sent into micro blog server, so that microblogging service Think highly of and newly distribute authorization code for the account and return to the authorization code redistributed, client receives the authorization code redistributed Afterwards, the authorization code being locally stored is updated with the authorization code redistributed, the automatic authorization of authorization code is realized, so when client's end group In the authorization code being locally stored using service, the situation that authorization code exceeds the time limit can be avoided the occurrence of when such as sending out personal letter or comment, Solve the problem of being stopped because mistake occurs in the service that authorization code exceeds the time limit to cause client to use.
Fig. 2 is the flow chart of another microblog account automatic authorization method provided in an embodiment of the present invention.As shown in Fig. 2 Methods described includes:
201st, micro blog server receive the account that uses of the client that client periodically sends and with the account Corresponding authorization code, wherein, it is local that the account and the authorization code are stored in the client.
202nd, the micro blog server obtains the pot life of the authorization code, and the pot life of the authorization code is sent out The client is given, so that the client judges whether the authorization code exceeds the time limit.
203rd, the micro blog server receives the account that the client is sent after judging that the authorization code exceeds the time limit Number, and distribute authorization code again for the account.
204th, the authorization code redistributed is sent to the client by the micro blog server, so that the client The authorization code redistributed described in end updates the authorization code being locally stored.
The present embodiment is applied to various microblogging application scenarios, such as Sina weibo, is mainly used in being used in microblogging Authorization code for carrying out identification authentication to client is timed renewal, so as to solve because authorization code exceeds the time limit and causes client Hold the problem of service used is stopped.Illustrate herein, the method that the present embodiment is provided is not limited to being used in microblogging scene Authorization code be timed renewal, it is adaptable to any need is timed the scene of renewal to authorization code.
The method that the present embodiment is provided is adapted with the method that embodiment illustrated in fig. 1 is provided, and is from the angle of micro blog server The description carried out is spent, detailed process can be found in the description of embodiment illustrated in fig. 1.
Optionally, the pot life of authorization code with the mode of JSON character strings can be sent to client by micro blog server End, client parsing JSON character strings, judges whether the pot life of authorization code also has, if so, so representing that client makes Account is still effective, and any operation is not performed;If it is not, representing that the account that client is used is expired, then Need the renewal of progress authorization code.The specific renewal process of authorization code can be found in the description of embodiment illustrated in fig. 1.
In the present embodiment, the account that the client that micro blog server reception client is sent is used is corresponding with the account Authorization code, is then supplied to client by the pot life of the authorization code so that client judges whether the authorization code has surpassed Phase, and the account that client is sent after judging that the authorization code exceeds the time limit is received, then distribute authorization code simultaneously again for the account Return to the authorization code redistributed so that client updates the authorization code being locally stored with the authorization code redistributed, realization is awarded The automatic authorization of weighted code, is for example captured using service based on the authorization code being locally stored so when client and is specified " microblogging use The situation that authorization code exceeds the time limit can be avoided the occurrence of when the microblogging and the microblogging of concern that family " was once sent out are to collect preservation etc., is solved Determine the problem of being stopped because mistake occurs in the service that authorization code exceeds the time limit to cause client to use.
Fig. 3 is the flow chart of another microblog account automatic authorization method provided in an embodiment of the present invention.As shown in figure 3, Methods described includes:
301st, client periodically reads what the client stored in native XML file was used according to the default cycle Account authorization code corresponding with the account.
302nd, the account and authorization code of acquisition are sent to micro blog server by client, with the acquisition request authorization code can Use the time.
303rd, micro blog server obtains the pot life of above-mentioned authorization code and returns to client.
304th, client judges whether the pot life of authorization code is more than 0;If it is judged that being no, step 305 is performed; If it is judged that being yes, step 308 is performed.
305th, above-mentioned account is sent to micro blog server by client, and request micro blog server is awarded for account distribution again Weighted code.
306th, the account distribution authorization code that micro blog server sends for client again, and the authorization code redistributed is returned Back to client.
307th, client updates above-mentioned account and the above-mentioned authorization code redistributed into native XML file, and performs Step 308.
308th, end operation.
In the present embodiment, the mandate corresponding with the account that client is used that client periodically detection is locally stored Whether code exceeds the time limit, and after detecting that the authorization code exceeds the time limit, corresponding account is sent into micro blog server, so that microblogging service Think highly of and newly distribute authorization code for the account and return to the authorization code redistributed, client receives the authorization code redistributed Afterwards, the authorization code being locally stored is updated with the authorization code redistributed, the automatic authorization of authorization code is realized, so when client's end group In the authorization code being locally stored using service, for example, capture and specify the microblogging that " microblog users " were once sent out and the microblogging of concern to use The situation that authorization code exceeds the time limit can be avoided the occurrence of during preservation etc. to collect, is solved because authorization code exceeds the time limit to cause what client was used The problem of there is mistake and is stopped in service.
Fig. 4 is a kind of structural representation of client provided in an embodiment of the present invention.As shown in figure 4, the client bag Include:Detection module 41, sending module 42, receiving module 43 and update module 44.
Detection module 41, for according to the default cycle, what periodically detection was locally stored to use with the client The corresponding authorization code of account whether exceed the time limit.
Sending module 42, is connected with detection module 41, for when detection module 41 detects the authorization code and exceeded the time limit, will The account is sent to micro blog server, so that the micro blog server is distributed authorization code for the account again and returned again The authorization code of distribution.
Receiving module 43, for receiving the authorization code redistributed described in the micro blog server transmission.Optionally, connect Receive module 43 to be connected with sending module 42, after sending account to micro blog server in sending module 42, receive described micro- The authorization code redistributed that rich server is sent.
Update module 44, is connected with receiving module 43, for the mandate redistributed described in being received with receiving module 43 Code updates the authorization code being locally stored.
In an optional embodiment, detection module 41 was particularly used according to the default cycle, periodically obtained this The account and the authorization code of ground storage, and the account and the authorization code are sent to the micro blog server, so that The micro blog server returns to the pot life of the authorization code;Receive the authorization code that the micro blog server is sent can Use the time;If the pot life of the authorization code is more than 0, determine that the authorization code does not exceed the time limit;If the authorization code can It is less than or equal to 0 with the time, determines that the authorization code exceeds the time limit.
Each functional module for the client that the present embodiment is provided can be used for the stream for performing embodiment of the method shown in Fig. 1 or Fig. 3 Journey, its concrete operating principle is repeated no more, and refers to the description of embodiment of the method.
The client that the present embodiment is provided, what periodically detection was locally stored corresponding with the account that client is used awards Whether weighted code exceeds the time limit, and after detecting that the authorization code exceeds the time limit, corresponding account is sent into micro blog server, so that microblogging takes Business, which is thought highly of, newly to distribute authorization code for the account and returns to the authorization code redistributed, and is receiving the authorization code redistributed Afterwards, the authorization code being locally stored is updated with the authorization code redistributed, the automatic authorization of authorization code is realized, so when client's end group In the authorization code being locally stored using service, for example, capture and specify the microblogging that " microblog users " were once sent out and the microblogging of concern to use The situation that authorization code exceeds the time limit can be avoided the occurrence of during preservation etc. to collect, is solved because authorization code exceeds the time limit to cause what client was used The problem of there is mistake and is stopped in service.
Fig. 5 is a kind of structural representation of micro blog server provided in an embodiment of the present invention.As shown in figure 5, the microblogging Server includes:Receiving module 51, acquisition module 52, sending module 53 and distribute module 54.
Receiving module 51, for receive the account that uses of the client that client periodically sends and with the account Corresponding authorization code, wherein, it is local that the account and the authorization code are stored in the client.
Acquisition module 52, is connected with receiving module 51, for obtaining the available of the authorization code that receiving module 51 is received Time.
Sending module 53, is connected with acquisition module 52, for the authorization code that obtains acquisition module 52 it is available when Between be sent to the client, so that the client judges whether the authorization code exceeds the time limit.
Receiving module 51 is additionally operable to, and receives the account that the client is sent after judging that the authorization code exceeds the time limit Number.
Distribute module 54, is connected with receiving module 51, is judging for receiving the client in receiving module 51 After the account that the authorization code is sent after exceeding the time limit, authorization code is distributed again for the account.
Sending module 53 is also connected with distribute module 54, is additionally operable to the authorization code redistributed being sent to the visitor Family end, so that the authorization code redistributed described in the client updates the authorization code being locally stored.
Each functional module for the micro blog server that the present embodiment is provided can be used for performing embodiment of the method shown in Fig. 2 or Fig. 3 Flow, its concrete operating principle repeats no more, and refers to the description of embodiment of the method.
The micro blog server that the present embodiment is provided, the account that the client that reception client is sent is used is corresponding with the account Authorization code, the pot life of the authorization code is then supplied to client so that whether client judges the authorization code Exceed the time limit, and receive the account that client is sent after judging that the authorization code exceeds the time limit, then distribute authorization code again for the account And returning to the authorization code redistributed so that client updates the authorization code being locally stored with the authorization code redistributed, and realizes The automatic authorization of authorization code, is for example captured using service based on the authorization code being locally stored so when client and is specified " microblogging use The situation that authorization code exceeds the time limit can be avoided the occurrence of when the microblogging and the microblogging of concern that family " was once sent out are to collect preservation etc., is solved Determine the problem of being stopped because mistake occurs in the service that authorization code exceeds the time limit to cause client to use.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (4)

1. a kind of microblog account automatic authorization method, it is characterised in that including:
Client is according to the default cycle, and what periodically detection was locally stored corresponding with the account that the client is used awards Whether weighted code exceeds the time limit;
If detecting the authorization code to exceed the time limit, the account is sent to micro blog server by the client, so that described micro- Rich server distributes authorization code for the account again and returns to the authorization code redistributed;
The client receives the authorization code redistributed of the micro blog server transmission, and redistributed described in Authorization code updates the authorization code being locally stored;
Wherein, the client periodically detects the account used with the client being locally stored according to the default cycle Whether number corresponding authorization code exceeds the time limit, including:
The client periodically obtains the account being locally stored and the authorization code according to the default cycle, and to The micro blog server sends the account and the authorization code, so that the micro blog server returns to the available of the authorization code Time;
The client receives the pot life for the authorization code that the micro blog server is sent;
If the pot life of the authorization code is more than 0, the client determines that the authorization code does not exceed the time limit;If described authorize The pot life of code is less than or equal to 0, and the client determines that the authorization code exceeds the time limit.
2. a kind of microblog account automatic authorization method, it is characterised in that including:
Micro blog server receives the account that uses of the client that client periodically sends and corresponding with the account awarded Weighted code, wherein, it is local that the account and the authorization code are stored in the client;
The micro blog server obtains the pot life of the authorization code, and the pot life of the authorization code is sent to described Client, so that the client judges that the authorization code does not exceed the time limit when the pot life of the authorization code is more than 0, in institute The pot life for stating authorization code judges that the authorization code exceeds the time limit when being less than or equal to 0;
The micro blog server receives the account that the client is sent after judging that the authorization code exceeds the time limit, and again Authorization code is distributed for the account;
The authorization code redistributed is sent to the client by the micro blog server, so that described in the client The authorization code redistributed updates the authorization code being locally stored.
3. a kind of client, it is characterised in that including:
Detection module, for according to the default cycle, periodically detecting the account used with the client being locally stored Whether corresponding authorization code exceeds the time limit;
Sending module, for when the detection module detects the authorization code and exceeded the time limit, the account to be sent into microblogging clothes Business device, so that the micro blog server distributes authorization code for the account again and returns to the authorization code redistributed;
Receiving module, for receiving the authorization code redistributed described in the micro blog server transmission;
Update module, for updating the mandate being locally stored with the authorization code redistributed described in receiving module reception Code;
Wherein, the detection module is locally stored specifically for according to the default cycle, periodically obtaining the account and The authorization code, and the account and the authorization code are sent to the micro blog server, so that the micro blog server is returned The pot life of the authorization code;Receive the pot life for the authorization code that the micro blog server is sent;If described award The pot life of weighted code is more than 0, determines that the authorization code does not exceed the time limit;If the pot life of the authorization code is less than or equal to 0, Determine that the authorization code exceeds the time limit.
4. a kind of micro blog server, it is characterised in that including:
Receiving module, for receiving the account that uses of the client that client periodically sends and corresponding with the account Authorization code, wherein, it is local that the account and the authorization code are stored in the client;
Acquisition module, the pot life for obtaining the authorization code;
Sending module, the pot life of the authorization code for the acquisition module to be obtained is sent to the client, with Judge that the authorization code does not exceed the time limit when the pot life of the authorization code is more than 0 for the client, in the authorization code Pot life be less than or equal to 0 when judge that the authorization code exceeds the time limit;
The receiving module is additionally operable to, and receives the account that the client is sent after judging that the authorization code exceeds the time limit;
Distribute module, for receiving what the client was sent after judging that the authorization code exceeds the time limit in the receiving module After the account, authorization code is distributed again for the account;
The sending module is additionally operable to, and the authorization code redistributed is sent into the client, so that the client The authorization code being locally stored is updated with the authorization code redistributed.
CN201310367199.7A 2013-08-21 2013-08-21 Microblog account automatic authorization method and apparatus Expired - Fee Related CN104426843B (en)

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 CN104426843A (en) 2015-03-18
CN104426843B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096347B (en) * 2016-06-03 2018-10-09 上海携程商务有限公司 Hierarchical authorisation method based on login status and system
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030182241A1 (en) * 2002-03-25 2003-09-25 Everhart Glenn Cobourn Time variable financial authentication apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
OAuth协议及其在社会化网络中的应用与研究;朱扬谷;《中国优秀硕士学位论文全文数据库信息科技辑》;20130315;论文第1.2至1.4节和第2.1节 *

Also Published As

Publication number Publication date
CN104426843A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
US10904218B2 (en) Secure proxy to protect private data
US8892885B2 (en) System and method for delivering a challenge response in an authentication protocol
CN103607284B (en) Identity authentication method and equipment and server
CN103188207B (en) A kind of cross-domain single sign-on realization method and system
CN105577602B (en) Data push method and device based on open application programming interface
EP3100171A1 (en) Client authentication using social relationship data
CN105119722A (en) Identity verification method, equipment and system
CN103888255A (en) Identity authentication method, device and system
CN103986584A (en) Double-factor identity verification method based on intelligent equipment
US20200007576A1 (en) Electronic authentication infrastructure
JP5684176B2 (en) Access device, system and program
CN105956143B (en) Data bank access method and database broker node
CN101309293A (en) Authentication method and system based on hypertext transmission protocol
WO2013119323A1 (en) Systems and methods for profiling client devices
CN109815684A (en) A kind of identity identifying method, system and server and storage medium
CN109067785A (en) Cluster authentication method, device
CN106779705B (en) Dynamic payment method and system
CN102624687A (en) Networking program user authentication method based on mobile terminal
WO2016079429A1 (en) Method for controlling access to a production system of a computer system not connected to an information system of said computer system
CN104426843B (en) Microblog account automatic authorization method and apparatus
CN105741116B (en) A kind of quick payment method, apparatus and system
CN101197677A (en) Internet product login method and apparatus supporting extra parameter login
CN1885770B (en) Authentication method
CN101360107A (en) Method, system and apparatus enhancing security of single system login
CN102904893A (en) Verifying device and verifying 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