Skip to content

Update Ont-Time-Token Login Docs - #18368

Open
hardikxk wants to merge 1 commit into
spring-projects:mainfrom
hardikxk:#18367
Open

Update Ont-Time-Token Login Docs#18368
hardikxk wants to merge 1 commit into
spring-projects:mainfrom
hardikxk:#18367

Conversation

@hardikxk

Copy link
Copy Markdown

Update UriComponentsBuilder method implementation in the given example

Description

This pull request updates the One-Time Token Login documentation to correct an outdated method call. The current documentation suggests using UriComponentsBuilder.fromHttpUrl(), which is no longer available in the Spring Framework 7.0.x API.

The example has been updated to use UriComponentsBuilder.fromUriString(request.getRequestURL().toString()), which is the correct and supported implementation for capturing the absolute request URL in modern Spring Security environments.

Motivation

Following the current documentation leads to compilation errors (Cannot resolve method 'fromHttpUrl') for users attempting to implement the new One-Time Token (OTT) feature. Correcting this ensures a smooth onboarding experience for passwordless authentication.

Related Issue

Closes gh-18367

email: hardikkumarpro0005@gmail.com
Signed-off-by: Hardik Kumar

Update UriComponentsBuilder method implementation in the given example

Signed-off-by: Hardik Kumar <hardikkumarpro0005@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 29, 2025
@hardikxk

Copy link
Copy Markdown
Author

well since #19274 got merged even though this PR was open since December of last year when I raised that issue first and (waiting for triage) since then, its better to just close this?

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.

Outdated UriComponentsBuilder method in One-Time Token Login example

2 participants