Home > Back-end > According to the assigned a unique id for the request interface requires identity check, a valid tok
According to the assigned a unique id for the request interface requires identity check, a valid tok
Time:09-20
System interface for the request to identity, a valid token information carried in a request parameters to a successful call interface;
Access system, the enterprise will assign a unique appid, appid is the only identity token as application;
The token is valid for 30 days, token application available by calling the interface failure before the new token;
Small sprout new o bosses help
CodePudding user response:
Which do not understand, this is an open API, the official did not provide the sample?
CodePudding user response:
Find a symmetric encryption algorithm, such as AES, service USES a random password write dead inside the code, or each time you start the server generates a static variable, The enterprise user name or id, or other content, together with the current date after the encryption as appid sent in the past, Appid hair back, can decrypt the user name and the date,
Of course, also can put the date, the number of user name and a long memory database, each database, but not the effect of single sign-on,