-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add extensions for token persistence removal feature #2091
Conversation
PR builder started |
...in/java/org/wso2/carbon/identity/oauth/tokenprocessor/DefaultRefreshTokenGrantProcessor.java
Outdated
Show resolved
Hide resolved
...in/java/org/wso2/carbon/identity/oauth/tokenprocessor/DefaultRefreshTokenGrantProcessor.java
Outdated
Show resolved
Hide resolved
...ity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/internal/OAuth2ServiceComponent.java
Show resolved
Hide resolved
...in/java/org/wso2/carbon/identity/oauth/tokenprocessor/DefaultRefreshTokenGrantProcessor.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/wso2/carbon/identity/oauth/tokenprocessor/RefreshTokenGrantProcessor.java
Show resolved
Hide resolved
...in/java/org/wso2/carbon/identity/oauth/tokenprocessor/DefaultRefreshTokenGrantProcessor.java
Outdated
Show resolved
Hide resolved
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/5275323134
…auth-oauth into is6.2.0-m2
…auth-oauth into is6.2.0-m2
...in/java/org/wso2/carbon/identity/oauth/tokenprocessor/DefaultRefreshTokenGrantProcessor.java
Outdated
Show resolved
Hide resolved
...in/java/org/wso2/carbon/identity/oauth/tokenprocessor/DefaultRefreshTokenGrantProcessor.java
Outdated
Show resolved
Hide resolved
PR builder started |
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6107073090
Proposed changes in this pull request
This PR is added as a part of removing token persistence efforts in wso2/api-manager#1664.
Provide external DAO layer plugin capability for AccessTokenDAO and TokenManagementDAO
Added a method to load external data access logic for AccessTokenDao and TokenManagementDao layers. With this change, APIM team hopes to plug a custom AccessTokenDAO and TokenManagementDAO implementation to support the mentioned feature.
Add abstraction layer for Revoke flow to separate token persistence operations
Added an abstraction layer to separate out the token dao layer access. This way, we could plug custom DAO access logic to facilitate the token persistence-related feature.
In this pr, an interface OAuth2RevocationProcessor.java is introduced and the existing implementation parts are moved to the default class DefaultOAuth2RevocationProcessor.java
Add abstraction layer for Refresh grant flow to separate token persistence operations
Added a method to plug custom logic for Refresh grant handler. Reason for introducing this is because the refresh token generated in this effort is a JWT token and we need to remove token validation steps that refer stored access tokens when generating access tokens from refresh grant. This PR introduced an interface RefreshTokenGrantProcessor.java and moved the default extracted logic from RefreshGrantHandler.java to DefaultRefreshTokenGrantProcessor.java. Custom implementation can be plugged in as a service by implementing RefreshTokenGrantProcessor.java interface. If no service is registered, default DefaultRefreshTokenGrantProcessor.java is applied.