Skip to content

Commit 9ad7ea2

Browse files
committed
Merge branch 'main' of github.com:gxara/rest_api_auth_manager
2 parents 8388b2b + ce3c6a1 commit 9ad7ea2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ user = {
3030
"alias": "ASH_KETCHUM",
3131
"name": "Ash Ketchum",
3232
"email": "ash@test.com",
33-
"roles": [],
33+
"roles": ["pokemons:get"],
3434
}
3535

3636
token = auth_manager.add_user(user)
@@ -39,7 +39,7 @@ token = auth_manager.add_user(user)
3939
### Granting usage on a specific resource
4040

4141
```python
42-
auth_manager.add_role_to_user("ASH_KETCHUM", "pokemons:get")
42+
auth_manager.add_role_to_user("ASH_KETCHUM", "pokemons:post")
4343
```
4444

4545
### Verifying requests authentication and authorization

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "rest_api_auth_manager"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
authors = [
55
{ name="gxara", email="gabrielxara@gmail.com" },
66
]

0 commit comments

Comments
 (0)