Skip to content
Casbin adapter implementation for Minio/AWS S3 storage
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.gitignore
.travis.yml
LICENSE
README.md
adapter.go
adapter_test.go

README.md

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.

You can’t perform that action at this time.