[keycloak-dev] Keycloak Realm Admin Services SPI

Bill Burke bburke at redhat.com
Thu Sep 3 13:09:51 EDT 2015


That would be easy to do.  You just need to extend RealmAdminResource 
like you said and add something like:

@Path("spi/{spi})
public Object getSPI(@PathParam("spi") String spi) {
}

we could do the same for RealmsResource too for non-admin stuff.

AdminRestSPIProvider
AuthRestSPIProvider


On 9/3/2015 12:11 PM, Pedro Igor Silva wrote:
> Hi,
>
>      Based on the discussion from our last meeting, we would need to provide SPIs for these two major areas:
>
>          - Admin Services
>          - Admin UI
>
>      I would like to start discussing about the first area, in other words, how to provide custom services to Keycloak Admin RESTFul API.
>
>      My initial requirements is all about providing a new API based on the following path:
>
>          * /admin/realms/{realm}/authz
>
>      I was thinking about using something like following method on RealmAdminResource:
>
>       @Path("{custom_resource}")
>       public Object getCustomResource(@PathParam("custom_resource") String customResource) {
>          return // load resource from SPI
>       }
>
>      So here we could obtain some user-defined resource using a SPI based on a path param. That would allow us to support custom admin services for realms or even for a specific realm only.
>
>      Any thoughts ?
>
> Regards.
> Pedro Igor
>
>
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-dev mailing list