spring-projects / spring-projects/spring-security

Spring Security Authorization Server is missing the Jackson Mixin for FactorGrantedAuthority

Open
#18,771 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage type: bug
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

Describe the bug
JdbcOAuth2AuthorizationService fails to deserialize FactorGrantedAuthority because of missing Jackson mixin.

To Reproduce

  1. Setup Spring Security Authorization Server to use JDBC
  2. Setup Cloud Gatway with OAuth2 Client token relay
  3. Create an API
  4. Login
  5. Calls the API through cloud gateway

Expected behavior
One should be able to call the API successfully.

Sample

https://github.com/k6leung/MongoAuthServerTest

Reports that include a sample will take priority over reports that do not.
At times, we may require a sample, so it is good to try and include a sample up front.

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.

Research direction

Start at JdbcOAuth2AuthorizationService and follow the FactorGrantedAuthority deserialization path, using the linked sample to reproduce the failure. Done means the JDBC authorization data deserializes successfully and the API call through the gateway succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
authorization, databases, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.