spring-projects / spring-projects/spring-security

Expose methods to get configurer type in OAuth2ResourceServerConfigurer bean

Open
#9,020 3 comments 0 reactions 1 assignee View on GitHub

@jzheaux is already working on this.

Since Sep 16, 2020.

in: config type: enhancement
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

  • OAuth2ResourceServerConfigurer is final.
  • No way to get the currently used configurer instance.

Context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.