Skip to content

Commit e9cd076

Browse files
authored
Merge pull request #1 from PanDAWMS/dev-tania
feat: push to test semantic release
2 parents 35844a2 + 8871cf6 commit e9cd076

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ Create and use the authorization service:
3232

3333
```python
3434
from panda_authz.service import AuthorizationService
35-
36-
3735
authz = AuthorizationService("policy.csv")
38-
3936
allowed = authz.enforce(
4037
["atlas-adc-pandamon"],
4138
{"type": "user_contact"},
@@ -53,19 +50,14 @@ more examples in the [documentation](docs/examples.md).
5350
```python
5451
# oauth/authz.py
5552
from django.conf import settings
56-
5753
from panda_authz.service import AuthorizationService
58-
59-
6054
authz = AuthorizationService(settings.AUTHZ_POLICY_FILE)
6155
```
6256

6357
Then use it in views or service code:
6458

6559
```python
6660
from oauth.authz import authz
67-
68-
6961
if not authz.enforce(
7062
request.user_roles,
7163
{"type": "user_contact"},

0 commit comments

Comments
 (0)