Patent ID: 9626137
Date: 2017-04-18
CPC Classifications: G06F

Claim:
1. An image forming apparatus comprising: at least one processor; and at least a memory storing instructions that, when executed by the least one processor, cause the information processing apparatus to execute: a management unit that manages a device resource, a first token request transmission unit configured to transmit, to a server device, a first token acquisition request containing device credential information, a first token reception unit configured to receive, from the server device, a first token corresponding to the device credential information, a storage unit configured to store the first token received by the first token reception unit, a second token request transmission unit configured to acquire the first token stored in the storage unit and transmit, to the server device, a second token acquisition request containing a valid first token and identification information for identifying the management unit that manages the device resource, wherein, in a case where the first token stored in the storage unit is not valid, the second token request transmission unit transmits, before transmitting the second token acquisition request, a third token acquisition request and, in response, receives a third token that is used for refreshing the first token, and then acquires the refreshed first token and restores the not valid first token with the acquired refreshed first token as the valid first token in the storage unit, a second token reception unit configured to receive, from the server device, a second token corresponding to the identification information; and a device resource request transmission unit configured to transmit, to a resource server, a request for a process related to the device resource, wherein the request contains the second token received by the second token reception unit, wherein, in response to determining that an expiration date of the first token stored in the storage unit is reached between performance of sequencing process to acquire the first token and performance of the sequencing process to acquire the second token, it is determined that the first token stored in the storage unit is not valid.