Merge pull request #94 from jenmalloy/RHSSO-920-2
fixed remaining issues for RHSSO-920
This commit is contained in:
commit
c2387f1ed5
2 changed files with 2 additions and 4 deletions
|
@ -7,7 +7,7 @@ This library is based on the {{book.project.name}} JavaScript adapter, which can
|
||||||
You can obtain this library from a running a {{book.project.name}} Server instance by including the following `script` tag in your web page:
|
You can obtain this library from a running a {{book.project.name}} Server instance by including the following `script` tag in your web page:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="http://$.../auth/js/keycloak-authz.js"></script>
|
<script src="http://.../auth/js/keycloak-authz.js"></script>
|
||||||
```
|
```
|
||||||
Once you do that, you can create a `KeycloakAuthorization` instance as follows:
|
Once you do that, you can create a `KeycloakAuthorization` instance as follows:
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,4 @@ This permission is a <<fake/../../permission/create-resource.adoc#_permission_cr
|
||||||
You can change the default configuration by removing the default resource, policy, or permission definitions and creating your own.
|
You can change the default configuration by removing the default resource, policy, or permission definitions and creating your own.
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
The default configuration defines a resource that maps to all paths in your application. If you are about to write permissions to your own resources, be sure
|
The default configuration defines a resource that maps to all paths in your application. If you are about to write permissions to your own resources, be sure to remove the *Default Resource* or change its ```URI``` field to a more specific path in your application. Otherwise, the policy associated with the default resource (which by default always grants access) will allow {{book.project.name}} to grant access to any protected resource.
|
||||||
to remove the *Default Resource* or change its ```URI``` field to a more specific path in your application. Otherwise, the policy associated with the default resource (which by default is always granting access)
|
|
||||||
will make Keycloak grant access to any protected resource.
|
|
||||||
|
|
Loading…
Reference in a new issue