Summary
Implement common processing functionality in the SaaSus Platform Java SDK to
extract tenantId, envId, and userId from API keys and pass class information to
methods. This will allow each method to access the desired information as
needed.
Current State
The current Java SDK implementation in
src/main/java/saasus/sdk/util/apiserver/ApiServer.java does not provide a
standardized way to extract and utilize tenant, environment, and user
information from API keys across different methods.
Proposed Implementation
Goals
- Create a common processing mechanism to parse API keys and extract:
- Implement a way to pass class/context information to methods
- Allow individual methods to selectively use the information they need
Technical Requirements
- Maintain backward compatibility with existing API calls
- Provide a clean, reusable interface for accessing extracted information
- Follow Java SDK conventions and patterns used in other SaaSus SDKs
- Ensure thread-safety for concurrent usage
Acceptance Criteria
References
- Target file: src/main/java/saasus/sdk/util/apiserver/ApiServer.java
- Related to SaaSus Platform multi-tenancy architecture
Summary
Implement common processing functionality in the SaaSus Platform Java SDK to
extract tenantId, envId, and userId from API keys and pass class information to
methods. This will allow each method to access the desired information as
needed.
Current State
The current Java SDK implementation in
src/main/java/saasus/sdk/util/apiserver/ApiServer.java does not provide a
standardized way to extract and utilize tenant, environment, and user
information from API keys across different methods.
Proposed Implementation
Goals
Technical Requirements
Acceptance Criteria
References