diff --git a/.changeset/small-camels-do.md b/.changeset/small-camels-do.md new file mode 100644 index 00000000000..43192d561b5 --- /dev/null +++ b/.changeset/small-camels-do.md @@ -0,0 +1,5 @@ +--- +"@wso2is/identity-apps-core": patch +--- + +Fix My Account URL in Passkey flow diff --git a/identity-apps-core/apps/authentication-portal/src/main/webapp/fido2-auth.jsp b/identity-apps-core/apps/authentication-portal/src/main/webapp/fido2-auth.jsp index 6eaa1bcb609..68d27bc47df 100644 --- a/identity-apps-core/apps/authentication-portal/src/main/webapp/fido2-auth.jsp +++ b/identity-apps-core/apps/authentication-portal/src/main/webapp/fido2-auth.jsp @@ -1,5 +1,5 @@ <%-- - ~ Copyright (c) 2019-2023, WSO2 LLC. (https://www.wso2.com). + ~ Copyright (c) 2019-2025, WSO2 LLC. (https://www.wso2.com). ~ ~ WSO2 LLC. licenses this file to you under the Apache License, ~ Version 2.0 (the "License"); you may not use this file except @@ -268,7 +268,8 @@ if (StringUtils.isNotEmpty(myaccountUrl)) { myaccountUrl = myaccountUrl + "/t/" + tenantDomain; } else { - myaccountUrl = ServiceURLBuilder.create().setTenant(tenantDomain).build().getAbsolutePublicURL(); + myaccountUrl = IdentityManagementEndpointUtil.getUserPortalUrl( + application.getInitParameter(IdentityManagementEndpointConstants.ConfigConstants.USER_PORTAL_URL), tenantDomain); } %>