Skip to content

Casdoor SDK

Grow Codes CI License

One API for Casdoor in five languages: TypeScript, Rust, Go, Python and Java. Every package has the same functions, options, defaults, error codes and behaviour, tested against a real casbin/casdoor:v4.27.1 in Docker.

Language Package Coverage
TypeScript @grow-codes/casdoor TypeScript coverage
Rust grow-casdoor Rust coverage
Go github.com/grow-codes-packages/casdoor/go Go coverage
Python grow-casdoor Python coverage
Java codes.grow.packages:casdoor Java coverage

What you get

  • Client with health, authenticated ping and server version (Client).
  • Configuration from code or GROW_CASDOOR_* / vendor environment variables, immutable and validated (Configuration).
  • Retries with full-jitter backoff and Retry-After, connect/request/total timeouts and cancellation in every language.
  • Typed errors with one set of codes across languages (Error handling).
  • Redaction everywhere: credentials never appear in errors, logs, hooks or toString (Redaction).
  • Service functions for the Casdoor API (Functions).

Start with Install and the Quickstart.

Independent project

This SDK is made by Grow Codes. Casdoor is a trademark of its owner (Casdoor / Casbin organization); this project is not affiliated with or endorsed by it. See License & disclaimer.