Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minivault
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ub-unibas
cloudservices
minivault
Commits
f6c64c60
Commit
f6c64c60
authored
4 months ago
by
Juergen Enge
Browse files
Options
Downloads
Patches
Plain Diff
api version removed from CreateToken()
parent
f6ae15de
Loading
Loading
No related merge requests found
Pipeline
#172171
passed
4 months ago
Stage: publish
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/client/vaultclient.go
+1
-1
1 addition, 1 deletion
pkg/client/vaultclient.go
with
1 addition
and
1 deletion
pkg/client/vaultclient.go
+
1
−
1
View file @
f6c64c60
...
...
@@ -68,7 +68,7 @@ func (c *Client) CreateToken(parentToken string, param *token.CreateStruct) (str
if
err
!=
nil
{
return
""
,
errors
.
Wrap
(
err
,
"cannot marshal token creation data"
)
}
req
,
err
:=
http
.
NewRequest
(
"POST"
,
c
.
baseURL
+
rest
.
BASEPATH
+
"/auth/token/create"
,
bytes
.
NewBuffer
(
data
))
req
,
err
:=
http
.
NewRequest
(
"POST"
,
c
.
baseURL
+
"/auth/token/create"
,
bytes
.
NewBuffer
(
data
))
if
err
!=
nil
{
return
""
,
errors
.
Wrap
(
err
,
"cannot create request"
)
}
...
...
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