Authorization Token Caching for Third-Party API Calls

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In client-server models, particularly when interacting with third-party vendors, the frequent need for authentication tokens leads to increased security risks and resource consumption due to repeated authentication calls, which can fail and require retrial.

Innovation Solution

A system that identifies previous authorization tokens for matching configuration files, allowing reuse of unexpired tokens for subsequent calls to the same third-party vendor's API, thereby minimizing authentication calls and conserving server resources.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the system makes repeated authentication calls to third-party vendor APIs, then the client can obtain fresh authorization tokens, but the number of authentication calls increases leading to higher security risks and resource consumption

Engineering Contradiction:
Improveauthentication token validityVSAvoidserver resource consumption
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The server performs preliminary action by storing and caching authorization tokens obtained from third-party vendor APIs. When a client makes a subsequent call with the same configuration file, the server retrieves the cached token instead of making a new authentication call, thereby avoiding repeated resource consumption while maintaining token validity.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates a copy of the authorization token and stores it in the server's memory or database. This cached copy can then be reused for multiple subsequent authentication requests, eliminating the need to repeatedly contact the third-party vendor API and reducing server resource consumption.

Inventive Principle:
Principle #26Copying

2Reliability

If the system makes repeated authentication calls to third-party vendor APIs, then the client can ensure token freshness, but the frequency of authentication calls increases leading to more security failure opportunities

Engineering Contradiction:
Improveauthentication token freshnessVSAvoidsecurity failure risk
Core Design Contradiction:
ReliabilityVSObject-affected harmful factors

Solution Approach 1:

The server performs preliminary action by pre-storing valid authorization tokens in a cache mechanism. When clients make subsequent calls with matching configuration files, the server provides cached tokens without requiring new authentication calls, thereby maintaining token freshness while eliminating repeated authentication attempts that could fail and expose security risks.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates and stores copies of valid authorization tokens in the server's memory or database. These copied tokens can be reused for multiple authentication requests, ensuring continuous access without repeatedly contacting the third-party vendor, thus maintaining security while avoiding repeated failure opportunities.

Inventive Principle:
Principle #26Copying

3Productivity

If the system stores and reuses authorization tokens, then the number of authentication calls is reduced, but the complexity of token management increases

Engineering Contradiction:
Improveauthentication call frequencyVSAvoidtoken management complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The server implements a universal token management mechanism that handles multiple clients and third-party vendor APIs through a single cached storage structure. The system determines whether to reuse a cached token or fetch a new one by comparing configuration files, providing a unified approach that reduces authentication calls without requiring complex client-side token management logic.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The server acts as an intermediary between clients and third-party vendor APIs by caching authorization tokens in its own memory or database. This intermediary storage layer simplifies token management by centralizing the caching logic on the server, allowing clients to simply provide their configuration files while the server handles the complex decisions about token reuse versus fresh authentication.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10616230B2Managing authorization tokens for calling third-party vendors
Publication Date: 2020.04.07 SALESFORCE INC
  • US10616230B2 patent drawing
  • US10616230B2 patent drawing
  • US10616230B2 patent drawing

AI summary

Managing authorization tokens for calling third-party vendors is described. A system identifies a current call from a client computing system to an API associated with a third-party vendor, the call including a configuration file for calling the API. The system determines, in response to a determination that a previous call was made to the API, whether a previous call was made to the API and whether a part of the configuration file in the current call matches a corresponding configuration file in the previous call. The system enables the API to authorize the current call by sending a copy of a previous authorization token to the client computing system, in response to a determination that the part of the configuration file in the current call matches the corresponding part of the configuration file in the previous call, the previous authorization being previously received from the API for the previous call.