Behind-the-Wall JWT Authentication for Web Security

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Web-based applications face significant authentication overhead when using session tokens, leading to unmanageable network traffic, and JWTs compromise security by exposing sensitive information when stored on uncontrolled devices.

Innovation Solution

Implementing behind-the-wall JWT authentication, where JWTs are generated and remain within the private network, using a hashed session token to minimize exposure and reduce authentication overhead by caching limited-duration JWTs, and employing session tokens for public network interactions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If session tokens are used for authentication in web-based applications, then security is enforced, but authentication overhead and network traffic become unmanageable

Engineering Contradiction:
ImprovesecurityVSAvoidauthentication overhead
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The authentication system is segmented into two parts: session tokens remain on the public network for client identification, while JWTs are generated within the private network for service authentication. This segmentation allows each token type to serve its specific purpose without the overhead of continuous authentication validation across the entire system.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

JWTs act as an intermediary mechanism between the public network (session tokens) and private network services. The JWT contains embedded authentication information that allows services to verify user identity without contacting the authentication service, reducing network traffic and authentication overhead.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If JWTs are used for authentication, then authentication overhead is reduced, but security is compromised by exposing sensitive information on uncontrolled devices

Engineering Contradiction:
Improveauthentication efficiencyVSAvoidsecurity
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

Sensitive authentication information is extracted from the public-facing session token and placed into a JWT that is generated within the private network. The session token itself remains a simple identifier without embedded sensitive data, while the JWT (which never leaves the private network) contains the necessary authentication claims.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

Different parts of the system use different authentication mechanisms appropriate to their security requirements: session tokens on the public network (simpler, less sensitive information) and JWTs within the private network (detailed authentication information). This local differentiation optimizes both security and efficiency for each context.

Inventive Principle:
Principle #3Local quality

3Reliability

If multiple services validate session tokens, then security is maintained across services, but network traffic increases significantly

Engineering Contradiction:
Improvecross-service securityVSAvoidnetwork traffic
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

Authentication information is preliminarily packaged into the JWT during the initial authentication process. Subsequent services can validate this pre-packaged information locally without needing to contact the authentication service, eliminating repeated network validation traffic while maintaining security.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11431702B2Authenticating and authorizing users with JWT and tokenization
Publication Date: 2022.08.30 LENDINGCLUB BANK NAT ASSOC
  • US11431702B2 patent drawing
  • US11431702B2 patent drawing
  • US11431702B2 patent drawing

AI summary

Techniques are provided for using tokenization in conjunction with “behind-the-wall” JWT authentication. “Behind-the-wall” JWT authentication refers to JWT authentication techniques in which the JWT stays exclusively within the private network that is controlled by the web application provider. Because the JWT stays within the private network, the security risk posed by posting the JWT in a client cookie is avoided. However, because JWT is used behind-the-wall to authenticate a user with the services requested by the user, the authentication-related overhead is significantly reduced.