spring-projects / spring-projects/spring-security
Introduce `UserAuthorities`
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.6k
- Forks
- 6.3k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 52
Description
UserAuthorities is a new core interface similar to UserDetails. The difference is that UserAuthorities does not include password/credentials information. This is helpful for scenarios where a password is not required. Right now UserDetails is leveraged for x509 and CAS which don't require passwords, but passkeys and one time tokens is yet another place that it is strange to have UserDetails linked to the them.
Ideally, UserDetails should extend UserAuthorities and UserDetailsService should extend UserAuthoritiesRepository.
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.
Research direction
The issue names no files or tests. Start by tracing existing UserDetails and UserDetailsService usage, especially in x509 and CAS, and compare the password-free passkey and one-time-token scenarios. Done means defining the UserAuthorities and UserAuthoritiesRepository abstractions with the inheritance relationships described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- authentication, authorization, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100