Skip to content
Snippets Groups Projects
Commit 3d943a98 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

Merge branch '4-modify-ocm-client' into 'main'

Modify OCM client

Closes #4

See merge request !13
parents 810b020c 2c134263
No related branches found
No related tags found
1 merge request!13Modify OCM client
Pipeline #53041 passed with stage
in 38 seconds
......@@ -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)
......
......@@ -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"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment