Make sure the context path from the base URI is respected when building TOTP URIs
Closes #21542 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
This commit is contained in:
parent
60f80ce0c8
commit
986b6af4f5
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ public class FreeMarkerLoginFormsProvider implements LoginFormsProvider {
|
||||||
*/
|
*/
|
||||||
private UriBuilder getTotpUriBuilder() {
|
private UriBuilder getTotpUriBuilder() {
|
||||||
return uriInfo.getBaseUriBuilder()
|
return uriInfo.getBaseUriBuilder()
|
||||||
.replacePath(uriInfo.getRequestUri().getPath())
|
.path(uriInfo.getPath())
|
||||||
.replaceQuery(uriInfo.getRequestUri().getQuery());
|
.replaceQuery(uriInfo.getRequestUri().getQuery());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue