Skip to content

Conversation

@hardik-xi11
Copy link

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
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