-
Notifications
You must be signed in to change notification settings - Fork 8
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
feature request: ability to generate API key without authing in web UI #62
Comments
Can you elaborate a bit on the use case?
The API use outside of the Web client is currently designed around generating the API key first in the UI. |
yoooo!
in this particular use case, it is using the admin user, creating an API key (via the web UI for now) and then carrying on. not worrying about other users right now. that is the scope, but anything beyond that is for funsies. i'm trying to entirely automate this process but this is the only piece blocking the fully automated part. |
I have implemented a Ref: #65 |
YEEESSSSSS 🔥🤓 thank you! |
Fixed in #65 |
afaict, the only way to generate an API key is by logging into the web UI (grabs the current user and session data etc to generate an API key)
https://github.com/openrelik/openrelik-server/blob/main/src/api/v1/users.py#L73
i'm trying to automate this process entirely.... is there a chance that the /me/apikeys endpoint could support some kind of user/password auth flow to generate and return an API key without having to first be logged into the web UI?
The text was updated successfully, but these errors were encountered: