Fix incorrect source format
This commit is contained in:
parent
5519fe7bc0
commit
1e6f6c8794
1 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ The ```keycloak-authz.js``` library provides an `entitlement` function that you
|
|||
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
|
||||
```json
|
||||
```javascript
|
||||
authorization.entitlement('my-resource-server-id').then(function (rpt) {
|
||||
// onGrant callback function.
|
||||
// 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
|
||||
```json
|
||||
```javascript
|
||||
authorization.entitlement('my-resource-server', {
|
||||
"permissions": [
|
||||
{
|
||||
|
@ -144,4 +144,4 @@ If you have already obtained an RPT using any of the authorization functions pro
|
|||
|
||||
```javascript
|
||||
var rpt = authorization.rpt;
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue