-
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
1491: Add api token feature #1607
Conversation
2db1db6
to
6a595f3
Compare
5c1299f
to
5a770a6
Compare
Just tested the implementation and it works fine 👍
And could you please resolve the migration conflicts :) |
Yes these are all valid improvments, but I though we somehow agreed an a minimum usable feature and not a very good one, as it will only be used by very few people very rarly. So i think the solution I suggested is good enough and a lot more is not covered by our offer. |
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.
Good work! 👍
Tested and works fine
Added some comments but nothing crucial
administration/src/bp-modules/user-settings/ApiTokenSettings.tsx
Outdated
Show resolved
Hide resolved
administration/src/bp-modules/user-settings/ApiTokenSettings.tsx
Outdated
Show resolved
Hide resolved
administration/src/bp-modules/user-settings/ApiTokenSettings.tsx
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/webservice/schema/ApiTokenService.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/webservice/schema/ApiTokenService.kt
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/webservice/schema/ApiTokenService.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/migration/migrations/MigrationsRegistry.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/webservice/schema/ApiTokenService.kt
Outdated
Show resolved
Hide resolved
administration/src/bp-modules/user-settings/ApiTokenSettings.tsx
Outdated
Show resolved
Hide resolved
# Conflicts: # backend/src/main/kotlin/app/ehrenamtskarte/backend/migration/migrations/MigrationsRegistry.kt
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/webservice/schema/ApiTokenService.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/webservice/schema/ApiTokenService.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/webservice/schema/ApiTokenService.kt
Outdated
Show resolved
Hide resolved
administration/src/bp-modules/user-settings/ApiTokenSettings.tsx
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/service/Authorizer.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/auth/database/Schema.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.
Looks good to me in general! Added a few suggestions.
Also, I agree with Andy regarding the confirmation dialog before deletion and I think it might be important if Koblenz stores a token in some app config for example. Then if they accidentally delete it, they might have to redeploy their app.
Not sure if it's a plausible case though.
What do you think?
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.
Thanks! Looks nice to me
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.
Works great! Nice 👍
Just some small things
Short description
Add possibility to add and delete tokens and to view metadata of the tokens. Tests will be done in #1618
Proposed changes
Testing
login as a koblenz project admin. go to settings, create and delete tokens.
Resolved issues
Fixes: #1491