Processing method and system for repeatedly refreshing token

The invention provides a processing method and system for repeatedly refreshing tokens. The method comprises the following steps: sending a plurality of resource requests with access tokens to a server side; receiving a state code fed back by the server side, wherein the state code is generated acco...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LI XIANFENG, YU YI, ZHANG XIONGBIAO, ZHANG YONGQIANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a processing method and system for repeatedly refreshing tokens. The method comprises the following steps: sending a plurality of resource requests with access tokens to a server side; receiving a state code fed back by the server side, wherein the state code is generated according to a flag bit of an access token corresponding to a first time sequence resource request in the plurality of resource requests; judging whether to start a network request interceptor to intercept a subsequent resource request with an access token according to the state code; after the network request interceptor is started, judging whether the access token is consistent with a local cache access token or not; and if yes, sending a refresh token to the server side, receiving a new refresh token and a new access token which are fed back by the server side and generated according to the refresh token, and storing the new refresh token and the new access token in a local cache. The problem that the request author