Closed xgp closed 1 year ago
This:
URI location = AdminRoot.realmsUrl(session.getContext().getUri()) .path(realm.getName()) .path("orgs") .path(o.getId()) .build();
is creating
http://localhost:65218/auth/admin/realms/master/orgs/bc7fd2ef-8ac8-4d7d-9200-ed0faf8c7b2a
shouldn't have the /admin part in there.
/admin
The problem is using AdminRoot.realmsUrl. Looks like a standard in the Keycloak code. E.g.:
AdminRoot.realmsUrl
return Response.created(session.getContext().getUri().getAbsolutePathBuilder().path(user.getId()).build()).build();
This:
is creating
shouldn't have the
/admin
part in there.