-
Notifications
You must be signed in to change notification settings - Fork 127
/
types.go
61 lines (49 loc) · 1.37 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
package configuration
import (
"time"
"github.com/armadaproject/armada/internal/common/auth/permission"
)
type AuthConfig struct {
AnonymousAuth bool
BasicAuth BasicAuthenticationConfig
KubernetesAuth KubernetesAuthConfig
OpenIdAuth OpenIdAuthenticationConfig
Kerberos KerberosAuthenticationConfig
PermissionGroupMapping map[permission.Permission][]string
PermissionScopeMapping map[permission.Permission][]string
PermissionClaimMapping map[permission.Permission][]string
}
type UserInfo struct {
Password string
Groups []string
}
type OpenIdAuthenticationConfig struct {
ProviderUrl string
GroupsClaim string
// If your OIDC provider signs token with key intended solely for this application and audience claim does not
// contain any clientId, you can disable client ID check.
// Otherwise clientId is required
SkipClientIDCheck bool
ClientId string
}
type BasicAuthenticationConfig struct {
Users map[string]UserInfo
}
type KerberosAuthenticationConfig struct {
KeytabLocation string
PrincipalName string
UserNameSuffix string
GroupNameSuffix string
LDAP LDAPConfig
}
type LDAPConfig struct {
URL string
Username string
Password string
GroupSearchBase string
CacheExpiry time.Duration
}
type KubernetesAuthConfig struct {
KidMappingFileLocation string
InvalidTokenExpiry int64
}