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

masks

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

masks

  • 0.4.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

masks

masks is a general purpose access control framework for ruby/rails.

Getting started

To use it, add masks to your Gemfile or run:

bundle add masks

Then run the install generator:

rails generate masks:install

A typical install creates a masks.json, an initializer, and migrations. After running the generator your app will be able to use masks' signup, login, and account management features. Every route in your app will be protected by login by default.

Documentation

Full documentation is available at masks.geiger.to.

How it works

At the heart of masks are a few key concepts:

  • Masks are rules that define access to resources in your application
  • Actors access resources via sessions (if allowed by the mask)
  • Sessions keep track of attempts to access resources
  • Credentials identify and check actors' access using session data

masks implements most of the glue code required to build actors, open sessions, and check credentials, leaving your application to defining the masks required for it to function. typically all you need is a masks.json file, but you can also build custom credentials, checks, models, and more...

an example masks.json
{
  "name": "example",
  "url": "http://example.com",
  "logo": "...",
  "extend": "masks"
}

FAQs

Package last updated on 11 Apr 2024

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