<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Bill,</div><div class=""><br class=""></div><div class="">Thanks great change. Its something we don’t want to fork off the repository and maintain by ourselves. I am wondering if we can create a pull request and submit to master branch?</div><div class=""><br class=""></div><div class="">Thanks</div><div class="">A</div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On May 12, 2016, at 10:43 AM, Scott Rossillo &lt;<a href="mailto:srossillo@smartling.com" class="">srossillo@smartling.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1252" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Adding back mailing list. See below.<br class=""><div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div></div></div><div class=""><blockquote type="cite" class=""><div class="">On May 12, 2016, at 1:39 PM, Scott Rossillo &lt;<a href="mailto:srossillo@smartling.com" class="">srossillo@smartling.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1252" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">We have a way to do in on our fork. It relies on a hard coded role to determine who can impersonate but the rest of the code is probably reusable.<div class=""><br class=""></div><div class=""><a href="https://github.com/Smartling/keycloak/commit/06ac25bf24110061d3cb66ee8c62a726199000bb" class="">https://github.com/Smartling/keycloak/commit/06ac25bf24110061d3cb66ee8c62a726199000bb</a><br class=""><div class=""><br class=""><div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Scott Rossillo</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Smartling | Senior Software Engineer</div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:srossillo@smartling.com" class="">srossillo@smartling.com</a></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
</div>
</div></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On May 12, 2016, at 11:20 AM, Bill Burke &lt;<a href="mailto:bburke@redhat.com" class="">bburke@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class=""><p class="">You can't impersonate progammatically at the moment.<br class="">
    </p>
    <br class="">
    <div class="moz-cite-prefix">On 5/12/16 1:24 AM, Anshul Malpani
      wrote:<br class="">
    </div>
    <blockquote cite="mid:CAGFoRUXoNjbqL7K7wU=1AaxaKFMQjWZ+VBW79EiKf3aP3jcfWA@mail.gmail.com" type="cite" class="">
      <div dir="ltr" class=""><span style="font-size:12.8px" class="">Hi,</span>
        <div style="font-size:12.8px" class=""><br class="">
        </div>
        <div style="font-size:12.8px" class="">I am trying to use impersonate
          feature using my java client. When I call impersonate api
          using admin access grant. I get back the cookies. How can I
          get the access token for the impersonate user.</div>
        <div style="font-size:12.8px" class=""><br class="">
        </div>
        <div style="font-size:12.8px" class=""><br class="">
        </div>
        <div style="font-size:12.8px" class=""><br class="">
        </div>
        <div style="font-size:12.8px" class="">
          <div style="margin:0px;font-family:Monaco" class="">HttpPost&nbsp;<span style="color:rgb(126,80,79)" class="">post</span>&nbsp;=&nbsp;<span style="color:rgb(147,26,104)" class="">new</span>&nbsp;HttpPost(</div>
          <div style="margin:0px" class=""><font face="Monaco" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              &nbsp; KeycloakUriBuilder.fromUri(</font><span style="font-family:Monaco;color:rgb(126,80,79)" class="">authServerUrl</span><font face="Monaco" class="">).path(</font><font face="Monaco" color="#0326cc" class="">“</font><span style="color:rgb(57,51,255);font-family:Monaco" class="">/admin/realms/{realm}/users/{id}/impersonation</span><font face="Monaco" color="#0326cc" class="">"</font><font face="Monaco" class="">).build(</font><span style="font-family:Monaco;color:rgb(126,80,79)" class="">realm</span><font face="Monaco" class="">,&nbsp;</font><span style="font-family:Monaco;color:rgb(126,80,79)" class="">accountKeycloakId</span><font face="Monaco" class="">));</font></div>
        </div>
        <div style="font-size:12.8px;margin:0px" class=""><font face="Monaco" class=""><br class="">
          </font></div>
        <div style="font-size:12.8px;margin:0px" class=""><font face="Monaco" class="">This
            is returning me cookies. In next&nbsp;step I would like to get
            the access token of impersonate user.</font></div>
        <div style="font-size:12.8px;margin:0px" class=""><font face="Monaco" class=""><br class="">
          </font></div>
        <div style="font-size:12.8px;margin:0px" class=""><font face="Monaco" class="">Thanks</font></div>
      </div>
      <div class="gmail_extra"><br class="">
        <div class="gmail_quote">On Wed, May 11, 2016 at 3:25 PM, Anshul
          Malpani <span dir="ltr" class="">&lt;<a moz-do-not-send="true" href="mailto:anshulm@stytch.com" target="_blank" class="">anshulm@stytch.com</a>&gt;</span>
          wrote:<br class="">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div style="word-wrap:break-word" class="">Hi,
              <div class=""><br class="">
              </div>
              <div class="">I am trying to use impersonate feature using my java
                client. When I call impersonate api using admin access
                grant. I get back the cookies. How can I get the access
                token for the impersonate user.</div>
              <div class=""><br class="">
              </div>
              <div class=""><br class="">
              </div>
              <div class=""><br class="">
              </div>
              <div class="">
                <div style="margin:0px;line-height:normal;font-family:Monaco" class="">HttpPost
                  <span style="color:#7e504f" class="">post</span> = <span style="color:#931a68" class="">new</span> HttpPost(</div>
                <div style="margin:0px;line-height:normal" class=""><font face="Monaco" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    KeycloakUriBuilder.fromUri(</font><span style="font-family:Monaco;color:rgb(126,80,79)" class="">authServerUrl</span><font face="Monaco" class="">).path(</font><font face="Monaco" color="#0326cc" class="">“</font><span style="color:rgb(57,51,255);font-family:Monaco" class="">/admin/realms/{realm}/users/{id}/impersonation</span><font face="Monaco" color="#0326cc" class="">"</font><font face="Monaco" class="">).build(</font><span style="font-family:Monaco;color:rgb(126,80,79)" class="">realm</span><font face="Monaco" class="">, </font><span style="font-family:Monaco;color:rgb(126,80,79)" class="">accountKeycloakId</span><font face="Monaco" class="">));</font></div>
              </div>
              <div style="margin:0px;line-height:normal" class=""><font face="Monaco" class=""><br class="">
                </font></div>
              <div style="margin:0px;line-height:normal" class=""><font face="Monaco" class="">This is returning me cookies. In
                  next&nbsp;step I would like to get the access token of
                  impersonate user.</font></div>
              <div style="margin:0px;line-height:normal" class=""><font face="Monaco" class=""><br class="">
                </font></div>
              <div style="margin:0px;line-height:normal" class=""><font face="Monaco" class="">Thanks</font></div>
              <span class="HOEnZb"><font color="#888888" class="">
                  <div style="margin:0px;line-height:normal" class=""><font face="Monaco" class="">A</font></div>
                  <div style="margin:0px;line-height:normal" class=""><font face="Monaco" class=""><br class="">
                    </font></div>
                  <div style="margin:0px;line-height:normal" class=""><font face="Monaco" class=""><br class="">
                    </font></div>
                </font></span></div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
    </blockquote>
    <br class="">
  </div>

_______________________________________________<br class="">keycloak-dev mailing list<br class=""><a href="mailto:keycloak-dev@lists.jboss.org" class="">keycloak-dev@lists.jboss.org</a><br class=""><a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" class="">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>_______________________________________________<br class="">keycloak-dev mailing list<br class=""><a href="mailto:keycloak-dev@lists.jboss.org" class="">keycloak-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/keycloak-dev</div></blockquote></div><br class=""></body></html>