title: Get Keycloak auth-server-url from request?
body: <p>I want to create dynamic links to the profile and logout url:</p>
  
  <pre><code> scheme://servername:port/auth/realms/realmname/protocol/openid-connect/logout
   scheme://servername:port/auth/realms/realmname/account
  </code></pre>
  
  <p>When using OIDC in the keycloak.json of the java-ee project the auth-server-url is stated:</p>
  
  <pre><code>{
    "realm": "master",
    "auth-server-url": "scheme://servername:port/auth",
    ...
  }
  </code></pre>
  
  <p>Is there something like </p>
  
  <pre><code>request.getAuthServerUrl();
  </code></pre>
  
  <p>available to get</p>
  
  <pre><code> auth-server-url 
  </code></pre>
  
  <p>programmatically in Java from the request?</p>
  
  <p>Would be nice, if i don't have to read from the file itself manually. </p>
  
  <p>The keycloak.json must have already been read from by the application so this information might be available as an attribute of a Keycloak object.</p>