KEYCLOAK-946 Only show endpoints relevant for admin rest api
This commit is contained in:
1 parent
abf8aea3f6
commit
f9d814598e
2 files changed
+2
-4
No files matched your search
@@ -209,6 +209,7 @@
|
||||
<id>generate-service-docs</id>
|
||||
<phase>generate-resources</phase>
|
||||
<configuration>
|
||||
<subpackages>org.keycloak.services.resources.admin:org.keycloak.protocol.oidc</subpackages>
|
||||
<doclet>com.lunatech.doclets.jax.jaxrs.JAXRSDoclet</doclet>
|
||||
<docletArtifacts>
|
||||
<docletArtifact>
|
||||
@@ -225,6 +226,7 @@
|
||||
</offlineLink>
|
||||
</offlineLinks>
|
||||
<additionalparam>-disablejavascriptexample</additionalparam>
|
||||
<additionalparam>-pathexcludefilter '/admin/.*index.*' -pathexcludefilter '/admin' -pathexcludefilter '/admin/\\{realm\\}/console.*'</additionalparam>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>javadoc</goal>
|
||||
|
||||
@@ -113,7 +113,6 @@ public class RealmsResource {
|
||||
Object endpoint = factory.createProtocolEndpoint(realm, event, authManager);
|
||||
|
||||
ResteasyProviderFactory.getInstance().injectProperties(endpoint);
|
||||
//resourceContext.initResource(tokenService);
|
||||
return endpoint;
|
||||
}
|
||||
|
||||
@@ -132,8 +131,6 @@ public class RealmsResource {
|
||||
AuthenticationManager authManager = new AuthenticationManager(protector);
|
||||
LoginActionsService service = new LoginActionsService(realm, authManager, event);
|
||||
ResteasyProviderFactory.getInstance().injectProperties(service);
|
||||
|
||||
//resourceContext.initResource(service);
|
||||
return service;
|
||||
}
|
||||
|
||||
@@ -147,7 +144,6 @@ public class RealmsResource {
|
||||
return service;
|
||||
}
|
||||
|
||||
|
||||
protected RealmModel locateRealm(String name, RealmManager realmManager) {
|
||||
RealmModel realm = realmManager.getRealmByName(name);
|
||||
if (realm == null) {
|
||||
|
||||
Reference in new issue
Block a user