-
Notifications
You must be signed in to change notification settings - Fork 3
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
1624: Add role for verein360 to create api tokens #1794
Conversation
cb033dc
to
604ab4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.02 (9.57 -> 9.55)
-
Declining Code Health: 4 findings(s) 🚩
-
Affected Hotspots: 1 files(s) 🔥
administration/src/bp-modules/project-settings/ProjectSettingsController.tsx
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/database/repos/ApiTokensRepository.kt
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/userdata/webservice/UserImportHandler.kt
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/userdata/webservice/UserImportHandler.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.02 (9.57 -> 9.55)
-
Declining Code Health: 4 findings(s) 🚩
-
Affected Hotspots: 1 files(s) 🔥
bc28a51
to
4e24ce6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.02 (9.57 -> 9.56)
-
Declining Code Health: 4 findings(s) 🚩
-
Affected Hotspots: 1 files(s) 🔥
d969cbb
to
bba18e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The concept looks really good to me 👍
Just found some issues
-
In the dashboard the item for "Projekt verwalten" is missing when i login with external api user
-
When i click on "Projekt verwalten" i get a confusing headline
I think the headline should be somehow connected with the user role to indicate the purpose of the token dynamically
- Is it intended that Koblenz can also create an external api user?
I mean it could make sense to separate the user import right from project admin to a specific role (external api users) but is in our scenario for koblenz not really needed
I think it would make sense to even add a check in the backend that only certain ROLES and projects can create external api user f.e. mayCreateExternalAPIUser
fkt same for edit
good find, fixed it.
fixed this by changeing the headling to "Api token"
Good point. I added this check to the existing "mayCreateUser" function. |
# Conflicts: # backend/src/test/kotlin/app/ehrenamtskarte/backend/helper/TestData.kt # backend/src/test/kotlin/app/ehrenamtskarte/backend/userdata/UserImportTest.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small change i would really recommend because i found it difficult to understand the code.
Works fine. Nicely done 👍
administration/src/bp-modules/project-settings/UserEndpointSettings.tsx
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/service/Authorizer.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just shared a couple of minor thoughts
Thanks for the review. Good points. Fixed all of them. |
Short description
Added a new role for verein360 admins
Proposed changes
Side effects
Testing
Resolved issues
Fixes: #1624