Redis-based token acquisition method and device and electronic equipment
An acquisition method and technology of electronic equipment, which is applied in the field of network security, can solve problems such as application or interface failure, token failure, etc., and achieve the effect of solving the limitation of issuance times and extending the validity period
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] figure 1 It is a schematic flow chart of the Redis-based token acquisition method of the embodiment of the present invention, which will be referred to below figure 1 , the Redis-based token acquisition method of the embodiment of the present invention is described in detail.
[0049] First, in step 101, the client sends a request for obtaining a token to the token management center, and the request for obtaining a token carries the unique identifier of the user.
[0050] In some exemplary implementations, a token management center is set up, including but not limited to token issuance, refreshing, storage and valid period setting.
[0051] In some exemplary implementations, the client sends a token acquisition request to the token management center.
[0052] In some exemplary implementations, the token acquisition request sent by the client carries the unique identifier of the user.
[0053] In some exemplary implementations, the management center uniformly stores t...
Embodiment 2
[0082] figure 2 is a schematic structural diagram of a Redis-based token acquisition device according to an embodiment of the present invention, which will be combined below figure 2 , to describe in detail the Redis-based token acquisition device of the embodiment of the present invention.
[0083] The token acquisition device in the embodiment of the present invention adopts the Redis-based token acquisition method in the first embodiment above.
[0084] The Redis-based token acquisition device in the embodiment of the present invention includes: a token management center 201 and a Redis 202 .
[0085] In some exemplary implementations, the token management center 201 includes, but is not limited to, the issuance, refreshment, storage, and validity period setting of tokens.
[0086] In some exemplary implementations, the token management center 201 uniformly stores the generated or acquired valid tokens in Redis 202 .
[0087] In some exemplary implementations, Redis (R...
Embodiment 3
[0110] image 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, such as image 3 As shown, at the hardware level, the electronic device includes a processor, and optionally also includes a bus, a network interface, and a memory. Wherein, the memory may include a memory, such as a high-speed random-access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Of course, the electronic device may also include hardware required by other services.
[0111] The processor, network interface and memory can be connected to each other through a bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnection standard) bus or an EISA (Extended Industry Standard Architecture, extended industry standard structure) bus, etc. The bus can b...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


