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: Keycloak user role org map #559

Merged
merged 15 commits into from
Mar 6, 2024
Merged

Conversation

nishad-ayanworks
Copy link
Contributor

What

  • User Registration in Keycloak.
  • Create client for org and roles associated with it on keycloak.
  • Organization invitation sent for client roles and accepted as well from other user's side.
  • Update Organization client user roles
  • Refactored orgRoleGuard.

… registration as holder, worked on the create org invitation

Signed-off-by: Nishad <[email protected]>
…eId, created userorgrole with idp role id

Signed-off-by: Nishad <[email protected]>
… to get client details from user access token, worked on the update user roles for the client

Signed-off-by: Nishad <[email protected]>
…er access guard and apply on the user controller

Signed-off-by: Nishad <[email protected]>
Copy link

sonarcloud bot commented Mar 6, 2024

Quality Gate Passed Quality Gate passed

Issues
6 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -492,6 +492,38 @@ export class OrganizationRepository {
}
}

async getUnregisteredClientOrgs(): Promise<organisation[]> {
try {
const recordsWithNullValues = await this.prisma.organisation.findMany({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update variable name with recordsWithNullIdpId

@vivekayanworks vivekayanworks merged commit f9df244 into develop Mar 6, 2024
2 checks passed
@vivekayanworks vivekayanworks deleted the keycloak-user-role-org-map branch March 6, 2024 13:55
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.

3 participants