-
Notifications
You must be signed in to change notification settings - Fork 1.3k
RegisteredClientRepository and OAuth2AuthorizationService should have a method to query all active entries. #325
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
Comments
@bschoenmaeckers A I see this more of an admin operation, where admins want to view all granted tokens and possibly revoke some. This would be the responsibility of the admin app to extend I'm going to close this as it's not needed by the existing framework components. |
Makes sense! I missed the latest commit which made both JDBC implementations non-final so this should be possible now. |
Nevermind... 473dedb |
@bschoenmaeckers We reverted the commit for now but it will be merged in 3 separate commits and the classes will be made non-final. |
@jgrandja Will the findBy methods be accessible to the subclasses as well? This would make it considerable easier to make custom query methods. |
Yes, we'll make the methods |
Excellent! |
Yes, I will fold that in, as that makes a lot of sense for the use case under discussion here. Thanks @bschoenmaeckers! |
@bschoenmaeckers After discussion, and considering previous comments on this issue, I won't be making any changes related to this. Reason being (as @jgrandja mentioned) this is a product feature needed by an admin application, and should not be provided by the framework. I recommend extending the interface and providing the |
Hi @sjohnr, I understand your decision. But it will still help to make some helper methods and getters in the JDBC implementation accessible by subclasses. Are you still planning to that or not? Thanks anyway! |
Update: To be clear, I am working on getter/setter access. If by helper methods you mean |
I use JdbcTemplate to findAll
|
It is currently not possible to get a list of all registered clients and/or active authorizations (with their corresponding tokens).
RegisteredClientRepository should have a method to get all registered clients. And the OAuth2AuthorizationService should have a method to get all (active) authorizations or all (active) authorizations for a given principal.
The text was updated successfully, but these errors were encountered: