KEYCLOAK-4774 redirect_fragment doesn't work in Admin Console
This commit is contained in:
parent
606c385f26
commit
f92ad70ff0
2 changed files with 6 additions and 1 deletions
|
@ -25,6 +25,7 @@ import org.keycloak.services.resources.IdentityBrokerService;
|
|||
import org.keycloak.services.resources.LoginActionsService;
|
||||
import org.keycloak.services.resources.RealmsResource;
|
||||
import org.keycloak.services.resources.ThemeResource;
|
||||
import org.keycloak.services.resources.admin.AdminRoot;
|
||||
|
||||
import javax.ws.rs.core.UriBuilder;
|
||||
import java.net.URI;
|
||||
|
@ -34,6 +35,10 @@ import java.net.URI;
|
|||
*/
|
||||
public class Urls {
|
||||
|
||||
public static URI adminConsoleRoot(URI baseUri, String realmId) {
|
||||
return UriBuilder.fromUri(baseUri).path(AdminRoot.class).path("{realm}/console/").build(realmId);
|
||||
}
|
||||
|
||||
public static URI accountApplicationsPage(URI baseUri, String realmId) {
|
||||
return accountBase(baseUri).path(AccountService.class, "applicationsPage").build(realmId);
|
||||
}
|
||||
|
|
|
@ -296,7 +296,7 @@ public class AdminConsole {
|
|||
authUrl = authUrl.substring(0, authUrl.length() - 1);
|
||||
|
||||
map.put("authUrl", authUrl);
|
||||
map.put("consoleBaseUrl", uriInfo.getRequestUri().toString());
|
||||
map.put("consoleBaseUrl", Urls.adminConsoleRoot(baseUri, realm.getId()));
|
||||
map.put("resourceUrl", Urls.themeRoot(baseUri) + "/admin/" + theme.getName());
|
||||
map.put("masterRealm", Config.getAdminRealm());
|
||||
map.put("resourceVersion", Version.RESOURCES_VERSION);
|
||||
|
|
Loading…
Reference in a new issue