[keycloak-dev] Support both Jackson and Jackson 2

Stian Thorgersen stian at redhat.com
Mon Nov 3 10:23:07 EST 2014


----- Original Message -----
> From: "Bill Burke" <bburke at redhat.com>
> To: keycloak-dev at lists.jboss.org
> Sent: Monday, 3 November, 2014 4:15:17 PM
> Subject: Re: [keycloak-dev] Support both Jackson and Jackson 2
> 
> Why is 811 a problem?  We can just ship jackson 1.9.x

What about folks that use Jackson 2 in their applications and want to use our adapter?

> 
> On 11/3/2014 9:05 AM, Stian Thorgersen wrote:
> > Currently we only support Jackson, while WildFly now uses Jackson 2. This
> > is OK for our the auth-server itself, but could be more problematic for
> > applications (see https://issues.jboss.org/browse/KEYCLOAK-811).
> >
> > The main reason we can't use Jackson 2 is that they have changed the
> > package for annotations (@JsonProperty). I propose we get rid of all
> > @JsonProperty and instead make sure all fields are named correct and that
> > we set the LowerCaseWithUnderscoresStrategy on the ObjectMapper. This
> > should also make it possible to use the Java classes with other JSON
> > libraries.
> >
> > For example:
> >
> >      @JsonProperty("access_token")
> >      protected String token;
> >
> >      @JsonProperty("jti")
> >      protected String id;
> >
> > Becomes:
> >
> >      protected String accessToken;
> >
> >      protected String jti;
> > _______________________________________________
> > 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