-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from state-alchemists/1.0.0
Add Fastapp Authorization
- Loading branch information
Showing
50 changed files
with
1,734 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.10-bookworm | ||
FROM python:3.10-slim-bookworm | ||
|
||
# Create and set workdir | ||
RUN mkdir -p /project | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Create permission bulk | ||
|
||
```json | ||
[ | ||
{"name": "book:create", "description": "create book"}, | ||
{"name": "book:update", "description": "update book"}, | ||
{"name": "book:delete", "description": "delete book"}, | ||
{"name": "book:view", "description": "view book"} | ||
] | ||
``` | ||
|
||
# Create roles bulk | ||
|
||
```json | ||
[ | ||
{ | ||
"name": "librarian", | ||
"description": "Full access to manage books", | ||
"permission_names": [ | ||
"book:create", | ||
"book:update", | ||
"book:delete", | ||
"book:view" | ||
] | ||
}, | ||
{ | ||
"name": "assistant-librarian", | ||
"description": "Can create, update, and view books, but not delete them", | ||
"permission_names": [ | ||
"book:create", | ||
"book:update", | ||
"book:view" | ||
] | ||
}, | ||
{ | ||
"name": "viewer", | ||
"description": "Can only view books", | ||
"permission_names": [ | ||
"book:view" | ||
] | ||
} | ||
] | ||
``` | ||
|
||
# Create user bulk | ||
|
||
```json | ||
[ | ||
{ | ||
"username": "john_doe", | ||
"password": "password123", | ||
"role_names": [ | ||
"librarian" | ||
], | ||
"active": true | ||
}, | ||
{ | ||
"username": "jane_smith", | ||
"password": "securePass!2025", | ||
"role_names": [ | ||
"assistant-librarian" | ||
], | ||
"active": true | ||
|
||
}, | ||
{ | ||
"username": "alex_viewer", | ||
"password": "viewOnly@2025", | ||
"role_names": [ | ||
"viewer" | ||
], | ||
"active": true | ||
|
||
}, | ||
{ | ||
"username": "emily_helper", | ||
"password": "strongPass$567", | ||
"role_names": [ | ||
"assistant-librarian", | ||
"viewer" | ||
], | ||
"active": true | ||
} | ||
] | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.