Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
golib
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaia-X
Trust Services API
golib
Commits
2c134263
Commit
2c134263
authored
2 years ago
by
Yordan Kinkov
Browse files
Options
Downloads
Patches
Plain Diff
#4
modify OCM client
parent
810b020c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!13
Modify OCM client
Pipeline
#52887
passed with stage
in 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ocm/client.go
+2
-3
2 additions, 3 deletions
ocm/client.go
ocm/types.go
+5
-1
5 additions, 1 deletion
ocm/types.go
with
7 additions
and
4 deletions
ocm/client.go
+
2
−
3
View file @
2c134263
...
...
@@ -7,6 +7,7 @@ import (
"io"
"net/http"
"net/url"
"strings"
)
const
(
...
...
@@ -43,9 +44,7 @@ func (c *Client) GetLoginProofInvitation(ctx context.Context, credTypes []string
}
v
:=
url
.
Values
{}
for
_
,
t
:=
range
credTypes
{
v
.
Add
(
"type"
,
t
)
}
v
.
Add
(
"type"
,
strings
.
Join
(
credTypes
,
","
))
req
.
URL
.
RawQuery
=
v
.
Encode
()
resp
,
err
:=
c
.
httpClient
.
Do
(
req
)
...
...
This diff is collapsed.
Click to expand it.
ocm/types.go
+
5
−
1
View file @
2c134263
...
...
@@ -18,7 +18,11 @@ type LoginProofResultResponse struct {
}
type
LoginProofResultResponseData
struct
{
State
string
`json:"state"`
State
string
`json:"state"`
Data
[]
Credential
`json:"data"`
}
type
Credential
struct
{
SchemaID
string
`json:"schemaId"`
CredDefID
string
`json:"credDefId"`
Claims
map
[
string
]
interface
{}
`json:"credentialSubject"`
...
...
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