Step-by-step validation of access tokens
A sidecar system intercepts and locally validates access tokens, addressing inefficiencies and security risks in token-based authentication by reducing validation costs and enhancing security through incremental verification without constant server communication.
Patent Information
- Application Number
- JP2024515861
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-20
- Filing Date
- 2022-09-15
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2042-09-15
AI Technical Summary
Existing token-based authentication systems face inefficiencies and security risks due to the need for frequent validation of access tokens, which can lead to increased communication costs and exposure to malicious attacks when tokens expire or become invalid.
Implementing a sidecar system to intercept and locally validate access tokens, storing their validity periods, and using locally stored information to incrementally verify tokens without constant communication with authentication servers, thereby reducing validation costs and enhancing security.
This approach allows for efficient, secure, and rapid token validation, minimizing exposure to malicious attacks and reducing communication overhead by leveraging local storage for token verification.
Smart Images

Figure 2024533456000001
Abstract
Description
[Technical field]
[0001] The present invention relates generally to computer systems, and more particularly to computer-implemented methods, computer systems, and computer program products configured and arranged to incrementally validate access tokens. [Background technology]
[0002] Modern secure applications often use access tokens to allow users to access appropriate resources, and these access tokens usually have a limited lifetime. This is for a variety of security reasons, one of which is to limit the time that an attacker can use a stolen token by limiting its lifetime. Also, the information contained in or referenced by the access token may become outdated. If an access token expires or becomes invalid, and an application still needs to access protected resources, the application faces the problem of obtaining a new access token without forcing the user to grant the authorization again. To solve this problem, OAuth2.0 (an industry standard for authorization) introduces an artifact called a refresh token. A refresh token allows an application to obtain a new access token without prompting the user.
[0003] Access tokens are used in token-based authentication to allow applications to access application programming interfaces (APIs). An application receives an access token after a user has been successfully authenticated and authorized for access, and passes the access token as authentication information when calling a target API (e.g., associated with a target resource). The token informs the API that the token's owner is authorized to access the API and perform certain actions as specified by the scopes granted during authorization.
[0004] Auth0 issues access or identification (ID) tokens in response to authentication requests. Applications can use access tokens to make authenticated calls to secure APIs. ID tokens, on the other hand, contain user profile attributes expressed in the form of claims. Both are JSON (Java(R)Script Object Notation) Web Tokens (JWTs), and therefore have security measures such as signatures, as well as an expiration time indicated by the "exp" (expiration) claim. Typically, a user needs a new access token when accessing a resource for the first time or after a previously granted access token expires. As mentioned above, a refresh token is a special type of token used to obtain an updated access token, and applications can request a new access token until the refresh token is placed on the DenyList, indicating that it cannot be used any more. Applications store refresh tokens securely so that they can maintain the user's authentication.
[0005] Although existing technologies for using tokens are suitable for their intended purposes, a system having the particular features of embodiments of the present invention is desired. Summary of the Invention
[0006] An embodiment of the present invention is directed to a computer-implemented method for incrementally validating an access token. A non-limiting and exemplary computer-implemented method includes validating a token for an initial invocation of a transaction related to the service in response to intercepting an initial invocation of a transaction related to the service from a client, the validating including querying an authentication server and locally storing a validity period received for the token. The computer-implemented method includes determining that the token for the at least one successive invocation is valid based on the locally stored validity period in response to intercepting at least one successive invocation of the transaction related to the service from the client. The computer-implemented method includes permitting the passing of at least one successive invocation of the transaction related to the service without querying an authentication server.
[0007] This improves on known methods by incrementally validating tokens for transactions, thus ensuring significant security of managed systems and services. Other improvements include that tokens are not limited to a short lifespan, invalid tokens are always caught as soon as possible, the cost of token validation (e.g. time and repeated communication) is kept low, and multiple types of tokens can be supported.
[0008] In addition to or in place of one or more of the above or below described features, in another embodiment of the invention, the method includes determining that the at least one successive call is a final call of the transaction, and executing the transaction, thereby advantageously providing a technique for validating the token without querying an authentication server.
[0009] In addition to or in place of one or more of the above or below described features, in another embodiment of the invention, the method includes determining that the token for the last subsequent invocation is invalid based on the expiration of a locally stored validity period, preventing delivery of the last subsequent invocation of the transaction for the service, and backing out the transaction. This advantageously provides a technique that may validate the token using locally stored information without querying an authentication server.
[0010] In addition to or in place of one or more of the above or below described features, in another embodiment of the invention, the method includes preventing unauthorized reuse of the token by clearing the token's validity period in response to completing or reversing a transaction. This advantageously provides a technique to prevent token misuse while still allowing the token to be validated using locally stored information without querying an authentication server.
[0011] In addition to or in place of one or more of the above or below described features, in another embodiment of the invention, determining that the at least one successive call token is valid based on the locally stored validity period includes preventing the backend service computer system from querying an authentication server to validate the at least one successive call token, thereby advantageously providing a technique that may quickly validate the token using locally stored information without querying an authentication server.
[0012] In addition to or in lieu of one or more of the above or below described features, in other embodiments of the invention, determining that the at least one successive call token is valid based on a locally stored validity period avoids the requirement for the backend service computer system to query an authentication server to validate the at least one successive call token, thereby advantageously providing a technique that may quickly validate the token using locally stored information without querying an authentication server.
[0013] A non-limiting exemplary computer-implemented method includes, in response to intercepting a token call involving an application programming interface (API) key for a transaction for a service from a client, obtaining an API key token list and an API key access policy by querying an access decision engine, where the API key, token list, and access policy are co-associated and locally stored. The computer-implemented method includes, in response to intercepting the call for the service having the API key and the token, determining that the call is to be granted access to the service based on the locally stored API key token list and access policy, and granting the call access to a resource for the service without querying the access decision engine.
[0014] This improves on known methods by throttling token validation access to the access decision engine, reducing the risk of token misuse if the attached API key expires.
[0015] In addition to or in place of one or more of the above or below described features, in another embodiment of the invention, the method includes determining that a subsequent call to the service having the API key and another token is granted access to the service based on the locally stored token list of the API key and the access policy, thereby advantageously providing a technique that may use locally stored information without having to access a decision engine.
[0016] In addition to or in place of one or more of the above or below features, in another embodiment of the invention, the method includes determining that the call is granted access to the service based on the locally stored API key token list and the access policy includes verifying that the token is in the token list and verifying that the access policy allows the API key to access the service without consulting an access decision engine. This advantageously provides a technique that may use locally stored information without having to access a decision engine.
[0017] In addition to or in place of one or more of the above or below described features, in another embodiment of the invention, the method includes monitoring for an API key revocation event, which advantageously provides a technique for immediately invalidating an API key, which may prevent misuse of the API key.
[0018] In addition to or in place of one or more of the above or below features, in another embodiment of the invention, the method includes, in response to an API key revocation event occurring, invalidating a token list associated with the expired API key to prevent further use of the API key, thereby advantageously providing a technique for immediately invalidating the API key to prevent misuse of the API key.
[0019] In addition to or in place of one or more of the above or below described features, in another embodiment of the invention, the method includes, in response to the absence of an API key revocation event, allowing the locally stored token list to continue to be used in determining API key access, thereby advantageously providing a technique that can quickly determine that access to a service is permitted in the absence of an API key revocation event.
[0020] Other embodiments of the present invention implement features of the above-described methods in computer systems and computer program products.
[0021] Additional technical features and advantages are realized through the techniques of the present invention. Embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed subject matter. For a better understanding, reference is made to the description and drawings for more details.
[0022] The particulars of the exclusive rights set forth herein are particularly pointed out and distinctly claimed in the appended claims. The above and other features and advantages of embodiments of the present invention will become apparent from the following detailed description taken in conjunction with the accompanying drawings. [Brief description of the drawings]
[0023] [Figure 1] FIG. 1 is a block diagram of an exemplary computer system for use in conjunction with one or more embodiments of the present invention. [Diagram 2] FIG. 1 is a block diagram of an exemplary computing environment configured to incrementally validate access tokens in accordance with one or more embodiments of the present invention. [Diagram 3] 1 is a flowchart of a computer-implemented process for interaction patterns of intercepted transaction calls in accordance with one or more embodiments of the present invention. [Figure 4]FIG. 1 is a block diagram illustrating an example of a sidecar computer system as a token interceptor for use in an identity and access management (IAM) policy in accordance with one or more embodiments of the present invention. [Diagram 5] FIG. 11 is a block diagram further illustrating an example of a sidecar computer system as a token interceptor for use in an IAM policy in accordance with one or more embodiments of the present invention. [Figure 6] FIG. 11 is a block diagram further illustrating an example of a sidecar computer system as a token interceptor for use in an IAM policy in accordance with one or more embodiments of the present invention. [Figure 7] FIG. 2 is a block diagram illustrating a token initializer in accordance with one or more embodiments of the present invention. [Figure 8] 2 is a block diagram illustrating a policy manager in accordance with one or more embodiments of the present invention. [Figure 9] 2 is a block diagram illustrating example rules in a policy database in accordance with one or more embodiments of the present invention. [Figure 10] FIG. 2 is a block diagram illustrating a token manager in accordance with one or more embodiments of the present invention. [Figure 11] FIG. 2 is a block diagram illustrating a token updater in accordance with one or more embodiments of the present invention. [Figure 12] FIG. 2 is a block diagram illustrating a token invalidator in accordance with one or more embodiments of the present invention. [Figure 13] 2 is a block diagram illustrating a token interceptor in accordance with one or more embodiments of the present invention. [Figure 14] 1 is a flowchart of a computer-implemented method for enabling transactions with backend services through gradual validation of tokens in accordance with one or more embodiments of the present invention. [Figure 15]1 is a flowchart of a computer-implemented method for enabling transactions with and / or access to backend services through cascading validation of tokens in accordance with one or more embodiments of the present invention. [Figure 16] FIG. 1 illustrates a cloud computing environment in accordance with one or more embodiments of the present invention. [Figure 17] FIG. 2 illustrates an abstraction model layer in accordance with one or more embodiments of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] One or more embodiments of the present invention provide a computer-implemented method, computer system, and computer program product configured and arranged to incrementally validate access tokens. As described herein, a refresh token allows an application to obtain a new access token without prompting a user. However, a refresh token may expire while an access token remains valid. To address this issue, some approaches may set a short expiration or validity period for the access token or may use a token bucket via interception to validate the access token. In one or more embodiments of the present invention, the access token is validated incrementally by intercepting traffic to the service using a sidecar and analyzing the traffic to extract token usage patterns and traffic type. In the case of transaction traffic, one or more embodiments validate the token in the first service invocation of the transaction and store the validity period in a token transaction manager in the sidecar. In the case of consecutive traffic (i.e., consecutive and / or subsequent service invocations of the transaction), one or more embodiments use a calculated validity period instead of performing the validation by interacting and / or communicating with an authentication server. For transactions involving execution or backtracking, one or more embodiments of the invention check the token again to complete the transaction.For access tokens generated using an Application Programming Interface (API) key (API key), one or more embodiments establish and / or generate a relationship between the API key and a token identifiable in a token list, and validate all tokens by validating the access token using the discovered rules instead of interacting and / or communicating with an authentication server (or access decision engine), and check / monitor API key revocation events, and if the system finds that an API key has been revoked, the token list associated with the revoked API key is also revoked.
[0025] By incrementally validating the transactional access token, various technical benefits and technical solutions are provided. For example, the duration of the access token is not limited to a short period of time. In one or more embodiments, the cost of token validation (e.g., time, requests to an authentication server, etc.) is reduced because invalid tokens are always caught as soon as possible. Furthermore, one or more embodiments of the present invention can accommodate multiple types of tokens. Furthermore, the system for incrementally validating the transactional access token is a technical solution to a technical problem that cannot be performed by the human mind, with or without the aid of pen / paper, to ensure the security of managed systems and services to a large extent. Furthermore, the system for incrementally validating the transactional access token can prevent or mitigate malicious computer attacks or intrusions, and can prevent or mitigate computer security threats, providing confidentiality and security when computer systems are communicating with each other, thereby reducing further exposure to potential or current computer problems due to the improved capabilities of the computer system itself as well as multiple interconnected computer systems in a cloud environment.
[0026] Reference is now made to FIG. 1, which generally illustrates a computer system 100 according to one or more embodiments of the present invention. As described herein, computer system 100 may be an electronic computer framework that includes and / or employs any number of computing devices and networks and combinations of computing devices and networks using various communication technologies. Computer system 100 may be easily scaled, expanded, and modularized, allowing modification to different services or reconfiguration of some functions independently of others. Computer system 100 may be, for example, a server, a desktop computer, a laptop computer, a tablet computer, or a smartphone. In some examples, computer system 100 may be a cloud computing node. Computer system 100 may be described in the general context of computer system executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. Computer system 100 may be implemented in a distributed cloud computing environment in which tasks are performed by remote processing devices linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
[0027] As shown in FIG. 1, computer system 100 has one or more central processing units (CPUs) 101a, 101b, 101c, etc. (collectively or generically referred to as processor 101). Processor 101 may be a single-core processor, a multi-core processor, a computing cluster, or any number of other configurations. Processor 101 (also referred to as processing circuitry) is coupled to system memory 103 and various other components via system bus 102. System memory 103 may include read-only memory (ROM) 104 and random access memory (RAM) 105. ROM 104 is coupled to system bus 102 and may include a basic input / output system (BIOS) or a successor system such as a unified extensible firmware interface (UEFI) that controls certain basic functions of computer system 100. RAM is a readable and writeable memory coupled to system bus 102 for use by processor 101. System memory 103 provides temporary memory space for the execution of said instructions during operation. The system memory 103 may include random access memory (RAM), read-only memory, flash memory, or any other suitable memory system.
[0028] Computer system 100 includes an input / output (I / O) adapter 106 and a communications adapter 107 coupled to system bus 102. I / O adapter 106 may be a small computer system interface (SCSI) adapter that communicates with a hard disk 108 or any other similar component or both. I / O adapter 106 and hard disk 108 are collectively referred to herein as mass storage 110.
[0029] Software 111 executed on computer system 100 may be stored on mass storage 110. Mass storage 110 is an example of a tangible storage medium readable by processor 101, where software 111 is stored as instructions executed by processor 101 to operate computer system 100 as described below with respect to the various figures. Examples of computer program products and the execution of such instructions are discussed in more detail herein. Communications adapter 107 interconnects system bus 102 with network 112, which may be an external network, to enable computer system 100 to communicate with such other systems. In one embodiment, a portion of system memory 103 and mass storage 110 collectively store an operating system, which may be any suitable operating system that coordinates the functions of the various components illustrated in FIG. 1.
[0030] Additional input / output devices are shown as connected to the system bus 102 via a display adapter 115 and an interface adapter 116. In one embodiment, adapters 106, 107, 115, and 116 may be connected to one or more I / O buses connected to the system bus 102 via an intermediate bus bridge (not shown). A display 119 (e.g., a screen or display monitor) is connected to the system bus 102 via a display adapter 115, which may include a graphics controller and a video controller to improve performance of graphics-intensive applications. A keyboard 121, a mouse 122, a speaker 123, etc. may be interconnected to the system bus 102 via an interface adapter 116, which may include, for example, a super I / O chip that combines multiple device adapters into a single integrated circuit. Suitable I / O buses for connecting peripheral devices such as hard disk controllers, network adapters, and graphics adapters typically include common protocols such as Peripheral Component Interconnect (PCI) and Peripheral Component Interconnect Express (PCIe). Thus, as configured in Figure 1, computer system 100 includes processing capability in the form of processor 101, storage capabilities including system memory 103 and mass storage 110, input means such as keyboard 121 and mouse 122, and output capabilities including speakers 123 and display 119.
[0031] In some embodiments, the communications adapter 107 can transmit data using any suitable interface or protocol, such as an Internet small computer system interface, among others. The network 112 can be a cellular network, a wireless network, a wide area network (WAN), a local area network (LAN), or the Internet, among others. The computer system 100 can be connected to an external computing device through the network 112. In some examples, the external computing device can be an external web server or a cloud computing node.
[0032] It should be understood that the block diagram of Figure 1 is not intended to indicate that computer system 100 includes all of the components depicted in Figure 1. Rather, computer system 100 may include any suitable components that are fewer or may include additional components not depicted in Figure 1 (e.g., additional memory components, embedded controllers, modules, additional network interfaces, etc.). Additionally, the embodiments described herein with respect to computer system 100 may be implemented by any suitable logic, and in various embodiments, logic referred to herein may include any suitable hardware (e.g., a processor, an embedded controller, or an application specific integrated circuit, among others), software (e.g., an application, among others), firmware, or any suitable combination of hardware, software, and firmware.
[0033] 2 is a block diagram of an exemplary computing environment 200 configured to stepwise validate an access token in accordance with one or more embodiments of the present invention. The computing environment 200 may include a computer system 202, a sidecar computer system 205, a client computer system 240, an authentication server 270, and a backend service computer system 280, any of which may include any of the hardware and software components and functions discussed in the computer system 100 of FIG. 1. The computing environment 200 may represent one or more portions of a cloud computing environment. The functionality of the computing environment 200 may be implemented and / or used with any of the workloads of the workload layer 90 and the hardware and software layer 60 components described in FIG. 17.
[0034] FIG. 3 is a flowchart of a computer-implemented process 300 for an interaction pattern of an intercepted transaction call, according to one or more embodiments. FIG. 3 can be described by an interaction pattern of a Representational State Transfer (REST) call. REST is a software architectural style created to guide the design and development of the architecture of the World Wide Web. REST APIs provide a flexible and lightweight way to integrate applications and have emerged as the most popular way to connect components in microservices architectures. REST APIs are sometimes referred to as RESTful APIs because they are APIs that conform to the design principles of the Representational State Transfer (REST) architectural style.
[0035] According to one or more embodiments, for each transaction, the (only) first transaction creation call will query the authentication server for validation. This differs from traditional transactional REST calls, where every REST call must query the authentication server and / or some entity for validation.
[0036] In block 302 of the computer-implemented process 300, when the client computer system 240 makes a REST call to a backend transaction service of the backend service computer system 280 with the access token in the header, the token interceptor 218 of the sidecar computer system 250 is configured to intercept the transaction REST call from the client computer system 240 to the authentication server 270 and generate a multi-statement transaction by sending a POST request to obtain a transaction identification (ID) (also referred to as TID) from the token computer system 202. The REST call is a transaction request for a transaction. The client computer system 240 may previously log in to the token computer system 202 to obtain an access token to use in constructing the transaction REST. The client computer system 240 is representative of an operating entity, and may be an application, client, etc. running on a computer system.
[0037] A transaction is a logical unit of work for performing operations. A transaction can be a set of one or more statements that can all fail or all succeed. A transaction can be an update transaction or a query (read-only) transaction, depending on the transaction type and the types of statements in the transaction. A transaction can be a single-statement transaction or a multi-statement transaction, depending on the execution mode in which it is created. A transaction is a multi-statement transaction if it is created in a context where the execution mode has been explicitly set. A transaction ID can be a special set of numbers that identifies each transaction.
[0038] A POST request is a request method supported by the HyperText Transfer Protocol (HTTP) used on the World Wide Web. By design, the POST request method requests the server to accept data enclosed in the body of the request message. For example, a POST request is used to send data to an API server to create or update a resource. The data sent to the server is stored in the request body of the HTTP request.
[0039] In block 304, the token interceptor 218 of the sidecar computing system 250 is configured to query the authentication server 270 for validation of the client computing system 240 (or client application computing system) via a transaction REST call requesting a transaction with the access token, and is configured to receive and store the time to live (TTL) of the access token associated with the client computing system 240. The sidecar computing system 250 may query the authentication server 270 via the token computing system 202, but in one or more embodiments may query and communicate directly with the authentication server 270. After receiving the time to live from the token computing system 202, the sidecar computing system 250 may store the time to live of the access token in a local TTL database 252. For purposes of illustration, it is assumed that the initial transaction creation call of a transaction is requested by the client computing system 240. For subsequent and / or consecutive transaction invocations / requests of the (same) transaction by the client computer system 240, the sidecar computer system 250, the client computer system 240, and the backend service computer system 280 do not need to query the authentication server 270 and / or the token computer system 202 for validation.
[0040] In block 306, for a series of transaction invocations / requests of a transaction desired by the client computer system 240, the sidecar computer system 250 is configured to use the validity period stored in the local TTL database 252 for validation of the associated access token of the transaction without consulting the authentication server 270 for validation of the access token. For example, the client computer system 240 may send a subsequent invocation of the transaction to the backend service computer system 280 using the (same) access token, where the subsequent invocation / request of the transaction is after the initial invocation of the transaction that initially required the sidecar computer system 250 to consult the authentication server 270 for validation. Upon intercepting the subsequent invocation / request from the client computer system 240 to the backend service computer system 280, the sidecar computer system 250 is configured to analyze and recognize that the access token is utilized for the service invocation / request of the transaction subsequent to the initial service invocation. Thus, the sidecar computing system 250 can look up the access token in a local TTL database 252 to verify that this is a subsequent service call / request. In one or more embodiments, the sidecar computing system 250 is configured to prevent the token computing system 202 from querying the authentication server 270 to validate the access token for the subsequent call / request and / or the backend service computing system 250 from querying the authentication server 270 to validate the access token for the subsequent call / request.Alternatively, in block 308, sidecar computer system 250 is configured to check that the validity period of the access token in local TTL database 252 is still valid, without querying and / or by authentication server 270. For example, sidecar computer system 250 is configured to check whether the validity period of the access token in local TTL database 252 has expired.
[0041] In block 310, if the validity period of the access token associated with a subsequent invocation / request of the transaction is no longer valid (i.e., has expired), the sidecar computer system 250 is configured to back off the transaction such that any potential modifications of one or more resources of the backend service computer system 280 are not performed and do not take effect.
[0042] In block 312, if the validity period of the access token associated with the subsequent invocation / request of the transaction is still valid (i.e., not expired), the sidecar computer system 250 is configured to execute the transaction to execute the modification of one or more resources of the backend service computer system 280. In a transaction system, execute and revert represent a set of actions by which an application program can either execute all modifications of resources represented by a single unit of recovery (UR) or not execute any modifications. Furthermore, subsequent invocations / requests of the transaction using the same access token (i.e., any service invocations / requests of the transaction after the first service invocation / request of the transaction) are allowed to be passed directly to the backend transaction service by the backend service computer system 280 after it is verified that the validity period has not expired.
[0043] In one or more embodiments, the sidecar computer system 250 may include the functionality of an HTTP proxy to redirect the original client POST request to the backend service computer system 280 (e.g., a backend server). From the perspective of the backend service, the backend service computer system 280 does not know that this POST request is from the sidecar computer system 250, and the POST request is received as if it were from the client computer system 240. The backend service computer system 280 generates a transaction identification and then sends back a response. The sidecar computer system 250 intercepts the response, records the transaction identification in the local TTL database 252, and associates the transaction identification with the token's stored TTL. The sidecar computer system 250 re-proxys the response to the client computer system 240. The transaction having the transaction identification is generated by the client computer system 240. The sidecar computer system 250, without accessing the authentication server 270, intercepts and obtains the transaction identification and TTL of the subsequent transaction invocation (which includes the transaction identification in the header), and then compares it with the transaction identification stored in the local TTL database 252 to obtain the TTL.
[0044] FIG. 4 is a block diagram illustrating an example of a sidecar computer system 250 as a token interceptor for use with identity and access management (IAM) policies, according to one or more embodiments. In this example, an IAM system 276 can be utilized, including an IAM engine 222, an access decision engine 224, and an IAM policy database 226. The IAM engine 222 and the access decision engine 224 can be one or more software applications and / or modules running on the token computer system 202. Although the IAM system 276 is shown on the token computer system 202, in one or more embodiments, it can be partially on the token computer system 202 or entirely on a computer system separate from the token computer system 202. Using an IAM policy management API, the IAM engine 222 can create, update, view, and delete IAM policies in the IAM policy database 226. IAM policies allow access to targeted resources. These policies are used to make access decisions when client computer systems make API calls to IAM-enabled services.
[0045] In FIG. 4, an IAM policy executed by the IAM engine 222 typically uses an API key to generate an access token. As seen in FIG. 4, the access token specifies the subject access (e.g., field 402) to a target (e.g., field 404) with specific permissions (e.g., field 406). Typically, every call with the access token to the backend service computer system 280 must request a decision from the access decision engine 224 whether the call is allowed or denied. However, similar to the description of FIG. 3 with respect to the authentication server 270, but by using the access decision engine 224 of the IAM system 276 instead, the token interceptor 218 of the sidecar computer system 250 is configured to reduce the token validation access to the access decision engine 224 of the IAM system 276 according to one or more embodiments to reduce the risk of misuse of the access token if the attached API key expires.
[0046] 5 is a block diagram further illustrating an example of a sidecar computer system 250 as a token interceptor for use with an IAM policy of an IAM system 276, according to one or more embodiments. At operation 501.1, the token interceptor 218 of the sidecar computer system 250 is configured to intercept a first IAM-generated token call with API Key 1 from a client computer system 240 intended for the IAM system 276 of the token computer system 202. At operation 501.2, the token interceptor 218 of the sidecar computer system 250 is configured to intercept a second IAM-generated token call with API Key 2 from a client computer system 240 intended for the IAM system 276 of the token computer system 202. In one or more embodiments, the IAM system 276 can notify the token interceptor 218 of the sidecar computer system 250 of the IAM-generated token call with API Key 1, API Key 2.
[0047] At operation 502.1, the token interceptor 218 of the sidecar computer system 250 is configured to query the IAM engine 222 of the IAM system 276 to generate an access token for the IAM generate token call for API key 1 (and similarly, API key 2). The IAM engine 222 may generate the token identified in the token list. At operation 502.2, the token interceptor 218 of the sidecar computer system 250 is configured to query the access decision engine 224 of the IAM system 276 to check that the generated access token has privileges for accessing the associated resource of the backend service computer system 280. At operation 502.3, the sidecar computer system 250 is configured to store the access policy, including the API keys (e.g., API key 1, API key 2), the privileges from the access decision engine 224 (and the type of privileges for the tokens in the token list), and the token list in the local policy database 254 of the sidecar computer system 250.
[0048] The token interceptor 218 establishes and / or generates an association between the tokens in the token list, the access policy to the target resource, and the API key in the local policy database 254 so that whenever an API key and its token are identified in a service call / request, this additional data is retrieved from the local policy database 254 and applied to allow or deny access to the target resource. Figure 5 shows that in this exemplary scenario, the sidecar computer system 250 has local access to the access policy for API key 1 as well as token 1 and token 2 that are utilized to allow or deny access to the backend service of the backend service computer system 280 of the client computer system 240.
[0049] Figure 6 is a block diagram further illustrating an example of a sidecar computer system 250 as a token interceptor for use with an IAM policy, according to one or more embodiments. Similar to the description of Figure 3 with respect to authentication server 270, Figure 6 illustrates the use of transactional REST calls. Of course, one or more embodiments may be applied to other types of service calls.
[0050] At operation 601.1, token interceptor 218 of sidecar computer system 250 is configured to intercept a transactional REST call involving token 1 of API key 1 from client computer system 240 to backend service computer system 280. At operation 601.2, sidecar computer system 250 is configured to intercept a transactional REST call involving token 2 of API key 1 from client computer system 240 to backend service computer system 280.
[0051] In operation 602, the sidecar computer system 250 is configured to check the token access privileges for the access token (e.g., Token 1 and Token 2 for API Key 1) in the local token list in the local policy database 254. According to the token access policies (privileges) in the local token list in the local policy database 254, the token interceptor 218 of the sidecar computer system 250 determines whether the transaction requested with the access token and API key is allowed.
[0052] In operation 603, the token interceptor 218 of the sidecar computer system 250 is configured to allow access to resources of the backend service computer system 280 or deny access to resources of the backend service computer system 280 depending on whether the access token of the API key (e.g., API key 1) is allowed or denied access in the local token list in the local policy database 254.
[0053] In operation 604, the token interceptor 218 of the sidecar computer system 250 is configured to continuously check / monitor for API key revocation events, and if the sidecar computer system 250 finds an API key revocation, the sidecar computer system 250 is configured to block access to the target resource of the backend service computer system 250 by invalidating / removing the token list associated with the expired API key. For example, the API key revocation event can be pushed from the IAM engine 222 and / or pulled from the IAM engine 222. The IAM engine 222 can invalidate the API key (e.g., API key 1) using standard methods. The invalidation of the API key can be an action initiated by an administrator, typically from a cloud graphical user interface (GUI) coupled to the token computer system 202 (e.g., in communication with the IAM engine 222), and the invalidation of the API key generates an API key revocation event. This API key revocation event is monitored and, upon its occurrence, sidecar computer system 250 invalidates all tokens associated with this API key. As seen in Figures 4, 5, and 6, sidecar computer system 250 as a token interceptor is configured to reduce token validation access to an access decision engine of IAM system 276 according to one or more embodiments to reduce the risk of misuse of an access token when an attached API key has been revoked.
[0054] FIG. 7 is a block diagram illustrating a token initializer according to one or more embodiments. The token initializer 204 may represent one or more software applications and / or modules executing on the token computer system 202. The token initializer 204 is configured to accept a login request from a client computer system 240 (e.g., an actor) and obtain an access token and a refresh token from an authentication identity provider, such as one of the authentication servers 270. The token initializer 204 is configured to use the refresh token to obtain a new access token when the access token expires, i.e., when its validity period expires. The token initializer 204 is also configured to store the refresh token in the token bucket 206 for further use.
[0055] 8 is a block diagram illustrating a policy manager according to one or more embodiments. The policy manager 208 may represent one or more software applications and / or modules executing on the token computer system 202. The policy manager 208 is configured to analyze policies defined in a policy database 210, provide input to the token manager 212 to apply policies to access and refresh tokens, and generate new potential token policies by analyzing patterns in existing tokens.
[0056] Turning to further details regarding the policy database 210, the policy database 210 has entities including actors (e.g., client computer system 240), users or groups, access tokens and / or refresh tokens, and services that use tokens to access managed resources and conditions of services and determine trigger conditions. The policy database 210 also has rules including how and when to update access tokens, how and when to revoke access tokens and refresh tokens, which access tokens and / or refresh tokens a user should follow, which access tokens and / or refresh tokens a group should follow, and which access tokens and / or refresh tokens a group should follow. As defined in the policy database 210, each token and / or token group can be applied to different combinations of various rules to achieve different token behaviors for users and services. To illustrate the policies in the policy database 210, FIG. 9 is a block diagram illustrating example rules in the policy database 210 according to one or more embodiments.
[0057] 10 is a block diagram illustrating a token manager according to one or more embodiments. The token manager 212 may represent one or more software applications and / or modules executing on the token computer system 202. The token manager 212 is configured to manage tokens according to policies defined in a policy database 210 and is configured to manage the life cycle (i.e., validity period) of tokens for a single user and / or multiple users by invoking a token updater 214, which is described in further detail in FIG. 11, a token invalidator 216, which is described in further detail in FIG. 12, and a token interceptor 218.
[0058] 11 is a block diagram illustrating a token updater 214 according to one or more embodiments. The token updater 214 may represent one or more software applications and / or modules executing on the token computer system 202. The token updater 214 is configured to update the duration (i.e., validity period) of the token to extend the time it can be used and to obtain updated access tokens using refresh tokens.
[0059] 12 is a block diagram illustrating a token invalidator 216 according to one or more embodiments. The token invalidator 216 may represent one or more software applications and / or modules executing on the token computer system 202. The token invalidator 216 is configured to explicitly invalidate and / or discard tokens in the token bucket 206 according to instructions and / or policies enforced by the token manager 212. The token invalidator 216 is configured to invalidate the access token (only) if the access token is not valid, and to invalidate both the access token and the refresh token if the refresh token is not valid.
[0060] 13 is a block diagram illustrating a token interceptor 218 according to one or more embodiments. The token interceptor 218 may represent one or more software applications and / or modules executing on the sidecar computer system 250. The token interceptor 218 is configured to intercept API calls with HTTP authentication headers and uniform resource identifier (URI) query parameters from the client computer system 240, validate the token using information stored in the token bucket 206, and pass the request (i.e., the API call with the HTTP authentication header and URI query parameters) to a backend service of the backend service computer system 280 or reject the request due to token expiration.
[0061] 14 is a flowchart of a computer-implemented method 1400 for enabling a transaction with a backend service computer system 280 through staged validation of an access token in accordance with one or more embodiments of the present invention. The computer-implemented method 1400 may be performed using the sidecar computer system 250 of FIG. 2. The functionality of the computer system may be implemented and / or used with the hardware components of the hardware and software layer 60 and / or the workloads of the workload layer 90 shown in FIG. 17.
[0062] At block 1402 of computer-implemented method 1400, token interceptor 218 (e.g., one or more software applications) of sidecar computer system 250 is configured to validate the token for the initial invocation of a transaction for the service in response to intercepting the initial invocation of a transaction for the service from a client (e.g., from client computer system 240 to backend service computer system 280), which validation includes (by sidecar computer system 250) querying authentication server 270 and storing locally (e.g., in local TTL database 252) the validity period received for the token.
[0063] In block 1404, the token interceptor 218 of the sidecar computer system 250 is configured, in response to intercepting at least one successive invocation of a transaction relating to a service from a client (e.g., from the client computer system 240 to the backend service computer system 280), to determine that the token for the at least one successive invocation is valid based on the validity period stored locally in the local TTL database 252.
[0064] In block 1406, the token interceptor 218 of the sidecar computer system 250 is configured to allow the passing of at least one successive invocation of a transaction related to the service (e.g., to the backend service computer system 280 for performance of at least one operation on one or more resources managed by the backend service computer system 280) without querying the authentication server 270.
[0065] In one or more embodiments, the token interceptor 218 of the sidecar computer system 250 is configured to determine that at least one subsequent invocation is a final invocation of a transaction and to execute the transaction, where the initial invocation and subsequent invocations (including the final subsequent invocation) of the transaction use the same token.
[0066] The token interceptor 218 of the sidecar computer system 250 is configured to determine that the token for the last sequential invocation is invalid based on the expiration of the validity period stored locally in the local TTL database 252, and to block the passing of the last sequential invocation of the transaction for the service and to back off the transaction. For example, the token interceptor 218 checks the validity period in the local TTL database 252 and finds that the validity period has expired, meaning that the token is invalid. Thus, the token interceptor 218 blocks the passing of the last sequential invocation to the backend service computer system 280 and / or the processing of the last sequential invocation by the backend service computer system 280. Additionally, the token interceptor 218 backs off the transaction, which includes any previous invocations of the transaction.
[0067] The token interceptor 218 of the sidecar computer system 250 is configured to prevent unauthorized reuse of tokens by clearing / removing the token's validity period from the local TTL database 252 in response to a transaction being completed or reverted.
[0068] Determining that the token for the at least one successive call is valid based on the validity period stored locally in the local TTL database 252 includes preventing the backend service computer system 280 from querying the authentication server 270 (e.g., via the token computer system 202) for validation of the token for the at least one successive call. Determining that the token for the at least one successive call is valid based on the validity period stored locally in the local TTL database 252 avoids requiring the backend service computer system 280 to query the authentication server 270 (e.g., via the token computer system 202) for validation of the token for the at least one successive call. The transaction makes a change to at least one resource associated with the backend service computer system 280.
[0069] 15 is a flowchart of a computer-implemented method 1500 for enabling transactions with and / or access to a backend services computer system 280 through step-by-step validation of an access token in accordance with one or more embodiments of the present invention. The computer-implemented method 1500 may be performed using the sidecar computer system 250 of FIG. 2. The functionality of the computer system may be implemented and / or used with the hardware components of the hardware and software layer 60 and / or the workloads of the workload layer 90 shown in FIG. 17.
[0070] At block 1502 of the computer-implemented method 1500, the token interceptor 218 (e.g., one or more software applications) of the sidecar computer system 250 is configured to, in response to intercepting a token call with an application programming interface (API) key of a transaction for a service from a client (e.g., the client computer system 240), query the authentication server 270 (e.g., the IAM engine 222 and the access decision engine 224) to obtain a token list of the API key and an access policy for the API key, where the API key, the token list, and the policy are associated together and stored locally in the local policy database 254. For example, the token interceptor 218 can use the intercepted token call with the API key to query the IAM engine 222 to generate an access token and query the access decision engine 224 to obtain the access policy for the generated token, all of which are stored in the local policy database 254.
[0071] In block 1504, the token interceptor 218 is configured to, in response to intercepting the call for the service with the API key and the previously generated token, determine that the call should be granted access to the service based on the token list and access policy of the API key stored locally in the local policy database 254. For example, the token interceptor 218 checks the local policy database 254 to verify that the call should be granted access to the desired service on the backend service computer system 280 without querying the authentication server 270.
[0072] In block 1506 , the token interceptor 218 is configured to allow the call for the service to access resources on the backend service computer system 280 without consulting the authentication server 270 .
[0073] The token interceptor 218 is configured to determine that a subsequent call for the service with the API key and another token is to be granted access to the service based on the API key's token list and access policy stored locally in the local policy database 254. Determining that the call is to be granted access to the service based on the API key's token list and access policy stored locally in the local policy database 254 includes verifying that the token is on the token list and verifying that the access policy allows the API key to access the service, all without querying the authentication server 270. The token interceptor 218 is configured to monitor for API key revocation events, for example by checking (e.g., push and / or pull) with the authentication server 270.
[0074] The token interceptor 218 is configured to, in response to an API key revocation event occurring, disable a token list associated with the revoked API key to prevent further use of the API key, and, in response to an API key revocation event not occurring, allow the token list stored locally in the local policy database 254 to continue to be used in determining access for the API key.
[0075] Although this disclosure includes detailed descriptions of cloud computing, it is to be understood that implementation of the teachings recited herein is not limited to a cloud computing environment. Rather, embodiments of the invention may be implemented in conjunction with any other type of computing environment now known or later developed.
[0076] Cloud computing is a model of service delivery that enables convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly configured and published with minimal administrative effort or interaction with a service provider. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
[0077] The characteristics are as follows:
[0078] On-Demand Self-Service: Cloud customers can unilaterally configure computing capabilities such as server time and network storage automatically as needed, without the need for human interaction with the service provider.
[0079] Pervasive Network Access: Functionality is available over the network and accessed through standard mechanisms that facilitate use by heterogeneous thin-client or thick-client platforms (e.g., cell phones, laptops, and PDAs).
[0080] Resource Pooling: Using a multi-tenant model, a provider's computing resources are pooled for multiple consumers, with various physical and virtual resources dynamically allocated and reallocated as required. A sense of location independence exists in that consumers generally have no control or knowledge of the exact location of the resources provided, although the location may be specified at a higher level of abstraction (e.g., country, state, or data center).
[0081] Rapid Flexibility: Capabilities can be configured quickly and flexibly to rapidly scale out, and rapidly published to rapidly scale in, sometimes automatically. To the consumer, the capabilities available for configuration are often seemingly unlimited and can be purchased in any quantity at any time.
[0082] Service metering: Cloud systems automatically control and optimize resource usage by utilizing metering capabilities at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of utilized services.
[0083] The service model is as follows:
[0084] Software as a Service (SaaS): The functionality provided to the consumer is the use of the provider's applications running on a cloud infrastructure. These applications are accessible from a variety of client devices through thin client interfaces such as web browsers (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, storage, or individual application functionality, except for limited user-specific application configuration settings.
[0085] Platform as a Service (PaaS): The functionality provided to the consumer is the deployment of consumer-created or acquired applications written using programming languages and tools supported by the provider onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, or storage, but does control the deployed applications and, in some cases, the configuration of the application hosting environment.
[0086] Infrastructure as a Service (IaaS): The functionality provided to the consumer is to configure processing, storage, network, and other basic compute resources, but the consumer can deploy and run any software, which may include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, except for controlling the operating systems, storage, deployed applications, and possibly limited control over selected network components (e.g., host firewalls).
[0087] The layout model is as follows:
[0088] Private Cloud: The cloud infrastructure is operated solely for an organization. It can be managed by the organization or a third party and can exist on-premise or off-premise.
[0089] Community Cloud: This cloud infrastructure is shared by multiple organizations to support a specific community that shares shared concerns (e.g., mission, security requirements, policies, and compliance concerns). It may be managed by the organizations or a third party and may exist on-premise or off-premise.
[0090] Public Cloud: This cloud infrastructure is available to the general public or large industry organizations and is owned by organizations that sell cloud services.
[0091] Hybrid Cloud: This cloud infrastructure is a combination of two or more clouds (private, community, or public) that maintain their own unique entity but are joined by standard or proprietary technologies that enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0092] Cloud computing environments are service-oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.
[0093] Reference is now made to FIG. 16, which illustrates an exemplary cloud computing environment 50. As illustrated, the cloud computing environment 50 includes one or more cloud computing nodes 10 that enable communication of local computing devices used by cloud users, such as, for example, a personal digital assistant (PDA) or mobile phone 54A, a desktop computer 54B, a laptop computer 54C, or an automobile computer system 54N, or a combination thereof. The nodes 10 may be in communication with each other. They may be physically or virtually grouped in one or more networks, such as a private cloud, a community cloud, a public cloud, or a hybrid cloud, or a combination thereof, as described above (not shown). This allows the cloud computing environment 50 to provide infrastructure as a service, platform as a service, or software as a service, or a combination thereof, without the cloud user having to maintain resources on a local computing device. It will be understood that the types of computing devices 54A-54N shown in FIG. 16 are intended to be illustrative only, and that the computing node 10 and cloud computing environment 50 can communicate with any type of computerized equipment over any type of network and / or network-addressable connections (e.g., by using a web browser).
[0094]
[00136] Referring now to Figure 17, this figure illustrates a set of functional abstraction layers provided by cloud computing environment 50 (Figure 16). It should be understood in advance that the components, layers, and functions illustrated in Figure 17 are intended to be illustrative only and that embodiments of the present invention are not limited thereto. As illustrated, the following layers and corresponding functions are provided:
[0095] The hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframes 61, RISC (reduced instruction set computer) architecture based servers 62, servers 63, blade servers 64, storage devices 65, and networks and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
[0096] The virtualization layer 70 provides an abstraction layer through which examples of virtual entities such as virtual servers 71, virtual storage 72, virtual networks 73 (including virtual private networks), virtual applications and operating systems 74, and virtual clients 75 may be provided.
[0097] In one example, the management layer 80 may provide the following functions: Resource configuration 81 provides dynamic procurement of resources, such as computing resources, used to execute tasks in the cloud computing environment. Metering and pricing 82 provides cost tracking and billing or invoicing for the consumption of resources as they are utilized in the cloud computing environment. In one example, these resources may include application software licenses. Security provides identity verification of cloud users and tasks as well as protection of data and other resources. User portal 83 provides users and system administrators with access to the cloud computing environment. Service level management 84 provides allocation and management of cloud computing resources to meet required service levels. Service level agreement (SLA) planning and execution 85 provides advance arrangement and procurement of cloud computing resources in anticipation of future requirements according to SLAs.
[0098] The workload layer 90 provides examples of functions that can utilize a cloud computing environment. Examples of workloads and functions that can be provided from this layer include mapping and navigation 91, software development and lifecycle management 92, virtual classroom instructional delivery 93, data analytics processing 94, transaction processing 95, and workloads and functions 96. The workloads and functions 96 may include various software applications (and / or perform various functions) in the token computer system 202, sidecar computer system 250, backend service computer system 280, authentication server 270, etc. discussed herein.
[0099] Various embodiments of the invention are described herein with reference to the associated drawings. Alternative embodiments of the invention may be devised without departing from the scope of the invention. In the following description and drawings, various connections and relationships (e.g., above, below, adjacent, etc.) are defined between elements. These connections and / or relationships may be direct or indirect unless otherwise specified, and the invention is not intended to be limited in this respect. Thus, the coupling of entities may represent direct or indirect coupling, and the relationship between entities may be direct or indirect. Additionally, various tasks and process steps described herein may be combined into a more comprehensive procedure or process having additional steps or functions not specifically described herein.
[0100] One or more of the methods described herein may be implemented by any one or combination of techniques, such as discrete logic circuits having logic gates for performing logical functions on data signals, application specific integrated circuits (ASICs) having appropriate combinatorial logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), or the like, each of which is well known in the art.
[0101] For the sake of brevity, conventional techniques related to the construction and use of aspects of the present invention may or may not be described in detail herein. In particular, various aspects of computing systems and specific computer programs that implement various technical features described herein are well known. Thus, for the sake of brevity, many conventional implementation details are only briefly described or omitted entirely, without providing details of well-known systems and / or processes.
[0102] In some embodiments, various functions and operations may occur at a given location and / or in conjunction with the operation of one or more devices or systems. In some embodiments, a portion of a given function or operation may be performed at a first device or location, and other portions of the function or operation may be performed at one or more additional devices or locations.
[0103] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It is further understood that the terms "comprise" and / or "comprising" as used herein specify the presence of stated features, integers, steps, operations, elements, or components, or combinations thereof, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof, or combinations thereof.
[0104] In the following claims, the corresponding structures, materials, acts, and equivalents of all means-plus-function or step-plus-function elements are intended to include any structures, materials, or acts for performing a function in combination with other claimed elements as specifically claimed. This disclosure has been presented for purposes of illustration and description, but is not intended to be exhaustive or to be limited to the disclosed form. Many modifications and variations will be apparent to those skilled in the art without departing from the scope of the disclosure. The embodiments have been chosen and described in order to best explain the principles and practical applications of the disclosure and to enable others skilled in the art to understand the disclosure in various embodiments with various modifications suitable for the particular use contemplated.
[0105] The drawings described herein are exemplary. There may be many variations in the drawings or the steps (or operations) described therein without departing from the scope of the disclosure. For example, operations may be performed in a different order, operations may be added, eliminated, or modified. Also, the term "coupled" refers to having a signal path between two elements, and does not imply a direct connection between the elements without an intervening element / connection. All of these variations are considered part of the disclosure.
[0106] The following definitions and abbreviations shall be used for the interpretation of the claims and the specification. As used herein, the terms "comprise," "comprising," "include," "including," "have," "having," "contain," or "containing," or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a composition, mixture, process, method, article, or device that includes a list of elements is not necessarily limited to only those elements, but may include other elements not expressly listed or inherent to such composition, mixture, process, method, article, or device.
[0107] Also, the word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. The terms "at least one" and "one or more" are understood to include any integer number greater than one, i.e., 1, 2, 3, 4, etc. The term "a plurality" is understood to include any integer number greater than two, i.e., 2, 3, 4, 5, etc. The term "connection" may include both indirect and direct connection.
[0108] The terms "about," "substantially," "approximately," and variations thereof are intended to include the degree of error associated with the measurement of a particular quantity based on equipment available at the time of the filing of this application. For example, "about" can include a range of ±8%, 5%, or 2% of a given value.
[0109] The present invention may be a system, method, and / or computer program product at any possible level of technical detail integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
[0110] A computer readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer readable storage medium can be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), static random access memories (SRAM), portable compact disk read-only memories (CD-ROM), digital versatile disks (DVD), memory sticks, floppy disks, mechanical coding devices such as punch cards or ridge structures in grooves with instructions recorded thereon, and any suitable combination thereof. As used herein, computer-readable storage media should not be construed as ephemeral signals per se, such as electric waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted over wires.
[0111] The computer readable program instructions described herein may be downloaded from a computer readable storage medium into each computer / processing device or may be downloaded to an external computer or storage device, for example, via the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface of each computer / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage in a computer readable storage medium within each computer / processing device.
[0112] The computer readable program instructions for carrying out the operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state configuration data, integrated circuit configuration data, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk®, C++, and procedural programming languages such as the C programming language or similar programming languages. The computer readable program instructions may be executed in whole or in part on the user's computer as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet by using an Internet Service Provider). In some embodiments, state information of computer readable program instructions may be used to personalize electronic circuitry, including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), to execute computer readable program instructions to carry out aspects of the invention.
[0113] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0114] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, executed by the processor of the computer or other programmable data processing apparatus, generate means for implementing the functions / operations specified in one or more blocks of the flowchart illustrations and / or block diagrams. These computer readable program instructions may also be stored on a computer readable storage medium, such that the computer readable storage medium on which the instructions are stored includes an article of manufacture including instructions that implement aspects of the functions / operations specified in one or more blocks of the flowchart illustrations and / or block diagrams, and direct a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner.
[0115] Furthermore, the computer-readable program instructions may be loaded into a computer, other programmable data processing apparatus, or other device to generate a computer-implemented process and cause a series of operational steps to be performed on the computer, other programmable apparatus, or other device, such that the instructions, which execute on the computer, other programmable apparatus, or other device, implement the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.
[0116] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or part of instructions that includes one or more executable instructions for implementing a particular logical function. In some alternative implementations, the functions described in the blocks may occur out of the order depicted in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously or in reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that executes a particular function or operation or executes a combination of dedicated hardware and computer instructions.
[0117] The description of various embodiments of the present invention is presented for illustrative purposes and is not intended to be exhaustive or limited to the disclosed embodiments. Many improvements and modifications will be apparent to those skilled in the art without departing from the scope of the described embodiments. The terminology used in this specification is selected to best explain the principles of the embodiments, practical applications, or technical improvements of the technology found in the market, or to allow other skilled in the art to understand the embodiments described herein.
Claims
1. 1. A computer-implemented method, comprising: in response to intercepting an initial invocation of a transaction with a service from a client, validating a token for the initial invocation of the transaction with the service, the validating including querying an authentication server and locally storing a validity period received for the token; in response to intercepting at least one successive invocation of the transaction related to the service from the client, determining that the token for the at least one successive invocation is valid based on the locally stored validity period; permitting the at least one successive invocation of the transaction related to the service to be passed on without querying the authentication server; 23. A computer-implemented method comprising:
2. determining that the at least one consecutive invocation is a final invocation of the transaction; executing said transaction; The computer-implemented method of claim 1 , further comprising:
3. determining that the token for a last subsequent call is invalid based on the expiration of the locally stored validity period; preventing delivery of the final successive invocation of the transaction for the service; reversing said transaction; The computer-implemented method of claim 1 , further comprising:
4. 2. The computer-implemented method of claim 1, further comprising: in response to completing or reversing the transaction, clearing the validity period of the token to prevent unauthorized reuse of the token.
5. 2. The computer-implemented method of claim 1, wherein determining that the token for the at least one successive call is valid based on the locally stored validity period comprises preventing a backend service computer system from querying the authentication server to validate the token for the at least one successive call.
6. 2. The computer-implemented method of claim 1, wherein determining that the token for the at least one successive call is valid based on the locally stored validity period avoids requiring a backend service computer system to query the authentication server to validate the token for the at least one successive call.
7. The computer-implemented method of claim 1 , wherein the transaction makes a change to at least one resource associated with a backend service computer system.
8. 1. A system comprising: a memory having computer readable instructions; One or more processors for executing the computer readable instructions, the computer readable instructions comprising: in response to intercepting an initial invocation of a transaction with a service from a client, validating a token for the initial invocation of the transaction with the service, the validating including querying an authentication server and locally storing a validity period received for the token; in response to intercepting at least one successive invocation of the transaction related to the service from the client, determining that the token for the at least one successive invocation is valid based on the locally stored validity period; permitting the at least one successive invocation of the transaction related to the service to be passed on without querying the authentication server; and controlling the one or more processors to perform operations including: A system comprising:
9. The operation, determining that the at least one consecutive invocation is a final invocation of the transaction; executing said transaction; The system of claim 8 further comprising:
10. The operation, determining that the token for a last subsequent call is invalid based on the expiration of the locally stored validity period; preventing delivery of the final successive invocation of the transaction for the service; reversing said transaction; The system of claim 8 further comprising:
11. 10. The system of claim 8, wherein the actions further include, in response to the completion or reversal of the transaction, clearing the validity period of the token to prevent unauthorized reuse of the token.
12. 9. The system of claim 8, wherein determining that the token for the at least one successive call is valid based on the locally stored validity period includes preventing a backend service computer system from querying the authentication server to validate the token for the at least one successive call.
13. 9. The system of claim 8, wherein determining that the token for the at least one successive call is valid based on the locally stored validity period avoids a requirement for a backend service computer system to query the authentication server to validate the token for the at least one successive call.
14. 10. The system of claim 8, wherein the transaction modifies at least one resource associated with a backend service computer system.
15. 1. A computer-implemented method, comprising: In response to intercepting a token invocation involving an application programming interface (API) key of a transaction relating to a service from a client, obtaining a token list for the API key and an access policy for the API key by querying an access decision engine, wherein the API key, the token list, and the access policy are co-associated and locally stored; in response to intercepting a call and a token for the service having the API key, determining that the call is to be granted access to the service based on the locally stored token list for the API key and the access policy; granting access to a resource of the invocation for the service without consulting the access decision engine; 23. A computer-implemented method comprising:
16. 16. The computer-implemented method of claim 15, further comprising determining that a subsequent call to the service having the API key and another token will be granted access to the service based on the token list of the locally stored API key and the access policy.
17. 16. The computer-implemented method of claim 15, wherein determining that the call is granted access to the service based on the locally stored token list of the API key and the access policy comprises: verifying that the token is on the token list without querying the access decision engine; and verifying that the access policy allows the API key to access the service.
18. The computer-implemented method of claim 15 , further comprising monitoring for an API key revocation event.
19. 20. The computer-implemented method of claim 18, further comprising, in response to the API key revocation event occurring, invalidating the token list associated with the revoked API key to prevent further use of the API key.
20. 20. The computer-implemented method of claim 18, further comprising, in response to the API key revocation event not occurring, allowing the locally stored token list to continue to be used in determining access for the API key.
21. A computer program product embodied in a computer readable medium and comprising computer readable instructions configured to perform the method of any one of claims 15 to 20.
22. 1. A system comprising: a memory having computer readable instructions; One or more processors for executing the computer readable instructions, the computer readable instructions controlling the one or more processors to perform the method of any one of claims 15 to 20; A system comprising:
23. A computer program product embodied in a computer readable medium and comprising computer readable instructions configured to perform the method of any one of claims 15 to 20.
Citation Information
Patent Citations
Protection Configuration for Application Programming Interfaces
US20180278624A1
Dynamic computing resource access authorization
US20180295126A1
