All Projects → activeadmin-plugins → active_admin_role

activeadmin-plugins / active_admin_role

Licence: MIT license
Role based authorization with CanCanCan for Active Admin

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to active admin role

activeadmin active resource
Active Admin + Active Resource: to use a REST API in place of a local database as data source
Stars: ✭ 20 (-62.26%)
Mutual labels:  activeadmin, activeadmin-plugin
activeadmin medium editor
Medium Editor for ActiveAdmin
Stars: ✭ 26 (-50.94%)
Mutual labels:  activeadmin, activeadmin-plugin
Cancancan
The authorization Gem for Ruby on Rails.
Stars: ✭ 5,046 (+9420.75%)
Mutual labels:  authorization, cancancan
graphql authorize
Authorization helpers for ruby-graphql fields
Stars: ✭ 23 (-56.6%)
Mutual labels:  authorization, cancancan
gotrue
A JWT based API for managing users and issuing JWT tokens
Stars: ✭ 325 (+513.21%)
Mutual labels:  authorization
deflek
index and API RBAC for Elasticsearch and Kibana via reverse proxy. DEPRECATED
Stars: ✭ 13 (-75.47%)
Mutual labels:  authorization
raider
OWASP Raider: a novel framework for manipulating the HTTP processes of persistent sessions
Stars: ✭ 88 (+66.04%)
Mutual labels:  authorization
firebase-spring-boot-rest-api-authentication
Firebase Spring Boot Rest API Authentication
Stars: ✭ 172 (+224.53%)
Mutual labels:  authorization
pundit kit
Extension for pundit which allows to describe namespaces of policies in routes-like style
Stars: ✭ 12 (-77.36%)
Mutual labels:  authorization
MovieGo
A Website implemented using MERN (MongoDB, ExpressJS, ReactJS and NodeJS) stack, which allows users to sign-in/register and book movie tickets online.
Stars: ✭ 26 (-50.94%)
Mutual labels:  authorization
gothic
🦇 Gothic is a user registration and authentication SWT/JWT microservice. It supports REST, gRPC, and gRPC Web API, reCAPTCHA & a variety of DBs with Gorm.
Stars: ✭ 65 (+22.64%)
Mutual labels:  authorization
aiohttp-login
Registration and authorization (including social) for aiohttp apps.
Stars: ✭ 53 (+0%)
Mutual labels:  authorization
dart-casbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Dart/Flutter
Stars: ✭ 30 (-43.4%)
Mutual labels:  authorization
react-jwt-auth
React JWT Authentication & Authorization example - React.js Login and Registration example
Stars: ✭ 307 (+479.25%)
Mutual labels:  authorization
authorizer
Your data, your control. Fully open source, authentication and authorization. No lock-ins. Deployment in Railway in 120 seconds || Spin a docker image as a micro-service in your infra. Built in login page and Admin panel out of the box.
Stars: ✭ 770 (+1352.83%)
Mutual labels:  authorization
auth
🔑 Laravel Authentication package with built-in two-factor (Authy) and social authentication (Socialite).
Stars: ✭ 39 (-26.42%)
Mutual labels:  authorization
react-redux-jwt-auth
React Redux: Token Authentication example with JWT, React Router, Axios, Thunk Middleware
Stars: ✭ 86 (+62.26%)
Mutual labels:  authorization
authorize-me
Authorization with social networks
Stars: ✭ 44 (-16.98%)
Mutual labels:  authorization
macaroon
Rust implementation of macaroons.
Stars: ✭ 16 (-69.81%)
Mutual labels:  authorization
hapi-doorkeeper
User authentication for web servers
Stars: ✭ 14 (-73.58%)
Mutual labels:  authorization

ActiveAdminRole

CAUTION: Sorry, this gem is not maintained now. I'm looking for maintainer has motivation for apps using ActiveAdmin. Please somebody help me. See more

Role based authorization with CanCanCan for Active Admin

Installation

Add this line to your application's Gemfile:

gem 'active_admin_role'

And run bundle

Dependencies

  • rails (>= 5.0.0)
  • activeadmin (>= 1.2.0)
  • cancancan (>= 1.15.0)

Sample application

https://github.com/activeadmin-plugins/active_admin_role_sample

Usage

  1. Run this command after rails generate active_admin:install:
$ bin/rails generate active_admin_role:install
  create  config/initializers/active_admin_role.rb
  insert  app/models/admin_user.rb
  create  db/migrate/20161128090641_add_role_to_admin_users.rb
  create  db/migrate/20161128090642_create_active_admin_managed_resources.rb
  create  db/migrate/20161128090643_create_active_admin_permissions.rb
  create  app/models/ability.rb
    gsub  config/initializers/active_admin.rb
  create  app/admin/permissions.rb
  insert  app/admin/admin_users.rb

$ bin/rails db:migrate
  1. You have to login as admin after migration.

  2. You have to Reload permissions.

  1. Edit permissions however you like.

  1. Of course, you can edit AdminUser's roles.

Configuration

ActiveAdminRole.configure do |config|
  # [Required:Hash]
  # == Role | default: { guest: 0, support: 1, staff: 2, manager: 3, admin: 99 }
  config.roles = { guest: 0, support: 1, staff: 2, manager: 3, admin: 99 }

  # [Optional:Array]
  # == Special roles which don't need to manage on database
  config.super_user_roles = [:admin]
  config.guest_user_roles = [:guest]

  # [Optional:String]
  # == User class name | default: 'AdminUser'
  config.user_class_name = "AdminUser"

  # [Optional:Symbol]
  # == Default permission | default: :cannot
  config.default_state = :cannot
end

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].