Vai al contenuto principale

Plugins Overview

Overview

Casbin provides a rich ecosystem of plugins and extensions that enhance its core functionality. These plugins allow you to integrate Casbin with various storage systems, frameworks, and platforms.

Plugin Categories

Casbin's plugin ecosystem includes several categories:

  • Enforcers: Specialized enforcers for different use cases and environments
  • Adapters: Connect Casbin to various storage backends (databases, files, cloud services)
  • Watchers: Enable policy synchronization across distributed systems
  • Dispatchers: Manage policy updates in distributed environments
  • Role Managers: Custom role management implementations for specific scenarios
  • Middlewares: Integration with web frameworks and platforms

Why Use Plugins?

Plugins extend Casbin's capabilities by:

  • Integrating with your existing infrastructure
  • Supporting distributed and multi-instance deployments
  • Providing framework-specific integrations
  • Enabling cloud-native deployments

Getting Started

To use a plugin:

  1. Choose the appropriate plugin for your use case
  2. Install the plugin package for your programming language
  3. Configure the plugin in your Casbin setup
  4. Follow the plugin-specific documentation for advanced features

Explore the subsections in this category to learn more about each type of plugin and find the right one for your needs.