-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
107 lines (95 loc) · 2.36 KB
/
types.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package main
type UsersInfo struct {
Users []UserInfo `json:"resources"`
StartIndex int
ItemsPerPage int
TotalResults int
Schemas []string
}
type UserInfo struct {
GUID string `json:"id"`
ExternalID string
Username string
Name Name
Groups []Group
Emails []UserEmail
Active bool
Verified bool
Origin string
ZoneID string
PasswordLastModified string
Schemas []string
}
type Name struct {
GivenName string
FamilyName string
}
type UserEmail struct {
Value string
Primary bool
}
type Group struct {
Value string
Display string
Type string
}
type ExternalGroups struct {
Groups []ExternalGroup `json:"resources"`
StartIndex int
ItemsPerPage int
TotalResults int
Schemas []string
}
type ExternalGroup struct {
DisplayName string `json:"displayName"`
ExternalGroup string `json:"externalGroup"`
GroupID string `json:"groupId"`
Origin string `json:"origin"`
}
type OauthClients struct {
Clients []OauthClient `json:"resources"`
StartIndex int
ItemsPerPage int
TotalResults int
Schemas []string
}
type OauthClient struct {
ID string `json:"client_id"`
Name string
//AutoApprove bool - TODO - this field can be a bool or an array??
Action string
Scope []string
ResourceIDs []string `json:"resource_ids"`
Authorities []string
AuthorizedGrantTypes []string `json:"authorized_grant_types"`
AllowedProviders []string `json:"allowedproviders"`
LastModified int
RedirectURI []string `json:"redirect_uri"`
SignupRedirectURL string `json:"signup_redirect_url"`
ChangeEmailRedirectURL string `json:"change_email_redirect_url"`
}
type IdentityZone struct {
ID string
Subdomain string
Name string
Version int
Description string
Created int
LastModified int `json:"last_modified"`
}
type IdentityProviders struct {
ID string
OriginKey string
Name string
Version int
Config string
Created int
IdentityZoneId string `json:"identityZoneId"`
LastModified int `json:"last_modified"`
}
type ListPage struct {
PageTitle string
UserName string
PageData interface{}
Flash Flash
}