Skip to content

Releases: permitio/permit-java

v2.1.0-rc.1

v2.1.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@asafc asafc released this 16 Sep 14:40
4a46933

What's Changed

  • Update README.md (update version to 2.0.0) by @asafc in #21
  • add sdk banner by @RazcoDev in #23
  • update create user schema ti support new paramets - role_assigmetns list by @gideonsmila in #25

New Contributors

Full Changelog: 2.0.0...2.1.0-rc.1

2.0.0-rc.2

Choose a tag to compare

@gideonsmila gideonsmila released this 15 Sep 14:58
4a46933

What's Changed

  • Update README.md (update version to 2.0.0) by @asafc in #21
  • add sdk banner by @RazcoDev in #23
  • update create user schema ti support new paramets - role_assigmetns list by @gideonsmila in #25

New Contributors

Full Changelog: 2.0.0...2.0.0-rc.2

2.0.0

Choose a tag to compare

@asafc asafc released this 07 Dec 08:32
11136cc

What's Changed

  • update packages [snyk] by @obsd in #19
  • Throw more accurate exceptions in case OPA or the PDP return an error response or timeout
  • get user permissions from the PDP now returns roles as well
  • get user tenants directly from the PDP:
List<TenantDetails> userTenants = permit.getUserTenants(
    User.fromString("auth0|elon")
);

Breaking changes

All check functions will now throw a more accurate PermitApiError that contains a status code as well as the actual error in case the call to OPA or the PDP fails or encounters a timeout.

Changes required in your code

You need to add a catch block to this code example, instead of:

import io.permit.sdk.Permit;
import io.permit.sdk.PermitConfig;

Permit permit = new Permit( ... );

try {
    boolean permitted = permit.check(
        User.fromString("[USER KEY]"),
        "create",
        Resource.fromString("document")
    );
} catch (IOException e) {
    fail("got error: " + e);
}

you'll need to also catch PermitApiError:

import io.permit.sdk.Permit;
import io.permit.sdk.PermitConfig;

Permit permit = new Permit( ... );

try {
    boolean permitted = permit.check(
        User.fromString("[USER KEY]"),
        "create",
        Resource.fromString("document")
    );
} catch (IOException e) {
    fail("got error: " + e);
} catch (PermitApiError e) {
    fail("got error: " + e);
}

Full Changelog: 1.4.0...2.0.0

v2.0.0-rc More accurate exceptions from check functions

Choose a tag to compare

@asafc asafc released this 07 Nov 09:24
c5aeb66

What's Changed

  • Throw more accurate exceptions in case OPA or the PDP return an error response or timeout
  • get user permissions from the PDP now returns roles as well
  • get user tenants directly from the PDP:
List<TenantDetails> userTenants = permit.getUserTenants(
    User.fromString("auth0|elon")
);

Breaking changes

All check functions will now throw a more accurate PermitApiError that contains a status code as well as the actual error in case the call to OPA or the PDP fails or encounters a timeout.

Changes required in your code

You need to add a catch block to this code example, instead of:

import io.permit.sdk.Permit;
import io.permit.sdk.PermitConfig;

Permit permit = new Permit( ... );

try {
    boolean permitted = permit.check(
        User.fromString("[USER KEY]"),
        "create",
        Resource.fromString("document")
    );
} catch (IOException e) {
    fail("got error: " + e);
}

you'll need to also catch PermitApiError:

import io.permit.sdk.Permit;
import io.permit.sdk.PermitConfig;

Permit permit = new Permit( ... );

try {
    boolean permitted = permit.check(
        User.fromString("[USER KEY]"),
        "create",
        Resource.fromString("document")
    );
} catch (IOException e) {
    fail("got error: " + e);
} catch (PermitApiError e) {
    fail("got error: " + e);
}

Full Changelog: 1.4.0...2.0.0-rc

v1.4.0 - ReBAC and advanced permission checks

Choose a tag to compare

@asafc asafc released this 17 Oct 06:44
c388a80

What's Changed

  • Java SDK ReBAC support by @asafc in #14
  • Add support in check url and sharding key by @omer9564 in #16
  • Advanced permission checks: bulk check, check in all tenants, get user permissions by @asafc in #17

Full Changelog: 1.3.1...1.4.0

v1.4.0-rc.2

v1.4.0-rc.2 Pre-release
Pre-release

Choose a tag to compare

@asafc asafc released this 26 Jul 22:22
fe3ce2c
  • Added support for checkUrl()
  • Added support for sharding key

v1.4.0-rc - ReBAC support

Pre-release

Choose a tag to compare

@asafc asafc released this 26 Jun 06:12
0b8b9b8

What's Changed

Full Changelog: 1.3.1...1.4.0-rc

v1.3.1

Choose a tag to compare

@asafc asafc released this 25 Jun 11:35
fcba221

What's Changed

  • Add javadoc link to readme MD by @asafc in #11
  • Add language reporting to java sdk by @asafc in #13
  • Fix context api to differentiate between access level and object scoping context by @asafc in #12
  • Fix condition set rule create + add more tests by @asafc in #10

Full Changelog: 1.3.0...1.3.1

v1.3.0 - New supported API Methods

Choose a tag to compare

@asafc asafc released this 14 May 12:36
ae3effd

New APIs

This version added support to the following API methods:

  • copy (clone) environments
  • role attributes
  • action attributes
  • action groups
  • role assignments (bulk assign and bulk unassign)
  • condition sets
  • condition set rules

More inline documentation

Added javadocs to all important classes.

v1.2.0 - Java 8 Support

Choose a tag to compare

@asafc asafc released this 24 Apr 15:26
983f46e
Merge pull request #8 from permitio/asaf/per-5039-fix-github-action-f…