Categorygithub.com/casbin/graphql-authz
modulepackage
1.0.0
Repository: https://github.com/casbin/graphql-authz.git
Documentation: pkg.go.dev

# README

graphql-authz

Coverage StatusGoReleaseGo Report Card

graphql-authz is a casbin binding of graphql, something like restful api. There're actions, like enforce, getPolicies, addPolicy, removePolicy, updatePolicy.

Install

go get -u github.com/casbin/graphql-authz

Usage

Enforce Example:

e, _ := casbin.NewEnforcer("./examples/model.conf", "./examples/policy.csv")
schema := authz.InitType(e)
result := authz.Execute(`{enforce(sub:"alice" obj:"data1" act:"read"){sub obj act ok}}`, schema)

More info, please refer to graphql and basic usage

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author