Deployed site: https://waf.casbin.com/
CasWAF contains 2 parts:
Name | Description | Language | Source code |
---|---|---|---|
Frontend | Web frontend UI for CasWAF | Javascript + React | https://github.com/casbin/caswaf/tree/master/web |
Backend | RESTful API backend for CAsWAF | Golang + Beego + MySQL | https://github.com/casbin/caswaf |
CasWAF uses Casdoor to manage members. So you need to create an organization and an application for CasWAF in a Casdoor instance.
go get github.com/casbin/casdoor
go get github.com/casbin/caswaf
or
git clone https://github.com/casbin/casdoor
git clone https://github.com/casbin/caswaf
CasWAF will store its users, nodes and topics informations in a MySQL database named: caswaf
, will create it if not existed. The DB connection string can be specified at: https://github.com/casbin/caswaf/blob/master/conf/app.conf
dataSourceName = root:123@tcp(localhost:3306)/
CasWAF uses XORM to connect to DB, so all DBs supported by XORM can also be used.
After creating an organization and an application for CasWAF in a Casdoor, you need to update clientID
, clientSecret
, casdoorOrganization
and casdoorApplication
in app.conf.
- Configure and run CasWAF by yourself. If you want to learn more about caswaf.
- Open browser: http://localhost:16001/
CasWAF uses Casdoor to manage members. If you want to log in with oauth, you should see casdoor oauth configuration.
CasWAF uses Casdoor to upload files to cloud storage, send Emails and send SMSs. See Casdoor for more details.
For CasWAF, if you have any questions, you can give Issues, or you can also directly start Pull Requests(but we recommend giving issues first to communicate with the community).