2020-08-18 08:04:56 +00:00
|
|
|
package setup
|
2020-05-18 09:32:16 +00:00
|
|
|
|
|
|
|
type IAMSetUp struct {
|
2020-08-26 07:56:23 +00:00
|
|
|
GlobalOrg string
|
|
|
|
IAMProject string
|
|
|
|
DefaultLoginPolicy LoginPolicy
|
|
|
|
Orgs []Org
|
|
|
|
Owners []string
|
|
|
|
}
|
|
|
|
|
|
|
|
type LoginPolicy struct {
|
|
|
|
AllowRegister bool
|
|
|
|
AllowUsernamePassword bool
|
|
|
|
AllowExternalIdp bool
|
2020-05-18 09:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type User struct {
|
|
|
|
FirstName string
|
|
|
|
LastName string
|
|
|
|
UserName string
|
|
|
|
Email string
|
|
|
|
Password string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Org struct {
|
2020-06-16 09:40:18 +00:00
|
|
|
Name string
|
|
|
|
Domain string
|
|
|
|
OrgIamPolicy bool
|
|
|
|
Users []User
|
|
|
|
Owners []string
|
|
|
|
Projects []Project
|
2020-05-18 09:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Project struct {
|
|
|
|
Name string
|
|
|
|
Users []User
|
|
|
|
Members []string
|
|
|
|
OIDCApps []OIDCApp
|
|
|
|
}
|
|
|
|
|
|
|
|
type OIDCApp struct {
|
|
|
|
Name string
|
|
|
|
RedirectUris []string
|
|
|
|
ResponseTypes []string
|
|
|
|
GrantTypes []string
|
|
|
|
ApplicationType string
|
|
|
|
AuthMethodType string
|
|
|
|
PostLogoutRedirectUris []string
|
2020-08-18 08:04:56 +00:00
|
|
|
DevMode bool
|
2020-05-18 09:32:16 +00:00
|
|
|
}
|