Skip to content

Make FactorGrantedAuthority Builder constructor public#19035

Open
hqqw2h-lgtm wants to merge 1 commit intospring-projects:mainfrom
hqqw2h-lgtm:gh-18975
Open

Make FactorGrantedAuthority Builder constructor public#19035
hqqw2h-lgtm wants to merge 1 commit intospring-projects:mainfrom
hqqw2h-lgtm:gh-18975

Conversation

@hqqw2h-lgtm
Copy link
Copy Markdown

Summary

Make the FactorGrantedAuthority.Builder constructor public so that external code can create a Builder directly and set a custom issuedAt value.

This enables scenarios like persisting MFA factor timestamps (along with user agent and IP address) so the user is not prompted for a configurable period when next logging in.

  • Changed Builder(String authority) from private to public
  • Added test to verify direct Builder construction

Closes gh-18975

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 4, 2026
Allow external code to construct FactorGrantedAuthority.Builder
directly, enabling custom issuedAt values for scenarios like
persisting MFA factor timestamps.

Closes spring-projectsgh-18975

Signed-off-by: hanweiwei <duzielww@163.com>
Signed-off-by: hanweiwei <duzielww@163.com>
@hqqw2h-lgtm hqqw2h-lgtm force-pushed the gh-18975 branch 2 times, most recently from c103dd0 to 7e5ab5f Compare April 5, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make FactorGrantedAuthority Builder Constructor Public

3 participants