Commit 18569c1c authored by Carsten Karbach's avatar Carsten Karbach

Add account creation workflow

parent bc7e7e45
Pipeline #171 skipped
How to create and approve a new account:
1) as hbpadm: run /scripts/prepareaccount.php; mail address to whome the secret is sent
2) cat ~/.credentials/.htpasswd.applicationsecrets and get the secret for the mail
3) send secret from 2 via mail or at any secure way to the targeted user
4) User accesses URL to apply for an account
5) User runs POST request like this:
> curl -X POST --header 'Content-Type: application/json' --header 'Accept: text/html' ''
This creates an entry in cat ~/.credentials/.htpasswd.applications
6) as hbpadm: approve the account application like this:
> php getpendingapplications.php; returns a list of available account applications
> php approveaccount.php
\ No newline at end of file
......@@ -87,7 +87,8 @@
"in": "query",
"description": "Password for authentication via HTTP authentication.",
"required": true,
"type": "string"
"type": "string",
"format": "password"
"responses": {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment