1module OpenID
2
3import "Service.pkl" as service
4import "site.pkl" as site
5
6const hostname: String = "snowglobe.\(site.domain)"
7issuer: String = "https://\(hostname)"
8
9class Client extends service.Requirement {
10 alias: String = "oidc"
11 fixed provider = "snowglobe"
12 fixed kind = "client"
13 fixed issuerHostname = module.hostname
14 clientId: String(isNotEmpty)
15 name: String
16 redirectUris: Listing<String>
17 usernameAliases: Mapping<String, String> = new {}
18 allowGuests: Boolean = false
19 usernameRequired: Boolean = false
20}