-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement global jwt token authentication for login (#1574)
* feat: implemented jwt token authentication for login * fix: added audience while decoding * feat: added pyjwt , updated user id to existing svcfmtm osmid * feat: change username to svcfmtm * feat: implemented refresh token and updated dependency lock file * fix: return user data from refresh endpoint * changed img_url -> picture, retrieve id from sub field * feat: exception handling if osm deserialization fails * build: relock deps after pyjwt added * refactor: remove auth key path variables, require passing string values * docs: update install docs with info for gen priv/pub keys * docs: update all docs for AUTH_PUBLIC_KEY vars * build: add AUTH_PUBLIC_KEY vars to gen-env.sh script * refactor: exclude rsa keys from debug printed settings * fix(backend): improve logic for /me endpoint upsert & return ProjectRoles OrgManagers * fix(backend): return int type for AuthUser.id * refactor: create auth_schemas and replace all imports * refactor: pass user_id only to task_crud functions * test: update auth user creation for fixtures * test: guarantee randomness with uuid4 over randint * fix(backend): create_project existing project check must be scalar * fix(backend): conform to nominatim usage policy referer header * test: rename var for clarity --------- Co-authored-by: spwoodcock <sam.woodcock@protonmail.com>
- Loading branch information
1 parent
79db9fb
commit e97a04f
Showing
28 changed files
with
560 additions
and
351 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 |
---|---|---|
|
@@ -93,3 +93,6 @@ envsubst | |
|
||
# Chart dependencies | ||
chart/charts | ||
|
||
# Secrets / keys | ||
**/**/*.pem |
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.