@aserto/aserto-spa-js
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "@aserto/aserto-spa-js", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Aserto single-page application javascript SDK", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepublishOnly": "cross-env NODE_ENV=production babel ./src --out-dir ./dist -s inline" | ||
}, | ||
@@ -13,2 +14,5 @@ "repository": { | ||
}, | ||
"files": [ | ||
"dist/*" | ||
], | ||
"keywords": [ | ||
@@ -19,3 +23,10 @@ "aserto", | ||
"author": "Aserto", | ||
"license": "Apache-2.0" | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.2.2", | ||
"@babel/preset-env": "^7.3.1", | ||
"@babel/preset-react": "^7.0.0", | ||
"cross-env": "5.2.0" | ||
} | ||
} |
@@ -63,2 +63,8 @@ # Aserto single-page application javascript SDK | ||
First, make sure that the service supports an authorization map endpoint - for example using the NodeJS Express middleware [express-jwt-aserto](https://github.com/aserto-dev/express-jwt-aserto). | ||
Once a service exposes the endpoint, you can call the `getAuthorizationMap()` function on the `AsertoClient` instance to retrieve the map. | ||
The following example adds an event handler to a button that retrieves the authorization map and logs it to the console: | ||
```html | ||
@@ -65,0 +71,0 @@ <button id="get-authz-map">Get AuthZ Map</button> |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18490
192
82
5
6
3