├── .github ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── ci.yml ├── .gitignore ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── examples └── poem │ ├── base_example.rs │ ├── enum-role │ ├── Cargo.toml │ └── src │ │ ├── main.rs │ │ └── role.rs │ ├── jwt-auth │ ├── Cargo.toml │ └── src │ │ ├── claims.rs │ │ ├── jwt_middleware.rs │ │ └── main.rs │ └── openapi_example.rs ├── poem-grants ├── CHANGELOG.md ├── Cargo.toml ├── README.md ├── logo.png ├── src │ ├── error.rs │ ├── lib.rs │ ├── middleware.rs │ └── permissions │ │ ├── attache.rs │ │ ├── extractors.rs │ │ └── mod.rs └── tests │ ├── common.rs │ ├── permissions_check │ ├── manual_check │ │ ├── enum_type.rs │ │ ├── mod.rs │ │ └── string_type.rs │ └── mod.rs │ ├── proc_macro │ ├── different_fn_types.rs │ ├── mod.rs │ └── type_feature.rs │ └── tests.rs └── poem-proc-macro ├── Cargo.toml └── src ├── expand.rs └── lib.rs /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/README.md -------------------------------------------------------------------------------- /examples/poem/base_example.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/examples/poem/base_example.rs -------------------------------------------------------------------------------- /examples/poem/enum-role/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/examples/poem/enum-role/Cargo.toml -------------------------------------------------------------------------------- /examples/poem/enum-role/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/examples/poem/enum-role/src/main.rs -------------------------------------------------------------------------------- /examples/poem/enum-role/src/role.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/examples/poem/enum-role/src/role.rs -------------------------------------------------------------------------------- /examples/poem/jwt-auth/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/examples/poem/jwt-auth/Cargo.toml -------------------------------------------------------------------------------- /examples/poem/jwt-auth/src/claims.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/examples/poem/jwt-auth/src/claims.rs -------------------------------------------------------------------------------- /examples/poem/jwt-auth/src/jwt_middleware.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/examples/poem/jwt-auth/src/jwt_middleware.rs -------------------------------------------------------------------------------- /examples/poem/jwt-auth/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/examples/poem/jwt-auth/src/main.rs -------------------------------------------------------------------------------- /examples/poem/openapi_example.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/examples/poem/openapi_example.rs -------------------------------------------------------------------------------- /poem-grants/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/CHANGELOG.md -------------------------------------------------------------------------------- /poem-grants/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/Cargo.toml -------------------------------------------------------------------------------- /poem-grants/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/README.md -------------------------------------------------------------------------------- /poem-grants/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/logo.png -------------------------------------------------------------------------------- /poem-grants/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/src/error.rs -------------------------------------------------------------------------------- /poem-grants/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/src/lib.rs -------------------------------------------------------------------------------- /poem-grants/src/middleware.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/src/middleware.rs -------------------------------------------------------------------------------- /poem-grants/src/permissions/attache.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/src/permissions/attache.rs -------------------------------------------------------------------------------- /poem-grants/src/permissions/extractors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/src/permissions/extractors.rs -------------------------------------------------------------------------------- /poem-grants/src/permissions/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/src/permissions/mod.rs -------------------------------------------------------------------------------- /poem-grants/tests/common.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/tests/common.rs -------------------------------------------------------------------------------- /poem-grants/tests/permissions_check/manual_check/enum_type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/tests/permissions_check/manual_check/enum_type.rs -------------------------------------------------------------------------------- /poem-grants/tests/permissions_check/manual_check/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/tests/permissions_check/manual_check/mod.rs -------------------------------------------------------------------------------- /poem-grants/tests/permissions_check/manual_check/string_type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/tests/permissions_check/manual_check/string_type.rs -------------------------------------------------------------------------------- /poem-grants/tests/permissions_check/mod.rs: -------------------------------------------------------------------------------- 1 | mod manual_check; 2 | -------------------------------------------------------------------------------- /poem-grants/tests/proc_macro/different_fn_types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/tests/proc_macro/different_fn_types.rs -------------------------------------------------------------------------------- /poem-grants/tests/proc_macro/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/tests/proc_macro/mod.rs -------------------------------------------------------------------------------- /poem-grants/tests/proc_macro/type_feature.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/tests/proc_macro/type_feature.rs -------------------------------------------------------------------------------- /poem-grants/tests/tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-grants/tests/tests.rs -------------------------------------------------------------------------------- /poem-proc-macro/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-proc-macro/Cargo.toml -------------------------------------------------------------------------------- /poem-proc-macro/src/expand.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-proc-macro/src/expand.rs -------------------------------------------------------------------------------- /poem-proc-macro/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DDtKey/poem-grants/HEAD/poem-proc-macro/src/lib.rs --------------------------------------------------------------------------------