Fix incorrect source format

This commit is contained in:
Kohei Tamura 2019-05-28 17:03:20 +09:00 committed by Stian Thorgersen
parent 5519fe7bc0
commit 1e6f6c8794

View file

@ -71,7 +71,7 @@ The ```keycloak-authz.js``` library provides an `entitlement` function that you
the resources and scopes your client wants to access. the resources and scopes your client wants to access.
.Example about how to obtain an RPT with permissions for all resources and scopes the user can access .Example about how to obtain an RPT with permissions for all resources and scopes the user can access
```json ```javascript
authorization.entitlement('my-resource-server-id').then(function (rpt) { authorization.entitlement('my-resource-server-id').then(function (rpt) {
// onGrant callback function. // onGrant callback function.
// If authorization was successful you'll receive an RPT // If authorization was successful you'll receive an RPT
@ -80,7 +80,7 @@ authorization.entitlement('my-resource-server-id').then(function (rpt) {
``` ```
.Example about how to obtain an RPT with permissions for specific resources and scopes .Example about how to obtain an RPT with permissions for specific resources and scopes
```json ```javascript
authorization.entitlement('my-resource-server', { authorization.entitlement('my-resource-server', {
"permissions": [ "permissions": [
{ {
@ -144,4 +144,4 @@ If you have already obtained an RPT using any of the authorization functions pro
```javascript ```javascript
var rpt = authorization.rpt; var rpt = authorization.rpt;
``` ```