From 6f70acddb025a572cae17d142478f8ee0a0e4e8a Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Wed, 30 Nov 2016 16:16:18 -0200 Subject: [PATCH] Fixing hard coded external links to Keycloak community doc --- book.json | 10 ++++++++++ topics/enforcer/js-adapter.adoc | 2 +- topics/getting-started/overview.adoc | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/book.json b/book.json index cfbed953dc..5e88622a15 100755 --- a/book.json +++ b/book.json @@ -17,6 +17,16 @@ "name": "Keycloak", "version": "SNAPSHOT", "module": "Authorization Services" + }, + "external_link": { + "keycloakjsadapter": { + "name": "JavaScript OpenID Connect Adapter", + "link": "https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/javascript-adapter.html" + }, + "keycloakgettingstarted": { + "name": "Getting Started", + "link": "https://keycloak.gitbooks.io/getting-started-tutorials/content/" + } } } } diff --git a/topics/enforcer/js-adapter.adoc b/topics/enforcer/js-adapter.adoc index 9685ca8362..68a67ebe7c 100755 --- a/topics/enforcer/js-adapter.adoc +++ b/topics/enforcer/js-adapter.adoc @@ -2,7 +2,7 @@ == JavaScript Integration The {{book.project.name}} Server comes with a JavaScript library you can use to interact with a resource server protected by a policy enforcer. -This library is based on the https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/javascript-adapter.html[{{book.project.name}} JavaScript adapter], which can be integrated to allow your client to obtain permissions from a {{book.project.name}} Server. +This library is based on the {{book.external_link.keycloakjsadapter.link}}[{{book.project.name}} {{book.external_link.keycloakjsadapter.name}}], which can be integrated to allow your client to obtain permissions from a {{book.project.name}} Server. You can obtain this library from a running a {{book.project.name}} Server instance by including the following `script` tag in your web page: diff --git a/topics/getting-started/overview.adoc b/topics/getting-started/overview.adoc index 57a2bc44b2..5466df3d66 100644 --- a/topics/getting-started/overview.adoc +++ b/topics/getting-started/overview.adoc @@ -9,7 +9,7 @@ To unpack this file run the _unzip_ or _gunzip_ and _tar_ utilities. Throughout the demo distribution is referenced as *${KEYCLOAK_DEMO_SERVER_DIR}*. [NOTE] -This guide assumes that you are already familiar with {{book.project.name}} and that you are able to install and boot a {{book.project.name}} Server. For more information, see https://keycloak.gitbooks.io/getting-started-tutorials/content/[the Getting Started tutorials]. +This guide assumes that you are already familiar with {{book.project.name}} and that you are able to install and boot a {{book.project.name}} Server. For more information, see the {{book.external_link.keycloakgettingstarted.link}}[{{book.external_link.keycloakgettingstarted.name}}] tutorials. Ensure you have a {{book.project.name}} instance running; the default configuration is http://localhost:8080/auth[http://localhost:8080/auth]. After logging in to the Administration Console, a page similar to this one is displayed: