/
models_apps.go
123 lines (115 loc) · 4.84 KB
/
models_apps.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
package davinci
type Apps struct {
Apps []App `json:"apps,omitempty"`
}
type APIKeys struct {
Prod *string `json:"prod,omitempty"`
Test *string `json:"test,omitempty"`
}
type Metadata struct {
RpName *string `json:"rpName,omitempty"`
}
type UserPools struct {
ConnectionID *string `json:"connectionId,omitempty"`
ConnectorID *string `json:"connectorId,omitempty"`
}
type Values struct {
Enabled bool `json:"enabled"`
ClientSecret *string `json:"clientSecret,omitempty"`
RedirectUris []string `json:"redirectUris,omitempty"`
LogoutUris []interface{} `json:"logoutUris,omitempty"`
AllowedScopes []string `json:"allowedScopes,omitempty"`
AllowedGrants []string `json:"allowedGrants,omitempty"`
}
type ReadApp struct {
App App `json:"app"`
}
type App struct {
CompanyID *string `json:"companyId,omitempty"`
Name string `json:"name"`
CustomerID *string `json:"customerId,omitempty"`
APIKeys *APIKeys `json:"apiKeys,omitempty"`
Metadata *Metadata `json:"metadata,omitempty"`
UserPools []UserPools `json:"userPools,omitempty"`
Oauth *Oauth `json:"oauth,omitempty"`
Saml *Saml `json:"saml,omitempty"`
Flows []interface{} `json:"flows,omitempty"`
Policies []Policy `json:"policies,omitempty"`
CreatedDate *EpochTime `json:"createdDate,omitempty"`
APIKeyEnabled *bool `json:"apiKeyEnabled,omitempty"`
AppID *string `json:"appId,omitempty"`
UserPortal *UserPortal `json:"userPortal,omitempty"`
}
type UserPortal struct {
Values *UserPortalValues `json:"values"`
}
type UserPortalValues struct {
UpTitle string `json:"upTitle"`
AddAuthMethodTitle string `json:"addAuthMethodTitle"`
FlowTimeoutInSeconds int `json:"flowTimeoutInSeconds"`
CredentialPageTitle string `json:"credentialPageTitle"`
CredentialPageSubTitle string `json:"credentialPageSubTitle"`
ShowUserInfo bool `json:"showUserInfo"`
ShowMfaButton bool `json:"showMfaButton"`
ShowVariables bool `json:"showVariables"`
ShowLogoutButton bool `json:"showLogoutButton"`
NameAuthMethodTitle string `json:"nameAuthMethodTitle"`
NameConfirmButtonText string `json:"nameConfirmButtonText"`
UpdateMessage string `json:"updateMessage"`
UpdateBodyMessage string `json:"updateBodyMessage"`
RemoveAuthMethodTitle string `json:"removeAuthMethodTitle"`
RemoveMessage string `json:"removeMessage"`
RemoveBodyMessage string `json:"removeBodyMessage"`
RemoveConfirmButtonText string `json:"removeConfirmButtonText"`
RemoveCancelButtonText string `json:"removeCancelButtonText"`
}
type Oauth struct {
Enabled bool `json:"enabled"`
Values *OauthValues `json:"values,omitempty"`
}
type OauthValues struct {
Enabled bool `json:"enabled"`
ClientSecret *string `json:"clientSecret,omitempty"`
RedirectUris []string `json:"redirectUris,omitempty"`
LogoutUris []string `json:"logoutUris,omitempty"`
AllowedScopes []string `json:"allowedScopes,omitempty"`
AllowedGrants []string `json:"allowedGrants,omitempty"`
EnforceSignedRequestOpenid *bool `json:"enforceSignedRequestOpenid,omitempty"`
SpjwksUrl *string `json:"spjwksUrl,omitempty"`
SpJwksOpenid *string `json:"spJwksOpenid,omitempty"`
}
type Saml struct {
Values *SamlValues `json:"values,omitempty"`
}
type SamlValues struct {
Enabled bool `json:"enabled"`
RedirectURI *string `json:"redirectUri,omitempty"`
Audience *string `json:"audience,omitempty"`
EnforceSignedRequest *bool `json:"enforceSignedRequest,omitempty"`
SpCert *string `json:"spCert,omitempty"`
}
type PolicyFlow struct {
FlowID string `json:"flowId"`
VersionID int `json:"versionId"`
Weight *int `json:"weight,omitempty"`
SuccessNodes []string `json:"successNodes,omitempty"`
IP []string `json:"ip,omitempty"`
}
type Policy struct {
PolicyFlows []PolicyFlow `json:"flows,omitempty"`
Name *string `json:"name,omitempty"`
Status *string `json:"status,omitempty"`
PolicyID *string `json:"policyId,omitempty"`
CreatedDate *EpochTime `json:"createdDate,omitempty"`
Trigger *Trigger `json:"trigger,omitempty"`
}
type AppUpdate struct {
Name string `json:"name"`
Oauth *Oauth `json:"oauth,omitempty"`
Saml *Saml `json:"saml,omitempty"`
Flows []interface{} `json:"flows,omitempty"`
Policies []Policy `json:"policies,omitempty"`
APIKeyEnabled bool `json:"apiKeyEnabled"`
AppID *string `json:"appId,omitempty"`
UserPortal *UserPortal `json:"userPortal,omitempty"`
}