forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request keycloak#3140 from pedroigor/KEYCLOAK-3390
[KEYCLOAK-3390] - Updating authorization objects doesn't invalidate cache in cluster
- Loading branch information
Showing
13 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,10 @@ | |
import org.keycloak.authorization.model.Resource; | ||
import org.keycloak.authorization.model.ResourceServer; | ||
import org.keycloak.authorization.model.Scope; | ||
import org.keycloak.models.entities.AbstractIdentifiableEntity; | ||
import org.keycloak.representations.idm.authorization.DecisionStrategy; | ||
import org.keycloak.representations.idm.authorization.Logic; | ||
|
||
import java.io.Serializable; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
@@ -34,7 +34,9 @@ | |
/** | ||
* @author <a href="mailto:[email protected]">Pedro Igor</a> | ||
*/ | ||
public class CachedPolicy implements Policy { | ||
public class CachedPolicy implements Policy, Serializable { | ||
|
||
private static final long serialVersionUID = -144247681046298128L; | ||
|
||
private String id; | ||
private String type; | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,17 @@ | |
import org.keycloak.authorization.model.ResourceServer; | ||
import org.keycloak.authorization.model.Scope; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Pedro Igor</a> | ||
*/ | ||
public class CachedResource implements Resource { | ||
public class CachedResource implements Resource, Serializable { | ||
|
||
private static final long serialVersionUID = -6886179034626995165L; | ||
|
||
private final String id; | ||
private String resourceServerId; | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,14 @@ | |
import org.keycloak.authorization.model.ResourceServer; | ||
import org.keycloak.representations.idm.authorization.PolicyEnforcementMode; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Pedro Igor</a> | ||
*/ | ||
public class CachedResourceServer implements ResourceServer { | ||
public class CachedResourceServer implements ResourceServer, Serializable { | ||
|
||
private static final long serialVersionUID = 5054253390723121289L; | ||
|
||
private final String id; | ||
private String clientId; | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,14 @@ | |
import org.keycloak.authorization.model.ResourceServer; | ||
import org.keycloak.authorization.model.Scope; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Pedro Igor</a> | ||
*/ | ||
public class CachedScope implements Scope { | ||
public class CachedScope implements Scope, Serializable { | ||
|
||
private static final long serialVersionUID = -3919706923417065454L; | ||
|
||
private final String id; | ||
private String resourceServerId; | ||
|
This file contains 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
This file contains 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