Skip to content
Snippets Groups Projects
Commit 18569c1c authored by Carsten Karbach's avatar Carsten Karbach
Browse files

Add account creation workflow

parent bc7e7e45
Branches
No related tags found
No related merge requests found
Pipeline #
How to create and approve a new account:
1) as hbpadm: run /scripts/prepareaccount.php c.karbach@fz-juelich.de; 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 https://hbpacc.zam.kfa-juelich.de/accountapplication/doc/swagger-ui/index.html to apply for an account
5) User runs POST request like this:
> curl -X POST --header 'Content-Type: application/json' --header 'Accept: text/html' 'https://hbpacc.zam.kfa-juelich.de/accountapplication?mail=c.karbach%40fz-juelich.de&secret=PgXd4NcjJHY6Z8r2vpR3BVGbq9wW7DKnmtza1hQT&account=karbach&password=abc123abc123'
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 c.karbach@fz-juelich.de
\ 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": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment