# US 2021/0344670 A1 · Methods and apparatus to refresh a token

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0344670 A1
- Document ID: US20210344670A1
- Status: Published application
- Kind: A1
- Application number: 16/864,084
- Filed: 2020-04-30
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Martin Dachev; George P Dimitrov
- Web page: https://patentgrep.com/patent/US20210344670A1

## CPC

- H04L 63/0807: {using tickets, e.g. Kerberos (cryptographic mechanisms or cryptographic arrangements for entity authentication using tickets or tokens H04L9/3213)}
- H04L 63/0846: {using time-dependent-passwords, e.g. periodically changing passwords}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Methods, apparatus, systems, and articles of manufacture to refresh a token for use in a virtualized computing environment are disclosed. An example method includes accessing a request to perform an automation task; extracting a first token from the request to perform the automation task; determining, by executing an instruction with a processor, whether the first token is expired or will expire in a threshold amount of time; in response to determining that the first token is expired or will expire in the threshold amount of time, requesting a refreshed token; replacing the first token with the refreshed token to create an updated request; and sending the updated request to an automation executor.

## Claims

### Claim 1

An apparatus to refresh a token, the apparatus comprising:
a request interceptor to access a request to perform an automation task;
a token analyzer to:
extract a first token from the request to perform the automation task; and
determine whether the first token is expired or will expire within a threshold amount of time;
a user token requestor to, in response to the token analyzer determining that the first token is expired or will expire in the threshold amount of time, request a refreshed token;
a token updater to replace the first token with the refreshed token to create an updated request; and
a request transmitter to send the updated request to an automation executor.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the token analyzer is further to determine whether the first token is a user token, and the user token requestor is to request the refreshed token in response to the token analyzer determining that the first token is the user token.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the token analyzer is further to determine an amount of time until expiration of the first token, and compare the amount of time until expiration of the first token to the threshold.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the threshold is five minutes.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the user token requestor is to send a token refresh request to a session controller, the token refresh request including credentials.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein at least one of the request interceptor, the token analyzer, the user token requestor, the token updater, and the request transmitter are implemented as a service within an automation manager.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the request interceptor is to intercept the request from an automation request interface.

### Claim 8

At least one non-transitory computer readable storage medium comprising instructions that, when executed, cause at least one processor to at least:
access a request to perform an automation task;
extract a first token from the request to perform the automation task;
determine whether the first token is expired or will expire within a threshold amount of time;
in response to determining that the first token is expired or will expire within the threshold amount of time, request a refreshed token;
replace the first token with the refreshed token to create an updated request; and
send the updated request to an automation executor.

### Claim 9 (depends on 8)

The at least one computer readable storage medium of claim 8, wherein the instructions, when executed, further cause the processor to determine whether the first token is a user token, and wherein the request for the refreshed token is transmitted in response to determining that the first token is the user token.

### Claim 10 (depends on 8)

The at least one computer readable storage medium of claim 8, wherein the instructions, when executed, further cause the processor to:
determine an amount of time until expiration of the first token; and
compare the amount of time until expiration of the first token to the threshold.

### Claim 11 (depends on 10)

The at least one computer readable storage medium of claim 10, wherein the threshold is five minutes.

### Claim 12 (depends on 8)

The at least one computer readable storage medium of claim 8, wherein the instructions, when executed, further cause the processor to transmit a token refresh request to a session controller, the token refresh request including credentials.

### Claim 13 (depends on 8)

The at least one computer readable storage medium of claim 8, wherein the instructions, when executed, further cause the processor to intercept the request from an automation request interface.

### Claim 14

A method to refresh a token, the method comprising:
accessing a request to perform an automation task;
extracting a first token from the request to perform the automation task;
determining, by executing an instruction with a processor, whether the first token is expired or will expire within a threshold amount of time;
in response to determining that the first token is expired or will expire within the threshold amount of time, requesting a refreshed token;
replacing the first token with the refreshed token to create an updated request; and
sending the updated request to an automation executor.

### Claim 15 (depends on 14)

The method of claim 14, further including determining whether the first token is a user token, and wherein the requesting of the refreshed token is further performed in response to determining that the first token is the user token.

### Claim 16 (depends on 14)

The method of claim 14, wherein the determining that the first token will soon be expired includes:
determining an amount of time until expiration of the first token; and
comparing the amount of time until expiration of the first token to the threshold.

### Claim 17 (depends on 16)

The method of claim 16, wherein the threshold is five minutes.

### Claim 18 (depends on 14)

The method of claim 14, wherein the requesting of the refreshed token includes sending a token refresh request to a session controller, the token refresh request including client credentials.

### Claim 19 (depends on 14)

The method of claim 14, wherein the request to perform the automation task is intercepted between transmission from an automation request interface to the automation executor.

### Claim at position 20

20-26. (canceled)
