We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8388b2b + ce3c6a1 commit 9ad7ea2Copy full SHA for 9ad7ea2
2 files changed
README.md
@@ -30,7 +30,7 @@ user = {
30
"alias": "ASH_KETCHUM",
31
"name": "Ash Ketchum",
32
"email": "ash@test.com",
33
- "roles": [],
+ "roles": ["pokemons:get"],
34
}
35
36
token = auth_manager.add_user(user)
@@ -39,7 +39,7 @@ token = auth_manager.add_user(user)
39
### Granting usage on a specific resource
40
41
```python
42
-auth_manager.add_role_to_user("ASH_KETCHUM", "pokemons:get")
+auth_manager.add_role_to_user("ASH_KETCHUM", "pokemons:post")
43
```
44
45
### Verifying requests authentication and authorization
pyproject.toml
@@ -1,6 +1,6 @@
1
[project]
2
name = "rest_api_auth_manager"
3
-version = "1.0.1"
+version = "1.0.2"
4
authors = [
5
{ name="gxara", email="gabrielxara@gmail.com" },
6
]
0 commit comments