-
Notifications
You must be signed in to change notification settings - Fork 14
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
API access for regular user #264
Comments
Yes, you are right. That would be an important feature, and also here some users asked for it. We have to discuss how we can merge the database logic from repository/query.go with the one in repository/job.go used in the REST API. In query.go there is a Security check as part of the query builder that ensures that you can only see the jobs you are supposed to see according to your role: cc-backend/internal/repository/query.go Line 95 in 0b2f221
|
Found sth. that almost works, the graphql endpoint. A Query like this with a JWT token of the corresponding user does the job.
Response:
The only remaining issue is, that a regular user can't generate a JWT token for themselves, right? I find it only in the admin options. But that should be easy to implement. |
Separate branch merged into avtive dev branch: Refactor-Job-Footprint |
Hi,
I have a few users interested in processing metric data from their jobs. I'm strongly in favor of that, but as of now, only users with the role 'api' could do this. But the api role also allows to add/delete jobs...
Could you think of a way, that 'normal' users can, just like in the web frontend, get read-only access via API to their jobs?
The text was updated successfully, but these errors were encountered: