flâneur — a map of the web's best reading

Casdoor Permission

casdoor.org · 412 words · saved by 1 readers

All users associated with a single Casdoor organization share access to the organization's applications. However, there may be instances where you want to restrict user access to certain applications or specific resources within an application. In such cases, you can utilize the Permission feature provided by Casbin. Before delving deeper into the topic, it is important to have a basic understanding of how Casbin works and its related concepts, such as Models, Policies, and Adapters. In a nutshell, a Model defines the structure of your permission policies and the criteria for matching requests against these policies and their outcomes. A Policy, on the other hand, describes the specific permission rules. Once Casbin has the necessary Model and Policy information, it can enforce permission control on incoming requests. Acting as an abstraction layer, an Adapter shields Casbin's executor from the source of the Policy, allowing the storage of Policies in various locations like files or da

On this page Introduction ​ Users in a Casdoor organization can access that organization’s applications by default. When you need to restrict access to specific applications or resources, use the Permission feature powered by Casbin . Casbin concepts ​ To use permissions effectively, it helps to understand how Casbin works: Model : Defines the structure of your permission policies and how requests are matched and evaluated. Configure models on the Models page in Casdoor. Policy : Defines concrete permission rules (who can do what on which resources). Configure policies on the Permissions page

Explore this link on the map →

related reading