<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 13, 2016 at 6:20 PM, Aritz Maeztu <span dir="ltr">&lt;<a href="mailto:amaeztu@tesicnor.com" target="_blank">amaeztu@tesicnor.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000"><br>
    ResponseEntity rssResponse = template.exchange(<br>
            <a href="http://192.168.0.230:8080/auth/realms/master/protocol/" target="_blank">&quot;http://192.168.0.230:8080/auth/realms/master/protocol/&quot;</a> +<br>
                   
&quot;openid-connect/token?grant_type=authoritation_code&amp;client_id=web_service&amp;code=&quot;+accessCode,<br>
            HttpMethod.POST,<br>
            null,<br>
            Object.class);<br><span class=""><font color="#888888"><br></font></span></div></blockquote><div class="gmail_quote"><br></div>It also looks like you have a typo in your URL. It should be: grant_type=authorization_code.</div><div class="gmail_quote"><br></div><div class="gmail_quote">And also I would suggest not to use master realm for your app, but create a new realm. Even for development.<br><div><br></div></div></div></div>