This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-Casbin.NET.git
The following commit(s) were added to refs/heads/master by this push:
new 9e54c68 docs: update repo and website URLs
9e54c68 is described below
commit 9e54c68058fcc25d1b00162827d8c10bcbc280cf
Author: Yang Luo <[email protected]>
AuthorDate: Sat Aug 15 22:44:10 2026 +0800
docs: update repo and website URLs
---
Casbin.UnitTests/Fixtures/TestModelFixture.cs | 22 +++++------
Casbin/Casbin.csproj | 4 +-
INCREMENTAL_FILTERED_POLICY.md | 4 +-
README.md | 54 +++++++++++++--------------
4 files changed, 42 insertions(+), 42 deletions(-)
diff --git a/Casbin.UnitTests/Fixtures/TestModelFixture.cs
b/Casbin.UnitTests/Fixtures/TestModelFixture.cs
index 6cb4f60..47a3829 100644
--- a/Casbin.UnitTests/Fixtures/TestModelFixture.cs
+++ b/Casbin.UnitTests/Fixtures/TestModelFixture.cs
@@ -61,48 +61,48 @@ public class TestModelFixture
public static readonly string KeyMatchModelText =
ReadTestFile("keymatch_model.conf");
public static readonly string KeyMatchPolicyText =
ReadTestFile("keymatch_policy.csv");
- //https://github.com/casbin/Casbin.NET/issues/310
+ //https://github.com/apache/casbin-Casbin.NET/issues/310
public static readonly string CommaAndQuotationsModelText =
ReadTestFile("comma_quotations_model.conf");
public static readonly string CommaAndQuotationsPolicyText =
ReadTestFile("comma_quotations_policy.csv");
- // https://github.com/casbin/Casbin.NET/issues/134
+ // https://github.com/apache/casbin-Casbin.NET/issues/134
public static readonly string MultipleTypeModelText =
ReadTestFile("multiple_type_model.conf");
public static readonly string MultipleTypePolicyText =
ReadTestFile("multiple_type_policy.csv");
- // https://github.com/casbin/Casbin.NET/issues/106
+ // https://github.com/apache/casbin-Casbin.NET/issues/106
public static readonly string RbacMultipleEvalModelText =
ReadTestFile("rbac_multiple_eval_model.conf");
public static readonly string RbacMultipleEvalPolicyText =
ReadTestFile("rbac_multiple_eval_policy.csv");
- // https://github.com/casbin/Casbin.NET/issues/154
+ // https://github.com/apache/casbin-Casbin.NET/issues/154
public static readonly string RbacMultipleModelText =
ReadTestFile("rbac_multiple_rolemanager_model.conf");
public static readonly string RbacMultiplePolicyText =
ReadTestFile("rbac_multiple_rolemanager_policy.csv");
- // https://github.com/casbin/Casbin.NET/issues/188
+ // https://github.com/apache/casbin-Casbin.NET/issues/188
public static readonly string PriorityExplicitDenyOverrideModelText =
ReadTestFile("priority_explicit_deny_override_model.conf");
public static readonly string PriorityExplicitDenyOverridePolicyText =
ReadTestFile("priority_explicit_deny_override_policy.csv");
- // https://github.com/casbin/Casbin.NET/issues/229
+ // https://github.com/apache/casbin-Casbin.NET/issues/229
public static readonly string SupportCountModelText =
ReadTestFile("support_count_model.conf");
- // https://github.com/casbin/Casbin.NET/issues/308
+ // https://github.com/apache/casbin-Casbin.NET/issues/308
public static readonly string RbacTokensWithSubstringRelationModelText =
ReadTestFile("tokens_with_substring_relation_rbac.conf");
public static readonly string RbacTokensWithSubstringRelationPolicyText =
ReadTestFile("tokens_with_substring_relation_rbac.csv");
public static readonly string AbacTokensWithSubstringRelationModelText =
ReadTestFile("tokens_with_substring_relation_abac.conf");
public static readonly string AbacTokensWithSubstringRelationPolicyText =
ReadTestFile("tokens_with_substring_relation_abac.csv");
- // https://github.com/casbin/Casbin.NET/issues/321
+ // https://github.com/apache/casbin-Casbin.NET/issues/321
public static readonly string BackslashLineFeedModelText =
ReadTestFile("backslash_feed_model.conf");
public static readonly string BackslashLineFeedPolicyText =
ReadTestFile("backslash_feed_policy.csv");
- // https://github.com/casbin/Casbin.NET/issues/353
+ // https://github.com/apache/casbin-Casbin.NET/issues/353
public static readonly string RbacWithIndexMatcherModelText =
ReadTestFile("rbac_with_index_matcher_model.conf");
public static readonly string RbacWithIndexMatcherPolicyText =
ReadTestFile("rbac_with_index_matcher_policy.csv");
- // https://github.com/casbin/Casbin.NET/issues/354
+ // https://github.com/apache/casbin-Casbin.NET/issues/354
public static readonly string AbacWithDynamicValueTypeModelText =
ReadTestFile("abac_with_dynamic_value_type_model.conf");
public static readonly string AbacWithDynamicValueTypePolicyText =
ReadTestFile("abac_with_dynamic_value_type_policy.csv");
- // https://github.com/casbin/Casbin.NET/issues/364
+ // https://github.com/apache/casbin-Casbin.NET/issues/364
public static readonly string AbacNotUsingPolicyModelText =
ReadTestFile("abac_not_using_policy_model.conf");
public static readonly string AbacRuleEffectPolicyText =
ReadTestFile("abac_rule_effect_policy.csv");
public static readonly string AbacRuleModelText =
ReadTestFile("abac_rule_model.conf");
diff --git a/Casbin/Casbin.csproj b/Casbin/Casbin.csproj
index 8d4ca27..7bff666 100644
--- a/Casbin/Casbin.csproj
+++ b/Casbin/Casbin.csproj
@@ -17,8 +17,8 @@
<RepositoryType>GIT</RepositoryType>
<Copyright>Apache License 2.0</Copyright>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
- <RepositoryUrl>https://github.com/casbin/Casbin.NET</RepositoryUrl>
- <PackageProjectUrl>https://github.com/casbin/Casbin.NET</PackageProjectUrl>
+ <RepositoryUrl>https://github.com/apache/casbin-Casbin.NET</RepositoryUrl>
+
<PackageProjectUrl>https://github.com/apache/casbin-Casbin.NET</PackageProjectUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
diff --git a/INCREMENTAL_FILTERED_POLICY.md b/INCREMENTAL_FILTERED_POLICY.md
index 8743710..9295bac 100644
--- a/INCREMENTAL_FILTERED_POLICY.md
+++ b/INCREMENTAL_FILTERED_POLICY.md
@@ -118,5 +118,5 @@ new PolicyFilter(PermConstants.DefaultPolicyType, 1,
Policy.ValuesFrom(new[] { "
## Related Documentation
-- [Casbin Policy Subset
Loading](https://casbin.org/docs/policy-subset-loading/)
-- [Casbin Adapters](https://casbin.org/docs/adapters)
+- [Casbin Policy Subset
Loading](https://casbin.apache.org/docs/policy-subset-loading/)
+- [Casbin Adapters](https://casbin.apache.org/docs/adapters)
diff --git a/README.md b/README.md
index bc99f4c..1d79099 100644
--- a/README.md
+++ b/README.md
@@ -7,20 +7,20 @@
[](https://www.nuget.org/packages/Casbin.NET/)
[](https://discord.gg/S5UjpzGZjN)
-**News**: still worry about how to write the correct Casbin policy? `Casbin
online editor` is coming to help! Try it at: http://casbin.org/editor/
+**News**: still worry about how to write the correct Casbin policy? `Casbin
online editor` is coming to help! Try it at: https://casbin.apache.org/editor/
Casbin.NET is a powerful and efficient open-source access control library for
[.NET (C#)](https://dotnet.microsoft.com/) projects. It provides support for
enforcing authorization based on various [access control
models](https://en.wikipedia.org/wiki/Computer_security_model).
## All the languages supported by Casbin:
-|
[](https://github.com/casbin/casbin)
|
[](https://github.com/casbin/jcasbin)
|
[](https://github.com/casbin/node-casbin)
|
[](https://github.com/php
[...]
+|
[](https://github.com/apache/casbin)
|
[](https://github.com/apache/casbin-jcasbin)
|
[](https://github.com/apache/casbin-node-casbin)
| [ |
[jCasbin](https://github.com/casbin/jcasbin) |
[node-Casbin](https://github.com/casbin/node-casbin) |
[PHP-Casbin](https://github.com/php-casbin/php-casbin) |
+| [Casbin](https://github.com/apache/casbin) |
[jCasbin](https://github.com/apache/casbin-jcasbin) |
[node-Casbin](https://github.com/apache/casbin-node-casbin) |
[PHP-Casbin](https://github.com/php-casbin/php-casbin) |
| production-ready |
production-ready | production-ready
| production-ready
|
-|
[](https://github.com/casbin/pycasbin)
|
[](https://github.com/apache/casbin-Casbin.NET)
|
[](https://github.com/casbin4d/Casbin4D)
|
[](https
[...]
+|
[](https://github.com/apache/casbin-pycasbin)
|
[](https://github.com/apache/casbin-Casbin.NET)
|
[](https://github.com/casbin4d/Casbin4D)
| [ |
[Casbin.NET](https://github.com/apache/casbin-Casbin.NET) |
[Casbin4D](https://github.com/casbin4d/Casbin4D) |
[Casbin-RS](https://github.com/casbin/casbin-rs) |
+| [PyCasbin](https://github.com/apache/casbin-pycasbin) |
[Casbin.NET](https://github.com/apache/casbin-Casbin.NET) |
[Casbin4D](https://github.com/casbin4d/Casbin4D) |
[Casbin-RS](https://github.com/apache/casbin-rs) |
| production-ready |
production-ready | experimental
| production-ready
|
## Table of contents
@@ -137,15 +137,15 @@ dotnet add package Casbin.NET
## Documentation
-https://casbin.org/docs/overview
+https://casbin.apache.org/docs/overview
## Online editor
-You can also use the online editor (http://casbin.org/editor/) to write your
Casbin model and policy in your web browser. It provides functionality such as
`syntax highlighting` and `code completion`, just like an IDE for a programming
language.
+You can also use the online editor (https://casbin.apache.org/editor/) to
write your Casbin model and policy in your web browser. It provides
functionality such as `syntax highlighting` and `code completion`, just like an
IDE for a programming language.
## Tutorials
-https://casbin.org/docs/tutorials
+https://casbin.apache.org/docs/tutorials
## Get started
@@ -185,8 +185,8 @@ See [Policy management APIs](#policy-management) for more
usage.
Casbin provides two sets of APIs to manage permissions:
-- [Management
API](https://github.com/casbin/casbin/blob/master/management_api.go): the
primitive API that provides full support for Casbin policy management. See
[here](https://github.com/casbin/casbin/blob/master/management_api_test.go) for
examples.
-- [RBAC API](https://github.com/casbin/casbin/blob/master/rbac_api.go): a more
friendly API for RBAC. This API is a subset of Management API. The RBAC users
could use this API to simplify the code. See
[here](https://github.com/casbin/casbin/blob/master/rbac_api_test.go) for
examples.
+- [Management
API](https://github.com/apache/casbin/blob/master/management_api.go): the
primitive API that provides full support for Casbin policy management. See
[here](https://github.com/apache/casbin/blob/master/management_api_test.go) for
examples.
+- [RBAC API](https://github.com/apache/casbin/blob/master/rbac_api.go): a more
friendly API for RBAC. This API is a subset of Management API. The RBAC users
could use this API to simplify the code. See
[here](https://github.com/apache/casbin/blob/master/rbac_api_test.go) for
examples.
We also provide a web-based UI for model management and policy management:
@@ -196,43 +196,43 @@ We also provide a web-based UI for model management and
policy management:
## Policy persistence
-https://casbin.org/docs/adapters
+https://casbin.apache.org/docs/adapters
## Policy consistence between multiple nodes
-https://casbin.org/docs/watchers
+https://casbin.apache.org/docs/watchers
## Role manager
-https://casbin.org/docs/role-managers
+https://casbin.apache.org/docs/role-managers
## Benchmarks
-https://casbin.org/docs/benchmark
+https://casbin.apache.org/docs/benchmark
## Examples
| Model | Model file
| Policy file
|
| ------------------------- |
--------------------------------------------------------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------------------------------------------------------
|
-| ACL |
[basic_model.conf](https://github.com/casbin/casbin/blob/master/examples/basic_model.conf)
|
[basic_policy.csv](https://github.com/casbin/casbin/blob/master/examples/basic_policy.csv)
|
-| ACL with superuser |
[basic_model_with_root.conf](https://github.com/casbin/casbin/blob/master/examples/basic_with_root_model.conf)
|
[basic_policy.csv](https://github.com/casbin/casbin/blob/master/examples/basic_policy.csv)
|
-| ACL without users |
[basic_model_without_users.conf](https://github.com/casbin/casbin/blob/master/examples/basic_without_users_model.conf)
|
[basic_policy_without_users.csv](https://github.com/casbin/casbin/blob/master/examples/basic_without_users_policy.csv)
|
-| ACL without resources |
[basic_model_without_resources.conf](https://github.com/casbin/casbin/blob/master/examples/basic_without_resources_model.conf)
|
[basic_policy_without_resources.csv](https://github.com/casbin/casbin/blob/master/examples/basic_without_resources_policy.csv)
|
-| RBAC |
[rbac_model.conf](https://github.com/casbin/casbin/blob/master/examples/rbac_model.conf)
|
[rbac_policy.csv](https://github.com/casbin/casbin/blob/master/examples/rbac_policy.csv)
|
-| RBAC with resource roles |
[rbac_model_with_resource_roles.conf](https://github.com/casbin/casbin/blob/master/examples/rbac_with_resource_roles_model.conf)
|
[rbac_policy_with_resource_roles.csv](https://github.com/casbin/casbin/blob/master/examples/rbac_with_resource_roles_policy.csv)
|
-| RBAC with domains/tenants |
[rbac_model_with_domains.conf](https://github.com/casbin/casbin/blob/master/examples/rbac_with_domains_model.conf)
|
[rbac_policy_with_domains.csv](https://github.com/casbin/casbin/blob/master/examples/rbac_with_domains_policy.csv)
|
-| ABAC |
[abac_model.conf](https://github.com/casbin/casbin/blob/master/examples/abac_model.conf)
| N/A
|
-| RESTful |
[keymatch_model.conf](https://github.com/casbin/casbin/blob/master/examples/keymatch_model.conf)
|
[keymatch_policy.csv](https://github.com/casbin/casbin/blob/master/examples/keymatch_policy.csv)
|
-| Deny-override |
[rbac_model_with_deny.conf](https://github.com/casbin/casbin/blob/master/examples/rbac_with_deny_model.conf)
|
[rbac_policy_with_deny.csv](https://github.com/casbin/casbin/blob/master/examples/rbac_with_deny_policy.csv)
|
-| Priority |
[priority_model.conf](https://github.com/casbin/casbin/blob/master/examples/priority_model.conf)
|
[priority_policy.csv](https://github.com/casbin/casbin/blob/master/examples/priority_policy.csv)
|
+| ACL |
[basic_model.conf](https://github.com/apache/casbin/blob/master/examples/basic_model.conf)
|
[basic_policy.csv](https://github.com/apache/casbin/blob/master/examples/basic_policy.csv)
|
+| ACL with superuser |
[basic_model_with_root.conf](https://github.com/apache/casbin/blob/master/examples/basic_with_root_model.conf)
|
[basic_policy.csv](https://github.com/apache/casbin/blob/master/examples/basic_policy.csv)
|
+| ACL without users |
[basic_model_without_users.conf](https://github.com/apache/casbin/blob/master/examples/basic_without_users_model.conf)
|
[basic_policy_without_users.csv](https://github.com/apache/casbin/blob/master/examples/basic_without_users_policy.csv)
|
+| ACL without resources |
[basic_model_without_resources.conf](https://github.com/apache/casbin/blob/master/examples/basic_without_resources_model.conf)
|
[basic_policy_without_resources.csv](https://github.com/apache/casbin/blob/master/examples/basic_without_resources_policy.csv)
|
+| RBAC |
[rbac_model.conf](https://github.com/apache/casbin/blob/master/examples/rbac_model.conf)
|
[rbac_policy.csv](https://github.com/apache/casbin/blob/master/examples/rbac_policy.csv)
|
+| RBAC with resource roles |
[rbac_model_with_resource_roles.conf](https://github.com/apache/casbin/blob/master/examples/rbac_with_resource_roles_model.conf)
|
[rbac_policy_with_resource_roles.csv](https://github.com/apache/casbin/blob/master/examples/rbac_with_resource_roles_policy.csv)
|
+| RBAC with domains/tenants |
[rbac_model_with_domains.conf](https://github.com/apache/casbin/blob/master/examples/rbac_with_domains_model.conf)
|
[rbac_policy_with_domains.csv](https://github.com/apache/casbin/blob/master/examples/rbac_with_domains_policy.csv)
|
+| ABAC |
[abac_model.conf](https://github.com/apache/casbin/blob/master/examples/abac_model.conf)
| N/A
|
+| RESTful |
[keymatch_model.conf](https://github.com/apache/casbin/blob/master/examples/keymatch_model.conf)
|
[keymatch_policy.csv](https://github.com/apache/casbin/blob/master/examples/keymatch_policy.csv)
|
+| Deny-override |
[rbac_model_with_deny.conf](https://github.com/apache/casbin/blob/master/examples/rbac_with_deny_model.conf)
|
[rbac_policy_with_deny.csv](https://github.com/apache/casbin/blob/master/examples/rbac_with_deny_policy.csv)
|
+| Priority |
[priority_model.conf](https://github.com/apache/casbin/blob/master/examples/priority_model.conf)
|
[priority_policy.csv](https://github.com/apache/casbin/blob/master/examples/priority_policy.csv)
|
## Middlewares
-Authz middlewares for web frameworks: https://casbin.org/docs/middlewares
+Authz middlewares for web frameworks:
https://casbin.apache.org/docs/middlewares
## Our adopters
-https://casbin.org/docs/adopters
+https://casbin.apache.org/docs/adopters
## Contributors
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]