Select Git revision
AccountCreationWorkflow.txt
AccountCreationWorkflow.txt 984 B
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