Skip to content

Commit

Permalink
update method name usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduR committed Oct 12, 2023
1 parent 48bd5ae commit a5bd42c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ private APIResourceResponse buildAPIResourceResponse(APIResource apiResource) {
.description(apiResource.getDescription())
.scopes(apiResource.getScopes().stream().map(this::buildScopeGetResponse)
.collect(Collectors.toList()))
.requiresAuthorization(apiResource.isRequiresAuthorization());
.requiresAuthorization(apiResource.isAuthorizationRequired());
}

/**
Expand Down Expand Up @@ -418,7 +418,7 @@ private APIResourceListItem buildAPIResourceListItem(APIResource apiResource) {
.name(apiResource.getName())
.identifier(apiResource.getIdentifier())
.type(apiResource.getType())
.requiresAuthorization(apiResource.isRequiresAuthorization())
.requiresAuthorization(apiResource.isAuthorizationRequired())
.self(V1_API_PATH_COMPONENT + APIResourceMgtEndpointConstants.API_RESOURCE_PATH_COMPONENT + "/"
+ apiResource.getId());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ public void addAuthorizedAPI(String applicationId, AuthorizedAPICreationModel au
String policyIdentifier = validatePolicy(authorizedAPICreationModel.getPolicyIdentifier());

// If API resource has requiresAuthorization set to true, policy identifier should be RBAC.
if (apiResource.isRequiresAuthorization() &&
if (apiResource.isAuthorizationRequired() &&
!policyIdentifier.equals(ApplicationManagementConstants.RBAC)) {
throw buildClientError(ErrorMessage.INVALID_POLICY_TYPE_FOR_API_RESOURCE, authorizedAPIId,
policyIdentifier);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@
<maven.buildnumber.plugin.version>1.4</maven.buildnumber.plugin.version>
<org.apache.felix.annotations.version>1.2.4</org.apache.felix.annotations.version>
<identity.governance.version>1.8.62</identity.governance.version>
<carbon.identity.framework.version>5.25.381</carbon.identity.framework.version>
<carbon.identity.framework.version>5.25.383</carbon.identity.framework.version>
<maven.findbugsplugin.version>3.0.5</maven.findbugsplugin.version>
<identity.workflow.impl.bps.version>5.2.0</identity.workflow.impl.bps.version>
<maven.checkstyleplugin.excludes>**/gen/**/*</maven.checkstyleplugin.excludes>
Expand Down

0 comments on commit a5bd42c

Please sign in to comment.