Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rbac-api-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rbac-api-client

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

rbac-api-client

RBACApiClient - the Ruby gem for the Role Based Access Control

The API for Role Based Access Control.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build rbac-api-client.gemspec

Then either install the gem locally:

gem install ./rbac-api-client-1.0.0.gem

(for development, run gem install --dev ./rbac-api-client-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'rbac-api-client', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'rbac-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'rbac-api-client'

# Setup authorization
RBACApiClient.configure do |config|
  # Configure HTTP basic authorization: basic_auth
  config.username = 'YOUR_USERNAME'
  config.password = 'YOUR_PASSWORD'
end

api_instance = RBACApiClient::AccessApi.new
application = 'application_example' # String | The application name to obtain access for the principal
opts = {
  username: 'username_example', # String | Unique username of the principal to obtain access for (only available for admins, and if supplied, takes precedence over the identity header).
  limit: 10, # Integer | Parameter for selecting the amount of data returned.
  offset: 0 # Integer | Parameter for selecting the offset of data.
}

begin
  #Get the permitted access for a principal in the tenant (defaults to principal from the identity header)
  result = api_instance.get_principal_access(application, opts)
  p result
rescue RBACApiClient::ApiError => e
  puts "Exception when calling AccessApi->get_principal_access: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://localhost/api/rbac/v1

ClassMethodHTTP requestDescription
RBACApiClient::AccessApiget_principal_accessGET /access/Get the permitted access for a principal in the tenant (defaults to principal from the identity header)
RBACApiClient::GroupApiadd_principal_to_groupPOST /groups/{uuid}/principals/Add a principal to a group in the tenant
RBACApiClient::GroupApiadd_role_to_groupPOST /groups/{uuid}/roles/Add a role to a group in the tenant
RBACApiClient::GroupApicreate_groupPOST /groups/Create a group in a tenant
RBACApiClient::GroupApidelete_groupDELETE /groups/{uuid}/Delete a group in the tenant
RBACApiClient::GroupApidelete_principal_from_groupDELETE /groups/{uuid}/principals/Remove a principal from a group in the tenant
RBACApiClient::GroupApidelete_role_from_groupDELETE /groups/{uuid}/roles/Remove a role from a group in the tenant
RBACApiClient::GroupApiget_groupGET /groups/{uuid}/Get a group in the tenant
RBACApiClient::GroupApiget_principals_from_groupGET /groups/{uuid}/principals/Get a list of principals from a group in the tenant
RBACApiClient::GroupApilist_groupsGET /groups/List the groups for a tenant
RBACApiClient::GroupApilist_roles_for_groupGET /groups/{uuid}/roles/List the roles for a group in the tenant
RBACApiClient::GroupApiupdate_groupPUT /groups/{uuid}/Udate a group in the tenant
RBACApiClient::PolicyApicreate_policiesPOST /policies/Create a policy in a tenant
RBACApiClient::PolicyApidelete_policyDELETE /policies/{uuid}/Delete a policy in the tenant
RBACApiClient::PolicyApiget_policyGET /policies/{uuid}/Get a policy in the tenant
RBACApiClient::PolicyApilist_policiesGET /policies/List the policies in the tenant
RBACApiClient::PolicyApiupdate_policyPUT /policies/{uuid}/Update a policy in the tenant
RBACApiClient::PrincipalApilist_principalsGET /principals/List the principals for a tenant
RBACApiClient::RoleApicreate_rolesPOST /roles/Create a roles for a tenant
RBACApiClient::RoleApidelete_roleDELETE /roles/{uuid}/Delete a role in the tenant
RBACApiClient::RoleApiget_roleGET /roles/{uuid}/Get a role in the tenant
RBACApiClient::RoleApiget_role_accessGET /roles/{uuid}/access/Get access for a role in the tenant
RBACApiClient::RoleApilist_rolesGET /roles/List the roles for a tenant
RBACApiClient::RoleApiupdate_rolePUT /roles/{uuid}/Update a Role in the tenant
RBACApiClient::StatusApiget_statusGET /status/Obtain server status

Documentation for Models

Documentation for Authorization

basic_auth

  • Type: HTTP basic authentication

FAQs

Package last updated on 13 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc