Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
httpaccessmanagement
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jards
httpaccessmanagement
Commits
18569c1c
There was a problem fetching the pipeline summary.
Commit
18569c1c
authored
9 years ago
by
Carsten Karbach
Browse files
Options
Downloads
Patches
Plain Diff
Add account creation workflow
parent
bc7e7e45
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/AccountCreationWorkflow.txt
+12
-0
12 additions, 0 deletions
doc/AccountCreationWorkflow.txt
publicapi/serviceaccess/serviceaccess.json
+2
-1
2 additions, 1 deletion
publicapi/serviceaccess/serviceaccess.json
with
14 additions
and
1 deletion
doc/AccountCreationWorkflow.txt
0 → 100644
+
12
−
0
View file @
18569c1c
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
This diff is collapsed.
Click to expand it.
publicapi/serviceaccess/serviceaccess.json
+
2
−
1
View file @
18569c1c
...
...
@@ -87,7 +87,8 @@
"in"
:
"query"
,
"description"
:
"Password for authentication via HTTP authentication."
,
"required"
:
true
,
"type"
:
"string"
"type"
:
"string"
,
"format"
:
"password"
}
],
"responses"
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment