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

Add a possibility to create a token for api requests #1491

Open
ztefanie opened this issue Jun 13, 2024 · 1 comment
Open

Add a possibility to create a token for api requests #1491

ztefanie opened this issue Jun 13, 2024 · 1 comment
Assignees
Labels
discussion-needed We need to resolve the questions in the issue. koblenz Task
Milestone

Comments

@ztefanie
Copy link
Member

ztefanie commented Jun 13, 2024

Is your feature request related to a problem? Please describe.
A user that is logged in should be able to create a token which than can be used to make api requests to the protected "user data uploading" endpoint

Describe the solution you'd like

  • Think about / discuss which role should have the rights to create such a token, either the project admin or a special role we introduce for this
  • Add a function to create this token, decide which algorithm is good for this (secure)
  • this token must be saved to the database hashed
  • Add a section to the settings in the digitale druckerei, where an authenticated user can create this token and delete it, but not few it, as it is hashed and this is not possible, add a hint about this to the ui

Edit: For Koblenz it is ok if the existing admin role can create the api tokens.

@ztefanie ztefanie added this to the Koblenz Pass milestone Jun 13, 2024
@ztefanie ztefanie self-assigned this Jun 13, 2024
@f1sh1918 f1sh1918 added the discussion-needed We need to resolve the questions in the issue. label Jul 3, 2024
@f1sh1918
Copy link
Contributor

@ztefanie are you working in this or can i take it since you are soon on vacation and so other issues depend on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion-needed We need to resolve the questions in the issue. koblenz Task
Projects
Status: Next Up
Development

No branches or pull requests

2 participants