Skip to content

Commit

Permalink
Merge userbase to main (#67)
Browse files Browse the repository at this point in the history
* removed specific files and changed small things

* added scopes, roles, and scope_roles

* added new sql tables and infrastructure

* added id to user table

* editUser endpoint

* editUser testing

* added createUser

* updated createUser.ts

* fixed small typo

* update createUser.ts

* createUser got id to return correctly

* implement getUser and getUsers endpoints

* delete user working

* delete user update

* add scope checking

* added gh actions for userbase branch

* middleware scope handling

* #38: role and scope handling

* scope and authorizer implementation

* scope verification

* #38 - comments

---------

Co-authored-by: Aryan Gandhi <[email protected]>
Co-authored-by: Will Howell <[email protected]>
Co-authored-by: Xavier Lam <[email protected]>
Co-authored-by: Xavier Lam <[email protected]>
  • Loading branch information
5 people authored Mar 9, 2024
1 parent e991608 commit 3f758ff
Show file tree
Hide file tree
Showing 29 changed files with 1,044 additions and 994 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR

on:
pull_request:
branches: [ "main" ]
branches: [ "main", "userbase" ]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR

on:
push:
branches: [ "main" ]
branches: [ "main", "userbase" ]

jobs:
deploy-lamda:
Expand Down
124 changes: 0 additions & 124 deletions lib/posting.stack.ts

This file was deleted.

129 changes: 0 additions & 129 deletions lib/project.stack.ts

This file was deleted.

12 changes: 0 additions & 12 deletions lib/user.stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export class UserStack extends LPStack {
subresources: {
roles: {
endpoints: {

GET: {
id: 'getUserRoles',
path: `${baseLambdaDir}/roles/getUserRoles`,
Expand All @@ -91,15 +90,6 @@ export class UserStack extends LPStack {
},
},
},

me: {
endpoints: {
GET: {
id: 'getUserId',
path: `${usersLambdaDir}/getUserId`,
},
},
},
},
},
faculties: {
Expand All @@ -112,8 +102,6 @@ export class UserStack extends LPStack {
id: 'createFaculty',
path: `${facultiesLambdaDir}/createFaculty`,
},


},
subresources: {
"{id}": {
Expand Down
Loading

0 comments on commit 3f758ff

Please sign in to comment.