Casbin adapter implementation for Minio/AWS S3 storage

Clone this repo:
  1. 5e9b361 travis config fixed by AleF83 · 8 years ago master
  2. 89ff128 Enforcer test improved by AleF83 · 8 years ago
  3. 5e8fcc1 bug fixed by AleF83 · 8 years ago
  4. 03dae99 tests improved by AleF83 · 8 years ago
  5. 846ba08 buffer used instead of pipe + tests improved by AleF83 · 8 years ago

casbin-minio-adapter

License: MIT Go Report Card Build Status Coverage Status Godoc

Casbin adapter implementation using Minio/AWS S3 policy storage

Installation

go get github.com/Soluto/casbin-minio-adapter

Usage

import (
    minioadapter "github.com/Soluto/casbin-minio-adapter"
    "github.com/casbin/casbin"
)

func main() {

    adapter, _ := minioadapter.NewAdapter("http://minio-endpoint", "accessKey", "secretKey", false, "casbin-bucker", "policy.csv")

    enforcer := casbin.NewSyncedEnforcer("rbac_model.conf", adapter)

}

Related pojects

Additional Usage Examples

For real-world example visit Tweek.

License

This project is under MIT License. See the LICENSE file for the full license text.