[keycloak-dev] Keycloak Realm Admin Services SPI

Pedro Igor Silva psilva at redhat.com
Thu Sep 3 13:32:13 EDT 2015


Ok. Going to to follow this path. As soon as I have something integrated with KC, using this stuff, I'll send a PR.

----- Original Message -----
From: "Bill Burke" <bburke at redhat.com>
To: keycloak-dev at lists.jboss.org
Sent: Thursday, September 3, 2015 2:09:51 PM
Subject: Re: [keycloak-dev] Keycloak Realm Admin Services SPI

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
_______________________________________________
keycloak-dev mailing list
keycloak-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev


More information about the keycloak-dev mailing list