<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;}
h2
        {mso-style-priority:9;
        mso-style-link:"Heading 2 Char";
        margin-top:2.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Calibri Light",sans-serif;
        color:#2E74B5;
        font-weight:normal;}
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.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.Heading2Char
        {mso-style-name:"Heading 2 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 2";
        font-family:"Calibri Light",sans-serif;
        color:#2E74B5;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:373770977;
        mso-list-type:hybrid;
        mso-list-template-ids:-1652112772 -1 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:31.5pt;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1
        {mso-list-id:1457523384;
        mso-list-type:hybrid;
        mso-list-template-ids:-495411974 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><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.</p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoListParagraph style='margin-left:31.5pt;text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Dependency definition:<o:p></o:p></p><p class=MsoListParagraph><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                &lt;dependency&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                  &lt;groupId&gt;org.keycloak&lt;/groupId&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                  &lt;artifactId&gt;keycloak-admin-client&lt;/artifactId&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                  &lt;version&gt;1.9.0.CR1&lt;/version&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:.25in'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                    &lt;/dependency&gt;</span></b><o:p></o:p></p><p class=MsoNormal style='margin-left:.25in'><o:p>&nbsp;</o:p></p><p class=MsoListParagraph style='margin-left:31.5pt;text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>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">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]:<o:p></o:p></p><p class=MsoNormal style='margin-left:13.5pt'>                 <b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>&lt;jboss-deployment-structure&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                               &lt;deployment&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                        &lt;exclusions&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'><o:p>&nbsp;</o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                             &lt;module name=&quot;org.jboss.resteasy.resteasy-jackson-provider&quot; /&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                     &lt;/exclusions&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                   &lt;dependencies&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                          &lt;module name=&quot;org.jboss.resteasy.resteasy-jackson2-provider&quot;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                                     services=&quot;import&quot; /&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                                  &lt;/dependencies&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                          &lt;/deployment&gt;<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:13.5pt'><b><span style='color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%'>                 &lt;/jboss-deployment-structure&gt;</span></b>                       <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</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>&nbsp;</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>Wednesday, February 3, 2016 12:57 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 :</p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p>&nbsp;</o:p></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><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>&nbsp;</o:p></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.<o:p></o:p></span></p></div></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p>&nbsp;</o:p></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 &lt;<a href="mailto:pkkamos@gmail.com" target="_blank">pkkamos@gmail.com</a>&gt; 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, I have tried out KeyCloak Admin Client. In fact, I have done a standalone application which works nicely with KeyCloak Server.<o:p></o:p></p><p class=MsoNormal>&nbsp;</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>&nbsp;</p><p class=MsoNormal><b><span style='color:#2E75B6'>Caused by: javax.ws.rs.ProcessingException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field &quot;access_token&quot; (class org.keycloak.representations.AccessTokenResponse), not marked as ignorable (9 known properties: &quot;notBeforePolicy&quot;, &quot;otherClaims&quot;, &quot;tokenType&quot;, &quot;token&quot;, &quot;expiresIn&quot;, &quot;sessionState&quot;, &quot;refreshExpiresIn&quot;, &quot;idToken&quot;, &quot;refreshToken&quot;])</span></b></p><p class=MsoNormal><b><span style='color:#2E75B6'>&nbsp;</span></b></p><p class=MsoNormal><b><span style='color:#2E75B6'>&nbsp;</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'>&nbsp;</span></p><p class=MsoNormal><span style='color:black'>&nbsp;</span></p><p class=MsoNormal><span style='color:black'>Thanks.</span></p><p class=MsoNormal>&nbsp;</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'>&nbsp;</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">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><o:p></o:p></span></p></blockquote></div></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>