Skip to content

Commit

Permalink
Use aserto-java 0.31.3 and deprecate instance label
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenh committed Oct 15, 2024
1 parent fcb1b70 commit 83bfb6a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>com.aserto</groupId>
<artifactId>aserto-spring</artifactId>
<version>0.2.3</version>
<version>0.2.4</version>

<name>spring-middleware</name>
<description>Spring Security Filter that enables Aserto authorization</description>
Expand Down Expand Up @@ -48,7 +48,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<protobuf.version>3.25.3</protobuf.version>
<aserto-java.version>0.31.1</aserto-java.version>
<aserto-java.version>0.31.3</aserto-java.version>
</properties>

<dependencies>
Expand Down
19 changes: 18 additions & 1 deletion src/main/java/com/aserto/authorizer/AuthzConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ public class AuthzConfig {
@Value("${aserto.authorizer.policyName:}")
private String policyName;

/**
* Policy instance label
*
* @deprecated no longer used.
*/
@Deprecated
@Value("${aserto.authorizer.policyLabel:}")
private String policyLabel;

Expand All @@ -41,7 +47,7 @@ public AuthzConfig(IdentityMapper identityMapper, PolicyMapper policyMapper, Res
public AuthzConfig(AuthzConfig authzConfig) {
this.authorizerDecision = authzConfig.getAuthorizerDecision();
this.policyName = authzConfig.getPolicyName();
this.policyLabel = authzConfig.getPolicyLabel();
this.policyLabel = authzConfig.getPolicyName();
this.authorizerEnabled = authzConfig.isAuthorizerEnabled();
this.identityMapper = authzConfig.getIdentityMapper();
this.policyMapper = authzConfig.getPolicyMapper();
Expand All @@ -65,10 +71,21 @@ public void setPolicyName(String policyName) {
this.policyName = policyName;
}

/**
* Returns the policy instance label
*
* @deprecated no longer used.
*/
@Deprecated
public String getPolicyLabel() {
return policyLabel;
}

/**
* Sets the policy instance label
*
* @deprecated no longer used.
*/
public void setPolicyLabel(String policyLabel) {
this.policyLabel = policyLabel;
}
Expand Down

0 comments on commit 83bfb6a

Please sign in to comment.