spring-projects / spring-projects/spring-security
Expose methods to get configurer type in OAuth2ResourceServerConfigurer bean
@jzheaux is already working on this.
Since Sep 16, 2020.
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
Expected Behavior
I am using Springboot starter (2.3.3.RELEASE) and the class OAuth2ResourceServerConfigurer brought in by spring-security-config-5.3.4.RELEASE is marked final and does not have any method for fetching the configurer being used (JWT or Opaque). I am presently having a need to get the type of configurer being set by OAuth2ResourceServerConfigurer and do something specific to each flow (JWT or Opaque Token). Since the class is marked final, I am unable to extend it and customize it to fit my need. Any thoughts on how to handle this? Would it be possible to make it non-final (unaware of the side effects).
Current Behavior
OAuth2ResourceServerConfigurerisfinal.- No way to get the currently used
configurerinstance.
Context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.