Skip to content

3pns/omniperm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circle CI

OmniPerm

About

With Omniperm you can centralize your authorization strategies in a YAML file against a configurable context

Install

Install for Ruby on Rails applications

rails g omniperm:install

How to use

Manually authorize a method

def my_method
  service_authorized?
end

Authorize all methods of a class and its children

class MyService < Omniperm::AuthorizationRequired

  def do_something
  end

  def do_another_thing
  end
end

class MySubService < MyService

  def do_something
  end

  def do_another_thing
  end
end

About

centralized context based authorization - extracted from an enterprise project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages