From 17225116e3f6da72617381067823e4b2b44ec10b Mon Sep 17 00:00:00 2001 From: Pedro Igor Date: Fri, 9 Sep 2016 01:25:17 -0300 Subject: [PATCH] [KEYCLOAK-3546] - Missing fixes. --- topics/enforcer/authorization-context.adoc | 7 +++++-- topics/overview/overview.adoc | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/topics/enforcer/authorization-context.adoc b/topics/enforcer/authorization-context.adoc index 02ecd9fddb..2b06b44692 100755 --- a/topics/enforcer/authorization-context.adoc +++ b/topics/enforcer/authorization-context.adoc @@ -6,8 +6,11 @@ This class provides several methods from where you can use to obtain permissions Obtaining the Authorization Context in a Servlet Container ```java HttpServletRequest request = ... // obtain javax.servlet.http.HttpServletRequest - KeycloakSecurityContext keycloakSecurityContext = (KeycloakSecurityContext) request.getAttribute(KeycloakSecurityContext.class.getName()); - AuthorizationContext authzContext = keycloakSecurityContext.getAuthorizationContext(); + KeycloakSecurityContext keycloakSecurityContext = + (KeycloakSecurityContext) request + .getAttribute(KeycloakSecurityContext.class.getName()); + AuthorizationContext authzContext = + keycloakSecurityContext.getAuthorizationContext(); ``` [NOTE] diff --git a/topics/overview/overview.adoc b/topics/overview/overview.adoc index aa2327c037..96e69801c8 100755 --- a/topics/overview/overview.adoc +++ b/topics/overview/overview.adoc @@ -28,7 +28,7 @@ checked against the roles mapped to these same resources. While roles are very u * Depending on your application size, role management may become difficult and error-prone * It is not the most flexible access control mechanism. Roles do not represent who you are and lack context information. If you have a role, you can do something. -Considering that today we need to consider a heterogeneous environments, where users are distributed across different regions, with different local policies, +Considering that today we need to consider heterogeneous environments where users are distributed across different regions, with different local policies, using different devices, and with a high demand for information sharing, {{book.project.name}} Authorization Services can help you improve the authorization capabilities of your applications and services by providing: * Resource protection using fine-grained authorization policies and different access control mechanisms