Skip to content

Commit

Permalink
Upgrade OASv3 to latest commit tag 325e6e2 (#916)
Browse files Browse the repository at this point in the history
Upgrade OASv3 to latest commit tag 325e6e2 (325e6e25e26e5552ac1d50e88452684d8ab590a6)
  • Loading branch information
arvindkrishnakumar-okta authored Jun 28, 2023
1 parent 35636c0 commit 4cac1c5
Show file tree
Hide file tree
Showing 3 changed files with 3,783 additions and 258 deletions.
2 changes: 0 additions & 2 deletions api/src/main/java/com/okta/sdk/helper/HelperUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public static Class<? extends Policy> getPolicyType(Policy policy) {
return IdentityProviderPolicy.class;
case MFA_ENROLL:
return MultifactorEnrollmentPolicy.class;
case OAUTH_AUTHORIZATION_POLICY:
return AuthorizationServerPolicy.class;
case OKTA_SIGN_ON:
return OktaSignOnPolicy.class;
case PASSWORD:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ import static org.hamcrest.Matchers.*
class UsersIT extends ITSupport {

GroupApi groupApi = new GroupApi(getClient())
ApplicationApi applicationApi = new ApplicationApi(getClient())
ApplicationApiHelper<Application> applicationApiHelper = new ApplicationApiHelper<>(new ApplicationApi(getClient()))
ApplicationGroupsApi applicationGroupsApi = new ApplicationGroupsApi(getClient())
PolicyApiHelper<Policy> policyApiHelper = new PolicyApiHelper<>(new PolicyApi(getClient()))
UserApi userApi = new UserApi(getClient())
RoleAssignmentApi roleAssignmentApi = new RoleAssignmentApi(getClient())
Expand Down Expand Up @@ -322,7 +322,11 @@ class UsersIT extends ITSupport {

PasswordPolicyRuleActions passwordPolicyRuleActions = new PasswordPolicyRuleActions()
passwordPolicyRuleActions.setPasswordChange(passwordPolicyRuleActionAllow)
passwordPolicyRuleActions.setSelfServicePasswordReset(passwordPolicyRuleActionAllow)

SelfServicePasswordResetAction selfServicePasswordResetAction = new SelfServicePasswordResetAction()
selfServicePasswordResetAction.setAccess(PolicyAccess.ALLOW)

passwordPolicyRuleActions.setSelfServicePasswordReset(selfServicePasswordResetAction)
passwordPolicyRuleActions.setSelfServiceUnlock(passwordPolicyRuleActionDeny)

PasswordPolicyRule passwordPolicyRule = new PasswordPolicyRule()
Expand Down Expand Up @@ -839,7 +843,7 @@ class UsersIT extends ITSupport {
Application application = applicationList.first()

List<ApplicationGroupAssignment> groupAssignments =
applicationApi.listApplicationGroupAssignments(application.getId(), null, null, null, expandParameter)
applicationGroupsApi.listApplicationGroupAssignments(application.getId(), null, null, null, expandParameter)

// Make sure both pages (all resources) contain an expand parameter
for (ApplicationGroupAssignment groupAssignment : groupAssignments) {
Expand Down
Loading

0 comments on commit 4cac1c5

Please sign in to comment.