-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Implement Token Introspection Endpoint #161
Implement Token Introspection Endpoint #161
Conversation
oauth2-authorization-server/spring-security-oauth2-authorization-server.gradle
Outdated
Show resolved
Hide resolved
...amework/security/oauth2/server/authorization/web/OAuth2TokenIntrospectionEndpointFilter.java
Outdated
Show resolved
Hide resolved
...amework/security/oauth2/server/authorization/web/OAuth2TokenIntrospectionEndpointFilter.java
Outdated
Show resolved
Hide resolved
...amework/security/oauth2/server/authorization/web/OAuth2TokenIntrospectionEndpointFilter.java
Outdated
Show resolved
Hide resolved
Hey @jgrandja I prepared this PR for the Token Introspection Endpoint. |
Thanks for the PR @rozagerardo! I'm a bit backlogged at the moment so I'll try to review this mid to end next week. I did take a quick glance and noticed quite a bit of formatting changes. Can you please revert all formatting changes that are not directly related to the changes required for this PR. Thanks! |
Hey @jgrandja sure, that was in fact my question just above: |
1370681
to
b81166c
Compare
@rozagerardo Thanks for reverting the formatting changes. I took a look at As a next step, I would encourage you to review the reference documentation to gain a deeper understanding: After you review that, please review the Token Revocation implementation in detail as it will follow the general pattern as Token Introspection. This PR contains Let me know if you have any questions. |
cc3b024
to
974ae45
Compare
...springframework/security/oauth2/server/authorization/InMemoryOAuth2AuthorizationService.java
Outdated
Show resolved
Hide resolved
...springframework/security/oauth2/server/authorization/InMemoryOAuth2AuthorizationService.java
Outdated
Show resolved
Hide resolved
Hey @jgrandja sorry for the delay here, the last couple of weeks have been quite busy for me. Also, thanks for the heads up with the last comment, naturally I had read these sections before on a couple of occasions, but it's certainly different from a "framework developer" perspective :) and yes, I now understand the approach we should follow. All right, I now added the missing classes and adapted the code I had been working on. I have also added a couple of comments to the PR. However, I see an error in the CI build (a 401 retrieving a dependency), but it's definitely not related to my changes:
The build is running ok locally, let me know if I can help with anything to fix this CI issue. I think it might be a temporary issue, but I can't trigger the CI plan manually. Looking forward to the next comments Joe! |
974ae45
to
6e56b61
Compare
...c/main/java/org/springframework/security/oauth2/server/authorization/token/OAuth2Tokens.java
Outdated
Show resolved
Hide resolved
6e56b61
to
51c11f7
Compare
Just a quick note about the last comment I made: #161 (comment) |
Quick ping @jgrandja just to make sure you didn't miss my last comment: |
@rozagerardo Apologies for the delay. I'm quite backlogged right now and trying to catch up with Spring Security issues and Spring Security OAuth (legacy) issues/PR's. I'm getting close to catching up and I'm planning on circling back to this PR this week. Then I will focus on getting it merged before end of month. |
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.
Thanks for the updates @rozagerardo. Please see review comments.
...amework/security/oauth2/server/authorization/web/OAuth2TokenIntrospectionEndpointFilter.java
Outdated
Show resolved
Hide resolved
...amework/security/oauth2/server/authorization/web/OAuth2TokenIntrospectionEndpointFilter.java
Outdated
Show resolved
Hide resolved
...amework/security/oauth2/server/authorization/web/OAuth2TokenIntrospectionEndpointFilter.java
Outdated
Show resolved
Hide resolved
...amework/security/oauth2/server/authorization/web/OAuth2TokenIntrospectionEndpointFilter.java
Outdated
Show resolved
Hide resolved
...amework/security/oauth2/server/authorization/web/OAuth2TokenIntrospectionEndpointFilter.java
Outdated
Show resolved
Hide resolved
...amework/security/oauth2/server/authorization/web/OAuth2TokenIntrospectionEndpointFilter.java
Outdated
Show resolved
Hide resolved
...uth2/server/authorization/authentication/OAuth2TokenIntrospectionAuthenticationProvider.java
Outdated
Show resolved
Hide resolved
...java/org/springframework/security/oauth2/core/endpoint/OAuth2TokenIntrospectionResponse.java
Outdated
Show resolved
Hide resolved
Cool, this is now ready for a new round @jgrandja . Also, let me know if you want me to squash the commits again before reviewing them. Looking forward to the next comments Joe 👍 |
…ClientId for claims field
…trospectionClaims
…HttpMessageConverters
204bda3
to
bd77b61
Compare
@jgrandja I now answered and marked this conversation as resolved: I also added a test to validate that tokens can be introspected even if issued to a different Client, and updated the branch with the latest changes. I think we're good to continue here, looking forward to the next comments :) |
@rozagerardo Thanks for all your work ! This is now merged to master. FYI, I applied some updates with a follow-up polish commit. Please review and let me know if you have any questions. |
Issue #52
Added support to the Token Introspection Endpoint as per the description in the ticket above.