-
Notifications
You must be signed in to change notification settings - Fork 137
Java SDK Refresh - v25.0.0 #1648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
prachi-okta
wants to merge
56
commits into
master
Choose a base branch
from
increasing-code-coverage
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b24bf2f to
f1d87b8
Compare
…integration test classes
- Added retry mechanism (3 attempts) for policy creation to handle E0000009 errors - Similar to existing retry logic for policy replacement - Handles intermittent Okta API server errors during policy creation
…(.mvn/) for large YAML file parsing support
- Add serializeWithType() to GroupProfileSerializer to fix 'Type id handling not implemented for type GroupProfile' errors in GroupsIT and AppsIT tests - Change UserGetSingleton to User in UsersIT and ClientProvider since getUser API returns User, not UserGetSingleton (fixes cast exceptions) - Add try-catch for AssignRoleToUser response deserialization in roleAssignTest and groupTargetRoleTest to handle oneOf discriminator issues where StandardRole is not a subtype of AssignRoleToUser201Response
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Release v25.0.0 - Major SDK Refactoring and Enhanced Test Coverage
📋 Overview
This PR introduces Okta Java SDK v25.0.0, a major release that significantly improves the SDK's architecture, maintainability, and developer experience. The release includes comprehensive OpenAPI spec updates, custom deserializers for polymorphic type handling, and extensive test coverage improvements.
🎯 Key Highlights
Major API Updates
type: objectdeclarationsEnhanced Test Coverage
🔴 Breaking Changes
1. User Object Schema Changes (Major)
The structure of the
Userobject has changed. Many endpoints now no longer include thetypeobject and its sub-properties in the response.Affected Endpoints:
GET /api/v1/devicesGET /api/v1/devices/{deviceId}/usersGET /api/v1/groups/{groupId}/usersGET /api/v1/usersPOST /api/v1/usersGET /api/v1/users/{id}PUT /api/v1/users/{id}POST /api/v1/users/{userId}/lifecycle/expire_passwordAction Required: Audit your code for any dependencies on
user.typeproperties and remove them.2. Authenticator Endpoint Schema Changes
Response schemas for authenticator endpoints have breaking compatibility changes:
GET /api/v1/authenticatorsPOST /api/v1/authenticatorsGET /api/v1/authenticators/{authenticatorId}PUT /api/v1/authenticators/{authenticatorId}3. User Factor Endpoint Schema Changes
Request and/or response schemas changed for:
GET /api/v1/users/{userId}/factorsPOST /api/v1/users/{userId}/factorsGET /api/v1/users/{userId}/factors/catalogNotable Change: The
_links.resendproperty type has changed.4. Policy Endpoint Schema Changes
The
statusproperty type has changed in request/response for:GET /api/v1/policiesPOST /api/v1/policiesGET /api/v1/policies/{policyId}5. Role Assignment Response Changes
Polymorphic type handling required custom deserializers due to Jackson deserialization issues with
@JsonSubTypesannotations.Migration Example:
🆕 New Components
Custom Deserializers (6 Total)
Added to handle polymorphic type deserialization issues:
RoleAssignmentDeserializerListGroupAssignedRoles200ResponseInnerAssignRoleToGroupResponseDeserializerAssignRoleToGroup200ResponseAssignRoleToUserResponseDeserializerAssignRoleToUser201ResponseAssignRoleToClientResponseDeserializerAssignRoleToClient200ResponseJwkResponseDeserializerListJwk200ResponseInnerIgnoreTypeInfoMixIn@JsonTypeInfoannotationsNew Integration Test Suites (28 Total)
User Management APIs
UserLifecycleIT.groovyUserAuthenticatorEnrollmentsIT.groovyUserClassificationIT.groovyUserCredIT.groovyUserFactorIT.groovyUserGrantIT.groovyUserLinkedObjectIT.groovyUserOAuthIT.groovyUserResourcesIT.groovyUserRiskIT.groovyUserSessionsIT.groovyUserTypeIT.groovyApplication APIs
ApplicationGrantsIT.groovyApplicationLogosIT.groovyApplicationPoliciesIT.groovyApplicationSSOCredentialKeyIT.groovyApplicationSSOFederatedClaimIT.groovyApplicationSSOIT.groovyApplicationTokensIT.groovyApplicationUsersIT.groovyOrganization & Settings APIs
AgentPoolsIT.groovyApiServiceIntegrationsIT.groovyApiTokenIT.groovyGroupPushMappingIT.groovyOktaApplicationSettingsIT.groovyPolicyCleanupIT.groovyProfileMappingIT.groovyRealmsIT.groovyNew Unit Tests (5 Classes)
ApiExceptionHelperTest.javaHelperConstantsTest.javaPaginationUtilTest.javaDPoPInterceptorTest.javaRetryUtilTest.javaNew Configuration Files
.mvn/jvm.config.mvn/maven.configclean-generated-sources.shMIGRATION-v25.0.0.md📊 Integration Test Coverage
This release includes comprehensive integration test coverage for 38+ API clients:
User Management APIs
Application APIs
Group APIs
Identity Provider APIs
Organization & Settings APIs
📚 Documentation
Migration Guides
🔧 Technical Improvements
Deserializer Architecture
Custom deserializers handle polymorphic type issues where Jackson's
@JsonSubTypesannotations fail:DefaultClientBuilder Updates
Test Enhancements
Code Quality
📈 Impact Analysis
Files Changed: 77
Lines Changed
Major File Changes
src/swagger/api.yamlAppsIT.groovyGroupsIT.groovyIdpIT.groovyUsersIT.groovyUserFactorIT.groovy✅ Benefits
🔄 Migration Path
user.typeproperties🧪 Testing
📦 Version Updates
🔗 Related Links