-
Notifications
You must be signed in to change notification settings - Fork 5
/
identity.go
33 lines (28 loc) · 908 Bytes
/
identity.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package virgil
type VerifyRequest struct {
Type string `json:"type"`
Value string `json:"value"`
ExtraFields map[string]string `json:"extra_fields"`
}
type VerifyResponse struct {
ActionId string `json:"action_id"`
}
type ValidationTokenParams struct {
TimeToLive int `json:"time_to_live"`
CountToLive int `json:"count_to_live"`
}
type ConfirmRequest struct {
ConfirmationCode string `json:"confirmation_code"`
ActionId string `json:"action_id"`
Params ValidationTokenParams `json:"token"`
}
type ConfirmResponse struct {
Type string `json:"type"`
Value string `json:"value"`
ValidationToken string `json:"validation_token"`
}
type ValidateRequest struct {
Type string `json:"type"`
Value string `json:"value"`
ValidationToken string `json:"validation_token"`
}