<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 20/11/15 12:18, Pavel Maslov wrote:<br>
    </div>
    <blockquote
cite="mid:CAF9aV_r_x6JMGQZuBaDrph=j+1F3OuoEQ+kkg0WiPD=391rusw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi everyone,</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>&gt;From the user documentation I could not find the
          authorization grant url (a la github's  <span
            style="font-family:Consolas,'Liberation
Mono',Courier,monospace;color:rgb(57,57,57);font-size:12px;background-color:rgb(250,250,251)"><a
              moz-do-not-send="true"
              href="https://github.com/login/oauth/authorize"><a class="moz-txt-link-freetext" href="https://github.com/login/oauth/authorize">https://github.com/login/oauth/authorize</a></a></span>)
          and Get token url (a la <span
            style="color:rgb(57,57,57);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;background-color:rgb(250,250,251)"><a
              moz-do-not-send="true"
              href="https://github.com/login/oauth/access_token"><a class="moz-txt-link-freetext" href="https://github.com/login/oauth/access_token">https://github.com/login/oauth/access_token</a></a></span>).</div>
        <div><br>
        </div>
        <div>I presume it's <a moz-do-not-send="true"
href="http://%7Bkeycloak_base%7D/realms/%7Brealm-name%7D/protocol/openid-connect/auth?client_id=%7Bclient_name%7D&amp;response_type=code">{keycloak_base}/realms/{realm-name}/protocol/openid-connect/auth?client_id={client_name}&amp;response_type=code</a> and
          <a moz-do-not-send="true"
href="http://%7Bkeycloak_base%7D/realms/%7Brealm-name%7D/protocol/openid-connect/token">{keycloak_base}/realms/{realm-name}/protocol/openid-connect/token</a> respectively,
          but I am not sure.</div>
      </div>
    </blockquote>
    Yes, your URLs are correct. However if you want to use the default
    Authorization Code Grant flow and browser applications, you can just
    use our adapters. You don't even need to know the authorization
    grant url and token URL as adapters handle all the redirections and
    exchanges for you.<br>
    <br>
    I suggest to take a look at our examples . <br>
    <br>
    And here is the docs for adapters:
    <a class="moz-txt-link-freetext" href="http://keycloak.github.io/docs/userguide/keycloak-server/html/ch08.html">http://keycloak.github.io/docs/userguide/keycloak-server/html/ch08.html</a><br>
    <br>
    Marek
    <blockquote
cite="mid:CAF9aV_r_x6JMGQZuBaDrph=j+1F3OuoEQ+kkg0WiPD=391rusw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>I would like to follow the standard OAuth2.0 workflow:</div>
        <div>
          <ol>
            <li>Get Auth grant (GET on <span
                style="color:rgb(57,57,57);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;background-color:rgb(250,250,251)"><a
                  moz-do-not-send="true"
                  href="https://github.com/login/oauth/authorize"><a class="moz-txt-link-freetext" href="https://github.com/login/oauth/authorize">https://github.com/login/oauth/authorize</a></a></span>)</li>
            <li>Get access token in exchange for the auth grant code
              (POST on <span style="font-family:Consolas,'Liberation
Mono',Courier,monospace;color:rgb(57,57,57);font-size:12px;background-color:rgb(250,250,251)"><a
                  moz-do-not-send="true"
                  href="https://github.com/login/oauth/access_token"><a class="moz-txt-link-freetext" href="https://github.com/login/oauth/access_token">https://github.com/login/oauth/access_token</a></a></span>)<br>
            </li>
            <li>Use the resource using the access token gotten in step
              2.</li>
          </ol>
        </div>
        <div>Please, correct me if I am wrong.</div>
        <div>Thanks.</div>
        <br clear="all">
        <div>
          <div class="gmail_signature">
            <div dir="ltr">
              <div style="font-family:arial;font-size:small">
                <div dir="ltr"><font color="#888888">Regards,<br>
                    Pavel Maslov, MSc</font></div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>