Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(authentication): teams & roles initial support #411

Merged
merged 31 commits into from
Nov 29, 2022
Merged

Conversation

kkopanidis
Copy link
Contributor

@kkopanidis kkopanidis commented Nov 2, 2022

Limitations:

  • Cannot set new permissions for members
  • Doesn't send emails for invitations (email template has been added though)
  • Only team owners can invite new members
  • Creation of new teams is not currently supported

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other (please describe)

Does this PR introduce a breaking change?

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the main branch
  • When resolving a specific issue, it's referenced in the PR's description (e.g. fix #xxx, where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature

Other information:

@kkopanidis kkopanidis marked this pull request as ready for review November 14, 2022 19:35
kkopanidis and others added 17 commits November 14, 2022 21:37
fix(grpc-sdk): type issue in findRelation
feat(authentication): add teams and roles support (admin side only)
fix(authorization): findRelation wrong type
refactor(authentication): refactor teams handler init.
feat(authentication): support invite by email
…t/resource combination

refactor(authentication): rename inviteId to invitationToken
feat(authentication): add team creation, member removal, and member read
feat(authentication): add creation of sub-teams
feat(authentication): delete team relations on team deletion
feat(authentication): add/remove team members from admin
refactor(authentication): add delete permission in team resource
modules/authentication/src/admin/team.ts Outdated Show resolved Hide resolved
modules/authentication/src/admin/team.ts Show resolved Hide resolved
modules/authentication/src/admin/team.ts Outdated Show resolved Hide resolved
modules/authentication/src/admin/team.ts Show resolved Hide resolved
modules/authentication/src/admin/team.ts Show resolved Hide resolved
modules/authentication/src/handlers/team.ts Outdated Show resolved Hide resolved
modules/authentication/src/handlers/team.ts Outdated Show resolved Hide resolved
modules/authentication/src/handlers/team.ts Outdated Show resolved Hide resolved
modules/authentication/src/handlers/team.ts Outdated Show resolved Hide resolved
modules/authentication/src/handlers/team.ts Outdated Show resolved Hide resolved
kkopanidis and others added 2 commits November 25, 2022 18:49
refactor(authentication): teams config include enableDefaultTeam
feat(authentication): auto-add registered users to default team if enabled
fix(authentication): teams not setting initialized correctly
fix(authentication): teams schema not registering
fix(authentication): teams handler initializing in wrong location
refactor(authorization): remove wrong authentication dependency
fix(authorization): resource controller crash
@kon14 kon14 requested a review from sdimitris November 28, 2022 16:08
@kkopanidis kkopanidis merged commit 921d68d into main Nov 29, 2022
@kkopanidis kkopanidis deleted the auth-teams-roles branch November 29, 2022 15:45
kkopanidis added a commit that referenced this pull request Dec 5, 2022
* feat(grpc-sdk)!: conduit manifest

BREAKING CHANGE:

Modified Conduit Config Service RPCs:
-Dropped ModuleExists()
-Dropped ModuleList()
-Refactored WatchModules() into WatchDeployemntState()
-Updated RegisterModule()

Services need also expose an `ActivateModule()` RPC

GetModules route return type modified.

* fix(grpc-sdk): isModuleUp()

* chore: code-factor cleanup

* feat(core): update config rpc tests

* fix(sms): registering admin routes before onRegister()

* fix(grpc-sdk,core): core schema ownership

* build: versioning change

* feat: oneliner deployment setup for Linux and Mac (#451)

* docs: update main readme, contributing guide (#450)

* feat(authentication): teams & roles (#411)


Co-authored-by: codefactor-io <support@codefactor.io>
Co-authored-by: Konstantinos Feretos <konferetos@tutanota.com>
Co-authored-by: chris <christinapdgn@gmail.com>

* feat: get-conduit.sh --no-deploy flag (#452)

* feat(database): sort option in admin doc query

* fix(authentication): admin patch user twoFaMethod (#454)

* build(grpc-sdk): fix build missing gRPC health check proto file (#455)

* feat: expose compose container grpc ports (#456)

* fix(grpc-sdk): redis url remap (#457)

* feat(grpc-sdk): conduit module service

* chore(grpc-sdk): import package.json using require()

Co-authored-by: Konstantinos Kopanidis <kkopanidis@users.noreply.github.com>
Co-authored-by: codefactor-io <support@codefactor.io>
Co-authored-by: chris <christinapdgn@gmail.com>
Co-authored-by: Sotiria Stefa <72135844+SotiriaSte@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants