-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Master] Add Internal Token Revocation implementation for token persistence removal feature #12174
Closed
Lakith-Rambukkanage
wants to merge
9
commits into
wso2:master
from
Lakith-Rambukkanage:vMaster-prasa7-token-persistence-rm
Closed
[Master] Add Internal Token Revocation implementation for token persistence removal feature #12174
Lakith-Rambukkanage
wants to merge
9
commits into
wso2:master
from
Lakith-Rambukkanage:vMaster-prasa7-token-persistence-rm
Conversation
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
temp5 Temp6 Temp6 Temp6. temp7. temp8. Added siddhi files
Lakith-Rambukkanage
requested review from
prasa7,
chamilaadhi,
tharindu1st and
dushaniw
October 13, 2023 04:24
...gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/security/jwt/JWTValidator.java
Outdated
Show resolved
Hide resolved
...gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/security/jwt/JWTValidator.java
Outdated
Show resolved
Hide resolved
...t.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/jwt/InternalRevokedJWTDataHolder.java
Outdated
Show resolved
Hide resolved
...imgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/jwt/RevokeConditionsRetriever.java
Outdated
Show resolved
Hide resolved
...t.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/listeners/GatewayStartupListener.java
Outdated
Show resolved
Hide resolved
...ain/java/org/wso2/carbon/apimgt/gateway/listeners/GatewayTokenRevocationMessageListener.java
Outdated
Show resolved
Hide resolved
...gt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/listeners/ServerStartupListener.java
Outdated
Show resolved
Hide resolved
...mgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/wso2/carbon/apimgt/internal/service/impl/RevokeConditionsApiServiceImpl.java
Show resolved
Hide resolved
...rc/main/java/org/wso2/carbon/apimgt/notification/event/InternalTokenRevocationUserEvent.java
Show resolved
Hide resolved
features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/h2.sql
Outdated
Show resolved
Hide resolved
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This PR adds the implementation for the indirect token revocations due to internal events. The internal events are of two types.
With the token persistence removal feature [3], such revocations has to be handled in the form of attribute(rule) base validation, since the tokens are not available in the db. Therefore the attributes to be considered for the revocation is propagated to CP from the KM then to the GW cache.
[1] - wso2/api-manager#1678
[2] - wso2/api-manager#2159
[3] - wso2/api-manager#1664