Add explicit URL scheme assignments in tests for reliability

Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com>
1 file changed
tree: d90c323844b645135e408ce31f86fa299899c1b2
  1. .github/
  2. casdoor/
  3. certificate/
  4. conf/
  5. controllers/
  6. i18n/
  7. ip/
  8. object/
  9. proxy/
  10. routers/
  11. rule/
  12. run/
  13. service/
  14. storage/
  15. sync/
  16. util/
  17. web/
  18. .dockerignore
  19. .gitignore
  20. .releaserc.json
  21. docker-compose.yml
  22. Dockerfile
  23. go.mod
  24. go.sum
  25. LICENSE
  26. main.go
  27. README.md
README.md

Online demo

Documentation

https://caswaf.org

Architecture

CasWAF contains 2 parts:

NameDescriptionLanguageSource code
FrontendWeb frontend UI for CasWAFJavascript + Reacthttps://github.com/casbin/caswaf/tree/master/web
BackendRESTful API backend for CAsWAFGolang + Beego + MySQLhttps://github.com/casbin/caswaf

Installation

CasWAF uses Casdoor to manage members. So you need to create an organization and an application for CasWAF in a Casdoor instance.

Necessary configuration

Get the code

go get github.com/casdoor/casdoor
go get github.com/casbin/caswaf

or

git clone https://github.com/casdoor/casdoor
git clone https://github.com/casbin/caswaf

Setup database

CasWAF will store its users, nodes and topics information 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.

Configure Casdoor

After creating an organization and an application for CasWAF in a Casdoor, you need to update clientID, clientSecret, casdoorOrganization and casdoorApplication in app.conf.

Run CasWAF

Optional configuration

Setup your WAF to enable some third-party login platform

CasWAF uses Casdoor to manage members. If you want to log in with oauth, you should see casdoor oauth configuration.

OSS, Mail, and SMS services

CasWAF uses Casdoor to upload files to cloud storage, send Emails and send SMSs. See Casdoor for more details.

Contribute

For CasWAF, if you have any questions, you can open Issues, or you can also directly start Pull Requests(but we recommend opening issues first to communicate with the community).

License

Apache-2.0