< H1 > problem description < / H1 >
now you need to do token verification. The client submits the client id and the client key. After passing the verification, the server obtains the configuration expiration time from the configuration file, then generates a GUID as access_token, stores the access_token in the cache, and sets the expiration time of the cache. Finally, the access_token and expiration time are assembled into JSON and returned to the client.
< H1 > problems to be solved < / H1 >
how to do this cache and set the expiration time, is it using redis? How do you do that? Is the simplest verification, how to store the UUID and time in the cache, and then let the search for verification, after expiration, return 401 to get the token.