[keycloak-user] how get info from adapterConfig
Bruno Oliveira
bruno at abstractj.org
Thu Jun 30 20:20:12 EDT 2016
Do you mean something like this: https://github.com/aerogear/aerogear-unifiedpush-server/blob/462c722b3dba72e5becfe3bf93f8623fa27a38f5/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/config/KeycloakConfigurationEndpoint.java#L33-L40 ?
Not sure what's your use case.
On 2016-06-28, Stian Thorgersen wrote:
> By adapterConfig I assume you mean the information from keycloak.json. As
> that contains the credentials for the service you should not expose this
> publicly.
>
> What is the use-case? I would rather suggest you load keycloak.json
> yourself and carefully expose selected details from it.
>
> On 15 June 2016 at 16:03, LIEVRE Olivier <olivier.lievre at altran.com> wrote:
>
> > Hello,
> >
> >
> >
> > I’ve secured a REST server with keycloak 1.9.7, and I would like to
> > implement a public REST GET method for an non-authenticated user to get the
> > adapderConfig info linked to my war.
> >
> >
> >
> > My war adapter is configured in my standalone.xml.
> >
> >
> >
> > Is there an easy way to read the adapterConfig info from standalone in
> > that case?
> >
> >
> >
> > When a user makes an authenticated request, I can get that info with
> > getting RefreshableKeycloakSecurityContext from httprequest.
> >
> >
> >
> > KR,
> >
> > Olivier
> >
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
> >
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
--
abstractj
PGP: 0x84DC9914
More information about the keycloak-user
mailing list