<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Ok. Noted. Thanks Kindly.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:sthorger@redhat.com">Stian Thorgersen</a><br><b>Sent: </b>Friday, February 5, 2016 12:13 PM<br><b>To: </b><a href="mailto:pkkamos@gmail.com">PAA KOJO KONDUAH AMOS</a><br><b>Cc: </b><a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br><b>Subject: </b>Re: [keycloak-user] KeyCloak Admin Client : DEALING WITH[Unrecognized field "access_token" (classorg.keycloak.representations.AccessTokenResponse)] ISSUE.</p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>On 5 February 2016 at 08:16, PAA KOJO KONDUAH AMOS <<a href="mailto:pkkamos@gmail.com" target="_blank">pkkamos@gmail.com</a>> wrote:<o:p></o:p></span></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal>Hello Stian, I am very happy to share that, Keycloak admin-client 1.9.0.CR1 is working for me. I will like to share 2 things I have done to get it woking in a web context.<o:p></o:p></p><p class=MsoNormal> </p><p style='margin-left:31.5pt'>1.<span style='font-size:7.0pt'> </span>Dependency definition:</p><p> </p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6'> <dependency></span></b></p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6'> <groupId>org.keycloak</groupId></span></b></p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6'> <artifactId>keycloak-admin-client</artifactId></span></b></p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6'> <version>1.9.0.CR1</version></span></b></p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6'> </dependency></span></b></p><p class=MsoNormal style='margin-left:.25in'> </p><p style='margin-left:31.5pt'>2.<span style='font-size:7.0pt'> </span>created a <b>jboss-deployment-structure.xml</b> file, placed it in my <b>WEB-INF</b> folder ,with the following content(<b>This ensures Jackson2 is used</b>)[Credit: <a href="https://docs.jboss.org/resteasy/docs/3.0.2.Final/userguide/html/json.html" target="_blank">https://docs.jboss.org/resteasy/docs/3.0.2.Final/userguide/html/json.html</a>, 21.4. Using Jackson 2.2.x Inside of JBoss AS7]:</p><p class=MsoNormal style='margin-left:13.5pt'> <b><span style='color:#2E75B6'><jboss-deployment-structure></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> <deployment></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> <exclusions></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> </span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> <module name="org.jboss.resteasy.resteasy-jackson-provider" /></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> </exclusions></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> <dependencies></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> <module name="org.jboss.resteasy.resteasy-jackson2-provider"</span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> services="import" /></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> </dependencies></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> </deployment></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6'> </jboss-deployment-structure></span></b> </p></div></div></blockquote><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>You shouldn't need the jboss-deployment-structure.xml at all if you are using a recent version of WildFly as Jackson2 is the default.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> <o:p></o:p></span></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> </p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From: </b><a href="mailto:sthorger@redhat.com" target="_blank">Stian Thorgersen</a><br><b>Sent: </b>Wednesday, February 3, 2016 12:57 PM<br><b>To: </b><a href="mailto:pkkamos@gmail.com" target="_blank">PAA KOJO KONDUAH AMOS</a><br><b>Cc: </b><a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br><b>Subject: </b>Re: [keycloak-user] KeyCloak Admin Client :</p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>In the past the admin client required Jackson 1.x and didn't work with Jackson 2.x. This is being fixed in 1.9.</span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>To make it work you'll need to either wait for 1.9 or make your WAR use Jackson instead of Jackson 2. Check out the admin client example as it doesn't exactly that.</span></p></div></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span></p><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'>On 3 February 2016 at 13:35, PAA KOJO KONDUAH AMOS <<a href="mailto:pkkamos@gmail.com" target="_blank">pkkamos@gmail.com</a>> wrote:</span></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><div><p class=MsoNormal>Hello, I have tried out KeyCloak Admin Client. In fact, I have done a standalone application which works nicely with KeyCloak Server.</p><p class=MsoNormal> </p><p class=MsoNormal>What I don’t get is, when I port a similar thing into a web application context and deploy same on wildfly fly I keep getting the Exception below:</p><p class=MsoNormal> </p><p class=MsoNormal><b><span style='color:#2E75B6'>Caused by: javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "access_token" (class org.keycloak.representations.AccessTokenResponse), not marked as ignorable (9 known properties: "notBeforePolicy", "otherClaims", "tokenType", "token", "expiresIn", "sessionState", "refreshExpiresIn", "idToken", "refreshToken"])</span></b></p><p class=MsoNormal><b><span style='color:#2E75B6'> </span></b></p><p class=MsoNormal><b><span style='color:#2E75B6'> </span></b></p><p class=MsoNormal><span style='color:black'>Any lead on how to resolve all these maven dependency issues?</span></p><p class=MsoNormal><span style='color:black'> </span></p><p class=MsoNormal><span style='color:black'> </span></p><p class=MsoNormal><span style='color:black'>Thanks.</span></p><p class=MsoNormal> </p><p class=MsoNormal>Sent from <a href="http://go.microsoft.com/fwlink/?LinkId=550986" target="_blank">Mail</a> for Windows 10</p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#2E75B6'> </span></p></div></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><br>_______________________________________________<br>keycloak-user mailing list<br><a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></span></p></blockquote></div></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span></p><p class=MsoNormal> </p></div></div></blockquote></div></div></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>