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

confused about api create user #95

Open
outbackdingo opened this issue Apr 8, 2021 · 1 comment
Open

confused about api create user #95

outbackdingo opened this issue Apr 8, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@outbackdingo
Copy link

we deployed on bare metal with a systemd init file, and can login to the ui and create accounts / download configs
we verified that the server and wg do in fact work fine

now, im looking for a way that "clients" can make an api call generate and retrieve their certificate via some automated method

preferably a curl method done in the background on system boot. the images are all identical, the only thing unique to each device is a MAC address.... which we can "calculate" a number key from to identify specific device, so the question is how do we accomplish the next step

curl post api url POST /api/v1/peer/add and grab the response

200 Response

{
"id": 0,
"name": "string",
"address": "string",
"v6_address": "string",
"private_key": "string",
"public_key": "string",
"shared_key": "string",
"server_id": "string",
"dns": "string",
"allowed_ips": "string",
"configuration": "string"
}
to a local wg.conf file

@perara
Copy link
Owner

perara commented Jun 30, 2021

I have not really seen the use case to directly create users from the backend. Surely this is a good idea, and I'll have a look at this when I get the time. Generally, you can find all API endpoints on the /docs endpoint

@perara perara added the enhancement New feature or request label Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants