@quarry-systems/node-bedrock-sdk
v0.7.0
Published
Official Node.js SDK for Bedrock authorization system
Maintainers
Readme
Bedrock Node.js SDK
Bedrock Node.js SDK is a client library for interacting with the Bedrock Authorization System. It simplifies communication with the Bedrock API, provides a more intuitive and convenient way to manage permissions, roles, and users within your application.
With Bedrock Node.js SDK you can easily manage permissions, roles, and users in your application. It includes a set of classes and methods to simplify the process of assigning permissions to roles, assigning roles to scopes, assigning roles to users, and checking if a subject has access to a specific permission.
This library is designed to work with the Bedrock authorization system, which is a flexible and scalable solution for managing permissions and roles in your application.
Installation
npm install @quarry-systems/node-bedrock-sdkUsage
import { BedrockClient } from "@quarry-systems/node-bedrock-sdk";
const bedrock = new BedrockClient({
baseUrl: "https://api.bedrock.com",
apiKey: "your-api-key",
});
const result = await bedrock.users.list();
console.log(result);Current Development Notes
- Looking to be able to do things like:
- bedrock.permission().assignToRole()
- bedrock.role.byName("").assignToScope()
- bedrock.role.byName("").assignToUser()
- bedrock.can.subjectByExternalId("").access('')
